This video shows how to connect hc-06 with arduino uno Where to buy: www.diymalls.com/HC-06-Blueto...
Жүктеу.....
Пікірлер: 3
@ValidWay5 ай бұрын
nice job! you are help me, thanks!!
@diymall1172 жыл бұрын
AT Commands: Send: AT Response: OK Set Baud Rate Sets the Bluetooth UART baud rate. Baud rate is set by an hexadecimal index from '1' to 'C'. Indexes are: 1:1200, 2:2400, 3:4800, 4:9600, 5:19200, 6:38400, 7:57600, 8:115200, 9:230400, A:460800, B:921600, C:1382400 Send: AT+BAUD Response: OK Set Bluetooth Device Name Send: AT+NAME Response: OKsetname Set Bluetooth PIN Code Sets the security code needed to connect to the device Send: AT+PIN Response: OK Check Firmware Revision Get The Firmware Revision Number Send: AT+VERSION Response: Linvor V1.8
@diymall1172 жыл бұрын
Code: #include SoftwareSerial hc06(2,3); void setup(){ //Initialize Serial Monitor Serial.begin(9600); Serial.println("ENTER AT Commands:"); //Initialize Bluetooth Serial Port hc06.begin(9600); } void loop(){ //Write data from HC06 to Serial Monitor if (hc06.available()){ Serial.write(hc06.read()); } //Write from Serial Monitor to HC06 if (Serial.available()){ hc06.write(Serial.read()); }
Пікірлер: 3
nice job! you are help me, thanks!!
AT Commands: Send: AT Response: OK Set Baud Rate Sets the Bluetooth UART baud rate. Baud rate is set by an hexadecimal index from '1' to 'C'. Indexes are: 1:1200, 2:2400, 3:4800, 4:9600, 5:19200, 6:38400, 7:57600, 8:115200, 9:230400, A:460800, B:921600, C:1382400 Send: AT+BAUD Response: OK Set Bluetooth Device Name Send: AT+NAME Response: OKsetname Set Bluetooth PIN Code Sets the security code needed to connect to the device Send: AT+PIN Response: OK Check Firmware Revision Get The Firmware Revision Number Send: AT+VERSION Response: Linvor V1.8
Code: #include SoftwareSerial hc06(2,3); void setup(){ //Initialize Serial Monitor Serial.begin(9600); Serial.println("ENTER AT Commands:"); //Initialize Bluetooth Serial Port hc06.begin(9600); } void loop(){ //Write data from HC06 to Serial Monitor if (hc06.available()){ Serial.write(hc06.read()); } //Write from Serial Monitor to HC06 if (Serial.available()){ hc06.write(Serial.read()); }