This includes cameras, TV's, DVD players, VCR's, you get the point.
I will be showing you how to receive the codes, and then how to transmit them.
Objects required for this project:
1x Arduino (any kind as long as it has whats called "PWM" which I will explain)
1x IR LED (you can get these from any TV remote)
1x IR reciever (see picture)
1x USB A to B wire for programming the Arduino
1x Computer to program the Arduino with
1x Arduino software
and the .PDE files I will include
This website really helped me out a lot with this. http://www.ladyada.net/learn/sensors/ir.html
THIS IS NOT MY CODE, I DO NOT CLAIM OWNERSHIP. I merely copied and pasted the code and rewrote the instructions to make this easy to understand.
IF YOU DO ANYTHING ILLEGAL WITH THIS CODE I WILL NOT BE HELD RESPONSIBLE (which I think is probably not a problem).
Remove these ads by
Signing UpStep 1Preparing to Receive Signals
You can get one here: http://www.adafruit.com/products/157
They cost $2 not including shipping and handling.
So you want to hook up the receiver according to the first picture.
I highly suggest putting both the IR Receiver and the remote in a shoe box or something that is dark (the same shoe box of course). This will insure there will be the least amount of interference and to have clearer code so you don't have to program your Arduino 12 times for one simple task. Also, make sure you are out of the way of people watching TV.
And you want to download the file named IR_RECORD.PDE and open it into the Arduino program.
Plug your Arduino in with the USB cable I hope you have and proceed to step 2!
| « Previous Step | Download PDFView All Steps | Next Step » |








































typedef struct irCode {
int off;
int on;
} codes[34];
codes[0] = {36328, 280};
.
.
.
codes[33] = {700, 240};
then use this code to send it
for (cx=0; cx<34; cx++) {
delayMicroseconds(codes[cx].off);
pulseID(codes[cx].on);
}