Introduction: Control Servo Motor Using 1Sheeld

About: Mechatronics engineer. I'm a Fab Lab Egypt team member.

If you want to control servo motor with your mobile without using Bluetooth module and programming android application, you can use instead of them 1Sheeld.

Basically, 1Sheeld consists of two parts. The first part is a shield that is physically connected to your Arduino board and acts as a wireless middle-man, piping data between Arduino and any Android smartphone via Bluetooth.

The second part is a software platform and app on Android smartphones that manages the communication between our shield and your smartphone and let your choose between different available shields.

And this is 1Sheeld website:

Step 1: Setup Software

First thing to do is to download and setup 1Sheeld application to your android smart phone.

you can download it from google play from this link.

Step 2: Components

  • Arduino UNO
  • 1Sheeld
  • Smart phone
  • Servo motor
  • some wires

Step 3: Wiring

Start to wire the circuit, we use arduino UNO to make the functionality you want.

Connect 1Sheeld to arduino UNO.

Wire servo motor to 1Sheeld as shown in picture 1.

Follow the steps in the pictures.

This is ver easy circuit.

Step 4: The Programming

First, download 1Sheeld library for arduino from 1Sheeld website (in introduction).

Copy the library to Local Disk(C:) > Program Files(x86) > Arduino > libraries

In the final code, we will use slider (like potentiometer) in 1Sheeld application to control servo motor, when move the slider up the servo rotate in a direction, and when move the slider down the servo rotate in other direction.

This the final code and upload it

// Code written by: Mohamed Soliman

/* Include 1Sheeld library. */
#include <OneSheeld.h> #include <Servo.h>

/* Define a variable to hold the value of the slider. */ int value; Servo servo;

void setup() { /* Start communication. */ OneSheeld.begin(); /* Set the servo pin as output. */ servo.attach(9); //servo pin }

void loop() { /* Always get the value of the slider and output it as PWM to pin 9. */ value = Slider.getValue(); servo.write(value); }

Step 5: Using 1Sheeld Program

First, open your Bluetooth, because 1Sheeld receive Bluetooth signals.

Open 1Sheeld program.

Skip the steps in the start of the program.

Scan for your 1Sheeld and connect it to your smart phone as first picture.

After connecting, the shields screen will appear to select required shield, we will choose slider as second picture, then press on the mark up right the screen.

The board will appear with slider as third picture.

Press on red arduino mark to choose the motor pin which is pin 9 as forth picture.

Back again to slider screen and start to move the slider up and down.

And let the magic work like the Video.