My goal is to shot a picture exactly every 2 sec because i've to log on the Arduino parameters in synch with the pictures.
I send to the USB, for example, this square wave: t0=5V t1=0V t2=0V with t0=0ms, t1=100ms and t2=3000ms but the camera shots every 3200ms, 2500ms, 3300ms...
@waterwingz,
Thanks for your input. I'm sorry for the confusion. The initial message above was sent privately.
I think the t0 parameter may be wrong, but I'm not sure what the parameters mean on the Arduino. It looks like he's not holding 5 volts at all (0 ms) and he's holding 0 volts for 3.1 seconds. This would explain the problem.
@lukeiron, will you try these parameters with both scripts?
t0=5 volts, 1900 msec
t1=0 volts, 100 msec
t2=0 volts, 0 msec
To change the interval, I think you would adjust t0 = interval-100
Someone familiar with the Arduino, please correct me if this is wrong. Thanks.
This should work with my original script. Also, the script will log the actual measured interval between the shots so you can see how accurate it is. After running the script, you can see the results with "Display last console" in the Miscellaneous/Console sub-menu.
Also, see if this works without my script with the CHDK remote trigger in sync mode. The CHDK geniuses have spent a lot of time on sync mode trying to get multiple cameras to take pictures at the same time. The camera tick counter changes every 10 msec, but somehow they've achieved time sync in the 1 msec range. waterwingz says that the delay from the Arduino sending the triggering pulse to the camera taking the shot is constant. Once you know that delay, you can add it to the time of the pulse and know the exact time of each picture.
If CHDK sync works, then hopefully we can get it to do the synch while a script is running. That is, the script presses the shutter to start the shot, and the CHDK sync holds it, right before shutter open, until the remote triggers it. This would work with my full time lapse script and allow you to adjust exposure between shots at over 1 shot per second, like I do for sunsets.