Sep 13 2019
processing+webcam+arduino trigger
there was a good questionwho-stole-my-cats-food
so i started also:
* on the win 10 PC
* using web cam
* arduino with trigger code
to record image files to a installed RAM DISK
+ + sample / file snap / rate: by ( int fps = 5; ) frameRate setting.
+ + limited file number ( ring buffer with pointer file )
+ mouse click start stop
+ allow a post trigger recording
( int xpostclick = xend/2; // use 2 for 50%, 3 for 33% of the recording time post click )
+ new clip as new path
+ + limited clip number ( ring buffer )
+ images have recording info:
+ + clip name/path and filename ( R:/TEMP/event001/snap006.png )
+ + and DateTime info
+ on click or arduino event
+ + the files are renamed to a clean sequence for the
Processing Tools Movie Maker
+ + the clip number is increased ( so save files to new directory )
* arduino ( USB cable ) stop trigger ( only on EVENT send "1" )
+ with auto restart recording ( to next clip ) in Processing
* allow 2 trigger sources:
+ on digital Push Button ( pin 2 to GND )
+ + using bounce2 lib
+ on analog ( pin A0 high )
+ + using SCHMITT trigger ( HIGH > 800, LOW < 200 )
code here
RAM DISK:




