Very new here...
I put together a very simple laser trigger for droplet photography and need a little guidance with the shutter delay. I have not established a drip / trip height yet, just trying different positions, and need help with the timeing between trip, and splash.
Did I put the delay in the proper spot in the code? And can additional lines of delay be stacked if the 16000 ms limit is not enough? Am I useing the proper term, Microseconds?
here is the code I used, pin 12 triggers the camera:
/* Laser camera trigger
Stevequad:
Did I put the delay in the proper spot in the code? And can additional lines of delay be stacked if the 16000 ms limit is not enough? Am I useing the proper term, Microseconds?
here is the code I used, pin 12 triggers the camera:
You can use additional lines of delayMicroseconds but it might be easier to use delay() instead and specify the delay in milliseconds.
I doubt that you need the resolution of microseconds to catch a falling drop of water at the right time.
Sorry about pin 4... it was overlooked, and did nothing.
I defined the pins as A0 = sensor input
Pin 10 as L.E.D.
and pin 12 as camera trigger.
The Analog read @ < 750 is for ambient light.
I added the delay instead of delayMicroseconds
(the laser is self contained pointer, not in the code obviously)
Thanks for the comments, I am learning
Steve
You have three #define statements but then you don't use them.
The idea of them is so that you can define the values in one place and not have to specify the pin number on several different lines - which could lead to a mistake and makes it hard to modify the code if that becomes necessary. Also using the defined variables makes the code easier to understand. For example
Thanks for clearing that up for me Robin. No more questions. I only put the define in there to help show what I was doing. I have removed them from the sketch.
Thanks for the help.
Steve