Wikia

CHDK Wiki

Fast Shooter Intervalometer

Talk0
572pages on
this wiki
Revision as of 23:55, March 25, 2013 by Waterwingz (Talk | contribs)

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
@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("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)
 
z = get_day_seconds()
 
-- 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")
   print("shot", i, "at". day_seconds-z, "seconds")
end
 
-- done
restore()
print("...done")

Around Wikia's network

Random Wiki