Introduction: Arduino Bluetooth Servo Control Like IRONMAN

Picture of Arduino Bluetooth Servo Control  Like IRONMAN

This instructable is about "Controlling Servo Motor via Bluetooth (with an Android)"

In this project we will control a Servo motor with an Android phone via Bluetooth.

Step 1: Hardware Required

Picture of Hardware Required
  • Arduino
  • Servo Motor
  • Wires
  • Bluetooth Module (HC-06 or HC-05)

Step 2: Connections

Picture of Connections

Make it as mentioned in the circuit.

I'm reducing the content because you would feel it easy and would connect them less time without reading very much. Because I hate reading I just see pictures and understand. Artists need pictures to understand and ,presents it to others in the same way as well. You might think I'm artist not at all I just feel so! hahaha..... Have fun connecting.

You will find a ton of videos and information about this so, here I just came to advertise my App ( :p:p:p ) which was made with IRONMAN response feature. And you will love the feature it has if you are a marvel Iron-Man fan.

Step 3: Android APP (you Become IRONMAN Here).

Picture of Android APP (you Become IRONMAN Here).

Here is the android app we going to use to control servo : Android App

Here is the working of the android app though I didn't connect it with the circuit I just showed you how it works , If someone did it with the circuit please let me know I will publish your video here.



Step 4: Sketch ( Forgot Almost Intentionally )

#include  // TX RX software library for bluetooth
#include  // servo library 
Servo myservo; // servo name
int bluetoothTx = 10; // bluetooth tx to 10 pin
int bluetoothRx = 11; // bluetooth rx to 11 pin
SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);
void setup()
{
  myservo.attach(9); // attach servo signal wire to pin 9
  //Setup usb serial connection to computer
  Serial.begin(9600);
//Setup Bluetooth serial connection to android
  bluetooth.begin(9600);
}
void loop()
{
  //Read from bluetooth and write to usb serial
  if(bluetooth.available()> 0 ) // receive number from bluetooth
  {
    int servopos = bluetooth.read(); // save the received number to servopos
    Serial.println(servopos); // serial print servopos current number received from bluetooth
    myservo.write(servopos); // roate the servo the angle received from the android app
  }
}

Comments

About This Instructable

131views

11favorites

License:

Bio: Studying Engineering at GITAM University , Hyderabad. Hobbies are : * Bike frame designing. * Arduino Projects. * Ethical Hacking. * Basic Programming skills. * Had hands on Domain marketing. * Basic idea ... More »
More by Ramchandra dattatrya ranade:Arduino Bluetooth Servo Control  Like IRONMAN Arduino Bluetooth With App Virtual Response (Like J.A.R.V.I.S)
Add instructable to: