This intervalometer will lock focus and exposure and take pictures as rapidly as possible. It should work on any CHDK equipped camera as it has nothing specific to any camera model. It also does not require the camera to be in continuous shooting mode. Typical shooting speed is reported to be less that two seconds per shot.
Based on a code snippet provide by lapser in this post in the CHDK forum : Fast Shooter
fastshot.lua[]
--[[
@title Fast Shooter
@chdk_version 1.3
@param n number of shots
@default n 5
@param d start delay seconds
@default d 1
--]]
-- restore
function restore()
set_aflock(0)
end
set_console_layout(10, 0, 40, 14)
print("Fast Shooter Started...")
-- switch to shooting mode if necessary
if ( get_mode() == false ) then
sleep(1000)
set_record(1)
while ( get_mode() == false) do
sleep(100)
end
end
-- programmable delay to let you get in the picture too
sleep(d)
start_tick = get_tick_count()
-- lock in the exposure and focus
press("shoot_half")
repeat
sleep(50)
until get_shooting() == true
set_aflock(1)
-- fire away as fast as possible
for i=1, n, 1 do
ecnt=get_exp_count()
press("shoot_full_only")
repeat
sleep(20)
until(get_exp_count()~=ecnt)
release("shoot_full_only")
end_tick=get_tick_count()
second = (end_tick - start_tick)/1000
milliseconds = (end_tick - start_tick)%1000
print("shot "..i.." at "..second.."."..milliseconds.." seconds")
end
-- done
restore()
print("...done")