Here, I will show you can configure the HC-05 Bluetooth Module using AT (Attention) commands.
These AT commands can be used to Check and Change the Name, Password, Baud Rate for Communication of HC-05 Bluetooth Module.
Recommended Internet of Things (IOT) Courses:
- Udemy: Complete Guide to Build IOT Things from Scratch to Market
- LinkedIn: IoT Foundations: Fundamentals
- edX: Introduction to the Internet of Things (IoT)
- edureka: IoT Certification Training on Azure
- Coursera: An Introduction to Programming the Internet of Things (IOT) Specialization
- Eduonix: Internet Of Things (IOT) Bundle
Follow these steps:
- Connect Arduino Mega Board to Laptop and upload a Blank Sketch to the Arduino.
(Note: Don't make any other connection to Arduino Board while uploading a blank sketch) - Connect HC-05 Bluetooth Module in configuration mode:
- Enter into configuration mode:
Plug out Gnd or Vcc wire of Bluetooth (HC-05) module and Plug it back. - To verify whether HC-05 is in configuration mode,
LED on Bluetooth module must blink at a slower rate. - Open Serial Arduino serial monitor and Set Baud Rate = 38400 and select "Both NL and CR" Option
- Type following AT commands in given Sequence
HC-0305_serial_module_AT_commamd_set_201104_revised.pdf
To understand better Watch the demonstration video below.
Demonstration:
Click here to see more codes for Arduino Mega (ATMega 2560) and similar Family.
Feel free to ask doubts in the comment section. I will try my best to solve it.
If you find this helpful by any mean like, comment and share the post.
This is the simplest way to encourage me to keep doing such work.
Thanks and Regards,
-Akshay P. Daga
What is the TX, RX pin in ATMEGA2560 for the program ?
ردحذفI have already mentioned the pin numbers for ATMEGA2560 TX and RX in step 2 in above blog post.
حذف