Introduction: How to Control Servo Motor From Android App

About: I make hobbyist stuffs and play with electronics follow me to know more https://www.facebook.com/arduinolabviewsolidworks https://twitter.com/learnrobotix

If you are looking to make Android app to control a servo motor, this is a perfect instructable for you, here you can follow a step by step procedure video to know how to make an android app using MIT app inventor and to control a servo motor.

Step 1: Circuit Diagram

I've used 3 components here

1. Arduino uno

2. HC-05 Bluetooth Module

3. Servo motor

Connect the components according to the circuit diagram.

Step 2: Program Your Arduino

#include

#include

Servo myservo;

int bluetoothTx = 10;

int bluetoothRx = 11;

SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);

void setup()

{

myservo.attach(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 )

{

int servopos = bluetooth.read();

Serial.println(servopos);

myservo.write(servopos);

}

}

Step 3: Create Android App

Follow the video below and complete the program for creating your app.

After completing the Program in MIT app inventor, go to Build and select App( save .apk to my computer)

Transfer the file to your android mobile phone or tablet.

Step 4: Follow These Steps If the App Not Install on Your Android Device

go to setting in your android mobile select security and move to Device administration and give access to allow install app from unknown sources.

IF you like this ible, please also check other projects using MIT app inventor here :http://mitappsinventor.blogspot.com

subscribe to my YouTube channel here: https://www.youtube.com/channel/UCjlg6Eq1XVxz95qJO...