![]() Set a new name by typing " AT+NAME=NEW_BT_NAME" and hit the Send button. Query the name by typing " AT+NAME?" and hit the Send button. Query the version by typing " AT+VERSION?" and hit the Send button. In the serial monitor enter " AT" (no quotes) and hit Send. It still blinks quickly at 5 times a second. Open the serial monitor from Arduino GUI and set : This indicates the module is waiting for a connection or to be paired. The HC-05 should be in communication mode with the LED on the HC-05 blinking about 5 times a second. This makes it easy to follow the commands and replies Copy the serial data back to to the serial monitor. Keep reading from Arduino Serial Monitor and send to HC-05 Keep reading from HC-05 and send to Arduino Serial Monitor Serial.println("BTserial started at 9600") HC-05 default serial speed for communication mode is 9600 Connect the HC-05 RX to Arduino pin 3 TX through a voltage divider. Connect the HC-05 TX to Arduino pin 2 RX. Your module may have a different speed. The default baud rate for communication mode is 9600. The HC-05 defaults to communication mode when first powered on. Connect the HC-05 module and communicate using the serial monitor Basic Bluetooth sketch HC-05_02_9600+ECHO ![]() Now open Arduino GUI and upload the following sketch : Once you have connected your HC-05 Bluetooth module with your Arduino board connect Arduino with your PC via USB cable. Configuring HC-05 device using Arduino GUI 1.0.6. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |