At 80Hz you could easily use Waveform and analogWrite (with forceSoft:true) - they use the same timebase so will always be properly in sync. You can output a sine wave from a table using Waveform and can then use analogWrite to output the strobe.
With the camera - I think the problem you have is that most video cameras don't use a global shutter (it's a curtain shutter) - so you're going to see 'banding' if you use a strobe light.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
At 80Hz you could easily use
Waveform
andanalogWrite
(withforceSoft:true
) - they use the same timebase so will always be properly in sync. You can output a sine wave from a table usingWaveform
and can then useanalogWrite
to output the strobe.With the camera - I think the problem you have is that most video cameras don't use a global shutter (it's a curtain shutter) - so you're going to see 'banding' if you use a strobe light.