Skip to content

julianvasa/arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino camera controller

This project in 2012. We wanted to build something (cheap) that shoots 6 simultaneous photos (kind of Google Street View) and take photos all over Albania. We didn't have too much money to spend on this project and that's why we took a look at the Arduino project.

The controller runs an arduino program (trackview) which controls 6 GoPro cameras to shoot instantaneous photos at regular intervals (parametrized).
First you have to download and install Arduino IDE and than deploy the script trackview to the Arduino device.
It performs 3 main tasks, first it records a bunch of sensor data like GPS, Barometer, Pitch, Roll, Heading.
Second it triggers the GoPro cameras at regular intervals.
Third it updates a graphical LCD will sensor values and camera status.

The last task is the stitching process, source code are found in the folder stitching.
It's a C#.NET app developed by me that does the stitching of 6 photos using the following libraries/apps:

  • Hugin - Panorama photo stitcher to do the stitching process. Hugin needs a pto file which defines the control points used by Hugin during the stitching process.
  • ImageMagick to do the crop, convert, resize stuff
  • Krpanotools to generate a viewer, some xml files etc.

I made two versions of this app:

  • stitiching several panos
  • stitching just one pano (6 photos)

Hardware

Software

The code in this repo has a bunch of options at the top. You should be able to comment out and of the ENABLE_ defines at the top if you're not using that particular piece of hardware. The code relies on a number of other libraries to hand the sensors. They are:

Download all these and put them in you sketchbook/libraries folder (create this if it doesn't already exist).
The data is written directly to the SD card, from start to end. The format is: Date+ _ +Time+ _ +Lat+ _ +Lon+ _ +pitch+ _ +roll+ _ +yaw

We managed to take some pics (around 2000-3000 panos). We created a website Albumi - Albania Virtual Tour