In this project I am going to show you how you can control a servo motor with the help of a smartphone application via Bluetooth.
For this project we will be using a Bluetooth HC-05 module with an Arduino Uno to control a servo 9g.
--> How does this project works?This project has two parts:
1. The android application - This application will be sending various data packets to our HC-05 Bluetooth module. (click here to download the application)
(p.s. This app is not developed by me.)
2. The hardware - This consists of HC-05 Bluetooth module, an Arduino Uno and a servo motor.
--> This is how it works --The android app sends data packets to the Bluetooth module. The Bluetooth modules sends this data packet to Arduino Uno through Serial Communication. Arduino Uno is programmed to generate control signal for the servo motor depending upon the value of the data packet. Here is a flowchart for better understanding.
--> How to get Started
1. Download the android application. (click here)
2. Upload the code on the Arduino uno.
3. Make the connections.
Please note that the bluetooth HC-05 module needs to be connected with 3.3v and not with 5v vcc as it can damage the module.
4. Connect Bluetooth module to android app - When you power up your Hardware the Bluetooth module will become visible. So open the application and click on find nearby devices. Select HC-05. Once it shows connected you are good to go!
You can use the slider or enter the value manually to control the servo arm.
Comments