I have a project where I use one digital pin to trigger two cameras to take pictures. I also use two pins to
PWM control LED lights for these cameras.
My problem is that when on lower duty cycles on the PWM, I get flickering on the images.
Some lighter and some darker images.
Is there a way to read the counter for PWM and use that so I can trigger my cameras on the start of a PWM cycle?
This to try to get more uniform lighting on images overall.
Cameras uses 1.5 milliseconds to acquire an image, PWM pulse is at 1kHz (1 millisecond total time for the pulse from start to end)
On full duty cycle there is no problem, since lights are fully on.