Lightning Take a maximum number of images at a given interval in minutes and seconds.


Introduction

The Canon A640 does not allow to leave the shutter open for longer than 15 seconds. To allow taking pictures of lightning during a longer period than 15 seconds, this script uses the continuous burst drive mode. The burst drive mode will be active for the interval specified. The shutterspeed has to be selected manually first. Best results can be expected at a shutter speed of 1. So if you select an interval of 1 minute, the script will take as much images as possible with the selected shutter speed. For long intervals you should disable the Power Saving options of your camera. This can be done in the <ALT> menu. In the Miscellaneous Stuff menu item set the Disable LCD Off value to Script, so the display won't turn off while in <ALT> mode or while a script is running.

Written for: Canon A640
Also works on: A620 (tested), Other Canon AXXX (Not tested)


Parameters (Save as "Lightning.txt" file to your /CHDK/SCRIPTS/ folder)

Select any mode on your Canon A640.
  • Duration (Min)(Default=1)
  • Duration (Sec)(Default=0)
  • Initial Delay (Sec) (Default=1)

Script Code (save as "Lightning.bas" to your /CHDK/SCRIPTS/ folder)

rem Johan Van Barel 07-07-2007
rem Lightning for Canon A640

@title Lightning (Set Tv + BurstDrive)
@param a Duration (Min) 
@default a 1
@param b Duration (Sec)
@default b 0
@param c Initial Delay (Sec)
@default c 1

if a<0 then let a=0
if b<0 then let b=0
if c<0 then let c=0

t=60000*a+1000*b
if t<1000 then let t=1000

print "Total Time:", t/60000; "Min",
	t%60000/1000; "Sec"

sleep c*1000

rem set_tv 0
press "shoot_half"
sleep 1000
press "shoot_full"
print "Burst",a;"Min",b;"Sec"
sleep t
release "shoot_full"
release "shoot_half"

end

Download and Installation

This script is freeware. Before you can install it, you need to download and install the CHDK Firmware Extension for your specific Canon camera. CHDK is freeware and can be downloaded for a broad range of Canon PowerShot and Digital Ixus cameras here. If you own a Canon A640, you can download a specific build here, which already contains all the CHDK scripts from this site, including the one mentioned above. Copy all the files in this archive to the root of your SD card. If you have problems installing CHDK, please refer to the CHDK Wiki Pages.


Disclaimer

This software and the accompanying files are supplied "as is", without any express or implied warranty. In no event shall the author be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages from the use of this software. By using this software you agree with these conditions.

Copyright © 2007 by Johan Van Barel. All Rights Reserved