Introduction: Arduino/Android - BLUETOOTH Servo Motor Control Android APP

Hello world! Today i made a APP to control a single servo. tomorrow i will make a app for multiple servos. Follow the next step for the Schematic, Code & parts list. If you want the source of the app just contact me!

GET THE APP ONGOOGLE PLAY

Step 1: Schematic, Code & Parts List.

Just wire it up like the schematic, upload the code, install the app and it should work.

Make sure you have the libraries Servo.h & Softwareserial.h installed.

Also make sure not to have the bluetooth connected when uploading the code!

Parts list.

  1. Arduino uno, I used the RobotDyn uno.
  2. HC-06 Bluetooth module.
  3. Servo motor.
  4. Set of jumper wires. MM/FF/MF
  5. Android phone. It even works on my old androids!

Good luck!

Follow the next step to find out how to rename your Bluetooth device, Set pin & how to change baud rate.(optional)

Step 2: How to Change the Name of Your HC-06

What is needed?

1 x USB to TTL microcontroller programmer to connect to your HC-06

How to connect the Programmer?

VCC to VCC

GND to GND

RXD to TX

TXD to RX

Lets get started...

  1. connect the USB TTL programmer to the HC-06
  2. Plug in the USB and open up The Arduino IDE
  3. Open the serial monitor.
  4. Type "AT" without quotes. You should see a respond in the Serial monitor saying "OK"
  5. Type "AT+NAMExyz" Sets the module name to “xyz” (Replace xyz with the name you want.) response should be OKsetname.
  6. Type "AT+PIN1234" Sets the pin to 1234 (replace 1234 with your desired pin) respond should be OKsetPIN For more info on changing baudrate etc. i included a PDF file. Good luck!

Comments

author
FurqanA1 (author)2016-12-30

can i get the source code too? furqanaliyuddien@gmail.com thanks

author
geeameal (author)2016-10-30

sir, can the app connect to Bluetooth 4.0 modules(HM-10 BLE)? I tried connecting it, but it keeps on failing. Any solutions to that? thanks!

About This Instructable

6,440views

19favorites

License:

Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:Arduino & C# - RGB LED / LED STRIP CONTROL C# Application Arduino & C# - LM35 Temperature Sensor C# Application Arduino (OPEN SOURCE) Arduino & C# - HC SR04 Distance Meter C# App for Arduino
Add instructable to: