![]() If you open both serial monitors and if you enter a command in the master board monitor, you should see the following results. ![]() #include #define rxPin 2 #define txPin 3 #define baudrate 38400 String msg SoftwareSerial hc05 ( rxPin, txPin ) void setup ( ) The following code allows you to modify and check the parameters using the serial monitor and AT commands. Note that HC-05 enter configuration mode with a baudrate of 38400bps. Open the Serial monitor and select the end line option “New line” and a baudrate of 9600. When in configuration mode the LED will blink two seconds every two seconds. To allow configuration, the module HC-05 should be powered but not paired and the KEY/EN pin should be set to HIGH before module is switched on. Especially if you want to use it as a master module. Configuring the module HC-05 can be interesting to verify that it is working, hooked up correctly and to modify its parameters such as its name (useful when your are using several modules), PIN code and communication speed (baudrate).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |