
What is it?
Why?
Some friends of ours have fled Australia to build their dream home in rural New Zealand, about an hour's drive from Wellington at the southern end of the north island.
The site is TOTALLY off-grid & devoid of anything resembling network connectivity. The only thing they can rely on there is sunshine. When it's not raining.
Wisely or otherwise, we thought that a time-lapse movie of the building of said home would make a great housewarming present, and so a not inexpensive rig based on a GoPro was procured, tested, personally delivered to New Zealand and installed.
After its first images were received and processed, we decided we weren't happy with the video quality out of the GoPro, and that a DSLR would capture a better image. The only problem is that comparable rigs cost MANY thousands of dollars – and that’s before you add the camera and lens.
"It can't be that hard. Why don't we just build one?"
Concept
The project took just on twelve months to take from concept to final PCB. It evolved from a high-level whiteboard concept drawing...
Through a hand-scratched circuit...


Camera Control
The basics of the camera interfacing all happens over the camera's 3-wire manual shutter release. The Arduino, having been woken by the clock, electrically "half-presses" the shutter button (the "Wake" opto on the board), pauses, then lights up the "Fire" opto, triggering the photo. Both signals are reset, the Arduino sets the next alarm time and goes back to sleep.
Advanced camera control takes place over USB via the Raspberry Pi. The power-hungry Pi is usually turned off, woken on a daily schedule to copy images off the camera and for any routine maintenance the operator may require. An option exists in the code for it to run permanently if you have a mains-powered setup. A reed switch from a burglar alarm mounted inside the box lets someone on-site wake the Pi by waving a magnet near it, without needing to break the weather seal on the Pelican case or risk bumping the camera out of alignment.
The project couldn't have gotten off the ground if it weren't for two open-source projects, and we remain totally indebted to their contributors. The Pi code is totally reliant on and derived from both the gPhoto2 project, and python-gphoto2, Jim Easterbrook's Python interface to same.
The Website
Its website is fairly basic, but across a handful of pages you're able to view and download the captured images, check camera and timing settings, check thermal measurements & other system setup tasks.
There's a live demo website running in Azure. It’s been modified a little for Azure and creates cookies on your machine to fake the interaction with a non-existent camera, but the end result is an otherwise true rendering of the site. The photos on the home and thumbnails pages are of the Sydney CBD, taken while the first unit was on our roof for testing in late 2018.
Shopping List
- Arduino Pro Mini 328 - 3.3V/8MHz
- Raspberry Pi Zero W (at the time)
- SparkFun FTDI Basic Breakout - 3.3V
- SparkFun DeadOn RTC Breakout - DS3234
- 3 Pololu power supplies: 3.3V, 5V and 7.5V
- Break Away Headers 40 Pins - Straight
- Optional sockets: Arduino(Female Header: 1x12-Pin), Clock (Female Header: 1x7-Pin)
- Flying leads for the I2C: Jumper Wires Premium 6" 50-Piece Rainbow Assortment Female-Female
More info
All the code is on Github, as well as full detailed build instructions, a full shopping list, troubleshooting and more explanatory text. The PCB for it is on eBay.
- Greig.
Comments