Motion Detection - Shoot after motion stops

I'm working with the DIYBookScanner group. We need a script to watch for motion (i.e. the book pages being flattened against the platen) then shoot images when the motion stops for a second or two (i.e. pages are in place).

The Universal Motion Detection script is close but not quite what we need. Any thoughts on how to modify it or write a simpler version? I confess that I've done no programming in CHDK motion grids, though I can more or less understand what the scripts are doing. :-)

We need a script to watch for motion (i.e. the book pages being flattened against the platen) then shoot images when the motion stops for a second or two (i.e. pages are in place).

So that's about nine lines of code if you want to do it the easy way. Unless you also want to eliminate false triggers / failure to fire. You can ignore the former and wave your hand in front of the camera if the later occurs. Or make the script a lot more sophisticated.

The script has all timings set by parameters so with a little trial and error you can fine tune the timing for your particular setup. The various debug modes allow you to do that easily. I can help you with it just let me know.

The script has all timings set by parameters so with a little trial and error you can fine tune the timing for your particular setup. The various debug modes allow you to do that easily. I can help you with it just let me know.