SX 40 Motion Detection script - Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes) - CHDK Forum supplierdeeply

SX 40 Motion Detection script

  • 2 Replies
  • 2419 Views
SX 40 Motion Detection script
« on: 15 / March / 2012, 17:41:29 »
Advertisements
I loaded CHDK 1.0.0-1730  REV. 0   FOR FW100I  yesterday.

The Bracketing and time lapse scripts work OK, so I think everything was installed OK.  I can't get Motion Detection to work continuously.   Once I press the shutter, I see the box-grid, and then it will fire one shot.

The mini-console in the corner says:

***Started***
***Finished***  once it takes the picture.


What parameters and settings to feed the script?

I'm using full manual shutter, aperture and focus.

The SX 40 has blink detection and smile and wink triggers.  I can use the smile trigger so the hardware is working.  I've shut all of these off.

Many Thanks for the camera RAW and read-outs for battery and depth of field.



Re: SX 40 Motion Detection script
« Reply #1 on: 15 / March / 2012, 18:49:52 »
I assume you are using the default motion.bas script that comes with the CHDK installation file ?  If so, it was written to only run once. Try this instead :

Code: [Select]
@title Motion Detect

a=6
b=6
c=1
d=300000
e=200
f=5
g=1
h=0
i=0
j=0
k=0
l=0
m=0
n=0
o=2
p=0

:loop
md_detect_motion a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p

if( h > 0 ) then
        shoot
endif

goto "loop"

end
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX 40 Motion Detection script
« Reply #2 on: 16 / March / 2012, 06:53:18 »


Hi BaldTom.

You might want to check out the thread for Motion Detect Plus. I developed the script for that exact purpose.

The script runs continuously in a loop so you get a new image every time the motion detection is triggered. This is useful for creating a motion time-lapse sequence using motion detection to trigger the photos instead of a traditional intervalometer.

If you want a faster motion detection speed you can change the "e" value in the script to 100 (ms). The default motion detection interval is 200 ms:
Code: [Select]
e=200       -- comparison interval (msec) - less than 100 will slow down other CHDK functions


Canon SD780IS

 

Related Topics