CHDK/uBASIC/Scripts/CanonA640: Interval

Interval

 * Written for/on: Canon A640
 * Also works on: Other Canon AXXX (Not tested)

Interval by Johan Van Barel (http://www.vanbarel.com)

The purpose is to create a set of images taken at a given interval in minutes and seconds. It can be useful for photography of slow moving or changing objects like trees, plants, flowers, planets, weather etc. Later, the images can be used to create a sequence in the form of a movie.

Documentation/Help (save as a small Interval.txt" file to your /CHDK/SCRIPTS/ folder)

Select any mode on your Canon A640

Parameters:


 * Number of Pics (Default=2)
 * Interval (Min) (Default=0)
 * Interval (Sec) (Default=10)

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

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

@title Interval @param a Number of Pics @default a 2 @param b Interval (Min) @default b 0 @param c Interval (Sec) @default c 10

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

print "Interval Pics:", a print "Total Time:", t*(a-1)/60000; "Min", t*(a-1)%60000/1000; "Sec"

sleep 1000

print "Pic 1 of", a shoot for s=2 to a   print "Wait",b;"Min",c;"Sec" sleep t   print "Pic", s, "of", a    shoot next s

end