I am working on a project in my class, i worked on every other hardware components of my project. I am stuck in trying to generate 56kHz pulse for IR transmission purpose. I have an IR reciever at the other end of my cuircuir which is set up to turn a relay on/off when detecting 56KHZ pulse.
I dont know know to program arduino, to output 56khz at one pin... so that i will connect IR LED and send the signal.
Can you guys please show me or give me an example
Probably the easiest way is to use tone(). I've used it to create a 38kHz IR carrier.
How would i be using tone() to generate that?
tone(pin, frequency)
tone(pin, frequency, duration)
(deleted)
I hate it when my google gets broken ![]()
.
Try the IRremote or IRLib libraries...
....or if you want to generate the 56kHz directly try the TimerOne library.