Specification :
Model : BT06 / HC06 / HC05 (Choose in option)
Operating Voltage (VCC) : 3.6-6V (Suggested using Arduino 5V pin).
Communication Method : Serial Communication
Transmission Distance Range : ~10M+- (Open Space)
On board PCB Antenna
Size: 3.57 x1.52cm
Support standard baud rate: 4800bps~1382400bps
Default password : 1234 / 0000
Default baud rate : 9600
BT06 / HC06 : Slave mode only.
HC05 : Slave & Master mode can be switched.
Tutorial & Reference Link :
https://electronnicproject.blogspot.com/2018/02/arduino-nano-connecting-by-bluetooth.html
https://www.instructables.com/Tutorial-Using-HC06-Bluetooth-to-Serial-Wireless-U-1/
https://www.aranacorp.com/en/arduino-and-bluetooth-module-hc-06/
Basic Tips :
TX(transmitter) pin usually connect RX pin.
RX(receiver) pin usually connect TX pin
When upload coding to Arduino board, you cannot connect the TX & RX pin to bluetooth module.
Remove the wiring 1st before upload coding, after done upload. Then only connect the wiring.
5V = VCC
GND =GND
2 = TX
3 = RX
EN = 5V(Enable AT MODE)(For HC05 Model only)
BASIC AT COMMAND :
AT+NAME? (Function : check name)
AT+NAME=SAMPLE (Function : set name to SAMPLE)
AT+ADDR? (Function : check default address)
AT+PSWD? (Function : check default password)
Test Code Sample :
#include <SoftwareSerial.h>
SoftwareSerial mySerial (2,3);
void setup () {
mySerial.begin(9600);
Serial.begin(9600);
Serial.println("Enter AT commands:");
}
void loop() {
while (mySerial.available()) {
Serial.write(mySerial.read());
}
while (Serial.available()) {
mySerial.write(Serial.read());
}
}