Arduino Pan&Tilt-System

On this page we present the Arduino Pan&Tilt-System. An Arduino controlls a Canon Ixus Camera and two servos of the camera pan&tilt system from Lynxmotion. We also designed a aluminium plate where all parts are mounted on. You can use this design to make ultra-mega- or even giga-pixel images or make time lapsed movies from single photo shots.

Hardware

A DIY electronic device with a digital camera on a pan and tilt system, mounted on an aluminum plate with an Arduino.
An Arduino board connected to a breadboard with two servos, two switches, and various colored jumper wires.
A software interface for a front panel designer showing a blue rectangular panel with various technical specifications.

Software

The software is devided into different parts:

1.) Init

Initialization of the driver modules of the servos, (serial interface if needed), button, … .

2.) Functions

There are two main functions, one for the „time lapsed mode“ and one for the „pan&tilt mode“.

3.) Main loop

In the loop section on of the two main functions is called, depending on the button state during start-up (after power-up or reset).

You can download the code in the download section.

Download

Code Arduino: click here

Aluminium plate design (for the Frontplatten-Designer from schaeffer-ag.de): click here

Time lapsed mode

In this mode, the pan&tilt system is positioned to a stationary position. The images are taken every six seconds. You can adjust the delay like you want. After 255 pictures the Arduino stops to take further pictures.

Combining the 255 images to one video is easy, when you use the freeware tool Virtualdub - Link: www.virtualdub.org. It’s free and extremely easy.

This is what you have to do:

Go to ‚File -> Open -> Image sequence‘ and select your first photo (you can’t select multiple ones, so just click the first one). Then make adjustments and ‚Save as AVI‘ (you might want to use a codec, ‚Tools->Compression‘).

Pan&Tilt mode

In this mode 10 pictures per row are taken, then the camera tilt is decresed and the camera takes again 10 pictures. This continues until the tilt points to the ground. You have 40 or 50 images at the end, that you can stitch together with different kinds of software tools. I used the Microsoft Image Composite Editor (ICE). Click here for more information.