This is the code that runs my trackview camera. I 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.
- Seeduino Mega running at 3.3v
- MicroSD shield you'll need to modify this to work on the mega as the SPI pins on the mega are different
- BMP085 Barometric Pressure Sensor - optional
- ITG3200 ADXL345 combo board - optional
- HMC5843 Triple Axis Magnetometer Breakout - optional
- HMC6352 Compass Module - optional
- LDR - optional
- Piezo Speaker - optional
- ST7920 based 128x64 graphical LCD - optional
- Any serial GPS (module) outputting NMEA sentences - optional
- 5 x GoPro Hero HD cameras
- 5 x GoPro Slaver boards (see this thread for details)
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). I may have patched some of these, I will create diffs in the future if that is the case.
The data is written directly to the SD card, from start to end. The format isnt documented yet but the basics are:
A single character long string followed by a number of float/long/ints.
eg:
"G", 5 x floats, 1 x long
is GPS data (lat, lon, alt, course, speed, age)
"I", 3 x floats
is IMU data (pitch, roll, yaw)
In the future I'll create another project with code to process this data. It will rely on being able to read the SD card via dd
, Microsoft Windows developers will need to create thier own solution.
- Add reset button to reset photo number and SD card position
- Add start button to start taking photos instead of starting imediatly
- Add stop button to stop taking photos and flush SD card buffer
- Flush SD card buffer when retry limit hit
- Alert/retry when SD card writting fails