Pan Tilt Controlled by Cell Phone

by lagsilva in Circuits > Arduino

4379 Views, 39 Favorites, 0 Comments

Pan Tilt Controlled by Cell Phone

Pan Tilt controlled by Arduino via Bluetooth

Hello all,

In this my new project I will introduce to you a Pan-Tilt controlled by Cell Phone.

All movements of the cell phone are reproduced in the pan-tilt device via Bluetooth.

The construction is very simple using an Arduino R3 (or similar) and two shields over it.

This is a demonstration of a design that can go further in new developments and applications.

I hope you enjoy it,

LAGSILVA

See VIDEO !!

Material List

Arduino Uno R3.JPG
1Sheeld.JPG
Motor Driver Shield.JPG
Micro Servo Motor SG90.JPG
Pan Tilt SG90.JPG
Power Supply (9V x 1A) with Plug P4.JPG

All you need is on the following list:

  • Arduino Uno R3 (or similar)
  • 1Sheeld - Android version (shield for connection to cell phone - Android)
  • Motor Driver Shield (for servo motors)
  • 02 x Micro Servo Motors SG90 (or similar)
  • Pan-Tilt SG90 kit
  • Power supply (9V x 1A) with plug P4
  • USB cable (connection between Arduino and your Computer)

Assembly

Motor Shield - Details View.JPG
IMG_20160227_112928399.jpg
IMG_20160227_112916723.jpg
IMG_20160227_113130583.jpg
IMG_20160227_113003363.jpg
IMG_20160227_113022281.jpg
IMG_20160227_113511412.jpg
IMG_20160227_113525707.jpg

The assembly is very simple with no soldering nor wirings.

Follow the steps:

  1. Put 1Sheeld board over the Arduino board.
  2. Put the Motor Driver Shield over the 1Sheeld board.
  3. Connect the cable of Tilt axis in the Motor Shield plug (Servo 1).
  4. Connect the cable of Pan axis in the Motor Shield plug (Servo 2).

1Sheeld - Orientation Sensor

IMG_20160227_113150160.jpg
IMG_20160220_164830165_HDR.jpg

According with their developers, "1Sheeld turns your smartphone into 40 different Arduino shields".
This shield is very interesting because you can connect an Arduino board via Bluetooth to a celular phone and use all the sensors of it.

The connection is simple and you have all necessary libraries available to Arduino.

In this way you can reduce the time you need for your prototypes and decide if you want go ahead or if need change something.

After final results you can convert the prototype on a final product applying traditional components and sensors.

If you want more information about this shield, visit its page on this link.

In the first time you use 1Sheeld you need to download its library to the folder where Arduino is installed in your computer.

You also need to install an App in your cell phone for the connection and selection of Orientation Sensor.

This 1Sheeld App you can get on Play Store of Google (Android version).

Remarks:

  • Of course I could not test this project in all kind of cell phones of the market.
  • It was only tested on Motorola Moto X (to make these videos) and on an old LG model (to control the Pan-Tilt in this case).
  • Cell phones with more processing power give us better results for quick responses and smoother movement of servo motors.
  • 1Sheeld can run in background another app during pan-tilt controlling.

Setup

IMG_20160227_143548831_HDR.jpg
IMG_20160227_113525707.jpg
IMG_20160227_143512303.jpg
IMG_20160227_143520063.jpg
IMG_20160227_143534029_HDR.jpg

The program is very simple.
With the library of Orientation from 1Sheeld, the Arduino program will read the Axis X and Y of your cell phone and translate them to angular position of each servo motor.

One important detail is that each cell phone has a different origin/reference for axles X, Y, Z.

I have put an statement on setup routine of Arduino to make the "zero" reference according with the positioning of you cell phone.

At first time you need to put the cell phone on horizontal position aligned with the Pan-Tilt device and then press the reset button on Arduino (on the Motor Shield is easier because is on the top of assembled shield boards).

After this the Pan-Tilt is referenced to follow the positioning of your cell phone !