Introduction: Pan Tilt Controlled by Cell Phone

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 !!

Step 1: Material List

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)

Step 2: Assembly

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).

Step 3: 1Sheeld - Orientation Sensor

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.

Step 4: Setup

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 !

Raspberry Pi Contest 2016

Participated in the
Raspberry Pi Contest 2016

Full Spectrum Laser Contest 2016

Participated in the
Full Spectrum Laser Contest 2016

Hack Your Day Contest

Participated in the
Hack Your Day Contest