I’m having a tough time figuring out how to power an infrared LED with a 40kHz blink.
I’m trying to create a remote to trigger a digital camera (exactly like this example: Nikon IR Remote Shutter Release).
With delayMicroseconds() I think I can create the trigger sequence that the camera needs, but the camera’s IR sensor requires the ir light to be modulated at 40kHz. delayMicroseconds() does not seem accurate enough in itself to create the 25 microsecond pulse.
Outputs 9, 10, and 11 are pulse width modulation outputs so it seems they might be usable, but I don’t know how to set the modulation rate. Also, I’ve bumped into pulse.h but I don’t know how to use it.
Could somebody point me to a tutorial or a teeny code snippet or a description of 9, 10, and 11, pulse.h or any other way to modulate a digital or pwm output.
Thanks a ton,