Testing HC-05 bluetooth module using Arduino UNO as serial to USB converter
This post is for those who want to build a Bluetooth controlled robot but do not know how to test HC-05 bluetooth module, whether it is working or not with android phone and bluetooth control app. we have to use Arduino UNO as serial to USB converter by removing the Atmega 328 chip from the board.
do the connectivity between Arduino uno board and HC-05 module as shown in image below.
Now in the image above note that i have removed Atmega 328 chip and i have connected digital pin0(RX) to TX of Bluetooth HC-05 Module. and digital pin1(TX) to RX of Bluetooth HC-05 Module.
so this circuit acts as serial to USB converter for HC-05 module thereby directly interfacing hc-05 with PC through USB cable.
connect the arduino board to PC using USB Cable.
now install following app on your Android phone but make sure it has inbuilt Bluetooth on it.
This app is through the courtesy of Hobbyprojects.com
App Instructions as mentioned on above link :
1. First make sure your HC-05 Bluetooth Module is paired with your mobile. The default password for pairing is “1234” or “0000”. Check the manual of Bluetooth module.
2. Click on “SELECT DEVICE” icon to select paired Bluetooth module.
3. When you press “UP Arrow” it sends the data “A” to Bluetooth Module connected with the circuit. When Microcontroller detects “A” the Robot / Robot Car moves FORWARD.
4. When you press “Down Arrow” it sends the data “B” to Bluetooth Module connected with the circuit. When Microcontroller detects “B” the Robot / Robot Car moves REVERSE.
5. When you press “LEFT Arrow” it sends the data “C” to Bluetooth Module connected with the circuit. When Microcontroller detects “C” the Robot / Robot Car turns LEFT.
6. When you press “RIGHT Arrow” it sends the data “D” to Bluetooth Module connected with the circuit. When Microcontroller detects “D” the Robot / Robot Car turns RIGHT.
7. When you press “STOP” button which is in the center of remote it sends the data “E” to Bluetooth Module connected with the circuit. When Microcontroller detects “E” the Robot / Robot Car gets STOPPED.
8. When you press “360 Degree” button it sends the data “F” to Bluetooth Module connected with the circuit. When Microcontroller detects “F” the Robot / Robot Car rotates CLOCKWISE on the same position.
9. When you press “-360 Degree” button it sends the data “G” to Bluetooth Module connected with the circuit. When Microcontroller detects “G” the Robot / Robot Car rotates ANTI-CLOCKWISE on the same position.
10. Click on “DISCONNECT” icon to disconnect paired Bluetooth module.
now install putty on your PC using following link.this program is very useful for debugging serial and tcpip ports. it is a very useful terminal Emulator program .very widely used and is free of cost.
http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Please download and install most appropriate version for your PC.
Now i will consider that
1)You have connected your Arduino with HC-05 as shown in above image.
2)You have installed your PC with putty program successfully.
4) You have connected Arduino from above setup to PC using USB Cable .
5) You have paired your phone with HC-05 as discussed in steps 1 and 2 of Bluetooth app instructions above.
Those who do not know of putty Program please go through our following post
once all above steps are done open putty
Now your PC should show a screen similar to above image.
a. now open up bluetooth android app you installed on your phone to control robot and press right left up and down keys
When you press “UP Arrow” it should sends the data “A” to your PC putty screen
b. When you press “Down Arrow” it sends the data “B” to to your PC putty screen
c. When you press “LEFT Arrow” it sends the data “C” to to your PC putty screen
d. When you press “RIGHT Arrow” it sends the data “D”to your PC putty screen
If you are able to characters on PC screen according to i have mentioned above than your app and HC-05 module is