Go Down

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

nimlos

Hi, i need help with a basic IT transmitter code.
im using this IT transmitter:
http://www.dfrobot.com/index.php?route=product/product&product_id=355

I got this reciver:
http://www.dfrobot.com/index.php?route=product/product&product_id=351

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

Targettio

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