First thanks to adafruit for the originating code. Download this code onto your arduino! Origional code as posted on adafruit.com http://www.ladyada.net/learn/sensors/ir.html It was modified to pulse the code ...
This prank makes it seem like a TV remote is possessed or broken. Once a user pushes a button on any remote the device will record the code then send it out multiple times. Thus, if a user pressed the channel up button the tv would change channels! several more times!
Step 1: Theory of operation
In simple terms the operation does the following:
1) Wait until an IR pulse is detected
2) Record the IR pulse sent
3) Wait for a second
4) Send the same pulse several times