Time-Lapse Photography with your Inexpensive Canon Camera (CHDK p. 3)
Aerial Mapping With Your Canon Point-and-ShootParts one and two talked about some of the cool features you can enable on your camera by installing the Canon Hack Development Kit. But the most powerful CHDK feature is the scripting interface.
Scripting is how I first found out about CHDK -- at a workshop at WhereCamp. Jeffrey Warren of Grassroots Mapping demonstrated balloon aerial mapping using a cheap Canon camera and materials like a cut-up soda bottle, string, a garbage bag, tape, and open source photo stitching software.
Lots of fun, but how does this tie in to CHDK? When your camera is 500 feet up hanging from a balloon, how do you tell it when to shoot photos? You could build some kind of radio-control gizmo, but that's expensive and complicated. All you really need is a script to shoot at regular intervals -- say, every 10 seconds.
Here's the script they use, chdk-timer.txt (from the Balloon Aerial Photography page):
rem Author - Keoeeit rem USE WITH CAUTION rem do not run for many hours or days @title Interval Shooting Non-stop @param a Interval (Minutes) @default a 0 @param b Interval (Seconds) @default b 10 @param c Interval (10th Seconds) @default c 0 t=a*60000+b*1000+c*100 if t<100 then let t=5000 n=1 print "Interval shooting." print "Until you interrupt it." print "Use with caution." sleep 1000 :shot print "Shot number", n shoot n=n+1 sleep t goto "shot"
Installing and running a script
To install a script on your camera, mount the camera's SD card on your computer and copy the script to CHDK/SCRIPTS (or chdk/scripts, depending how your computer is set up).
Move the card back to your camera and power on. Press the CHDK Shortcut key to get into ALT mode (see the previous article) and enter the Scripting parameters menu. The first item is Load script from file... (Figure 1).
Once you've loaded your script, run it by pressing the shutter button while still in ALT mode. In the case of this chdk-timer script, it will shoot a picture every 10 seconds until you stop it by pressing the shutter button again.
Pretty neat! Even if you aren't set up to do aerial mapping,
you could strap your camera to the passenger seat of your car and
take a time-lapse video of your commute to work ... or create
time-lapse videos of clouds moving across the sky.
- 1Linux Top 3: Fedora 24, Peppermint 7 and Solus 1.2
- 2Linux Top 3: Alpine Linux 3.4, deepin 15.2 and Linux Lite 3.0
- 3Linux 4.7 Set to Boost Live Patching, Security and Power Management
- 4Linux 4.6 Charred Weasel adds USB 3.1 Support
- 5Linux Top 3: OpenIndiana 2016.04, Ubuntu 16.04 and Debian's New Leader