Go Down

Topic: IR transmitter help (Read 839 times) previous topic - next topic


Hi, i need help with a basic IT transmitter code.
im using this IT transmitter:

I got this reciver:

I just need a basic code to send 1, 2, 3, 4 or 0 to the reciver.
thanks in regards


You have two choices,

1. You write your own code to turn the LED on and off very quickly to create a string of bits that reciever can read and decode
2. You can use one of the IR libraries and use them to send/recieve IR codes (you can read the codes from a random remote you have round the house and use them as '1','2','3','4' and '0')

Personally I think the second one it the better option. Check out https://github.com/shirriff/Arduino-IRremote. It can do a lot more than what you want, but its probably still the easiest place to start.

Go Up