Danny van den Brande
Published © CC BY-SA

Arduino/Android - BLUETOOTH Servo motor Control Android APP

App to control a single servo. The app is available open source just ask, i just ask you a small favor in return.

BeginnerFull instructions provided1 hour18,614
Arduino/Android - BLUETOOTH Servo motor Control Android APP

Story

Read more

Schematics

Schematic

Code

BLUETOOTH_Servo_Control_Single_Servo.ino

Arduino
A simple code that uses softwareserial to read from the bluetooth module.
#include <SoftwareSerial.h>

#include <Servo.h>

Servo myservo;

int bluetoothTx = 10;

int bluetoothRx = 11;

SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);

void setup()

{

myservo.attach(9);


Serial.begin(9600);


bluetooth.begin(9600);

}

void loop()

{


if(bluetooth.available()> 0 )

{

int servopos = bluetooth.read();

Serial.println(servopos);

myservo.write(servopos);

}

}

Credits

Danny van den Brande

Danny van den Brande

36 projects • 109 followers
"Hello world."

Comments