This problem has stumped me. I am using the IRRemote Library(A Multi-Protocol Infrared Remote Library for the Arduino) created by Ken Shirriff to capture a certain remote's signal and then transmit it via IR LED. However, the IRSendDemo compiles but doesn't light up the IR LED when I look at it with a camera. It is hooked up to PIN 3 and ground as directed. I have tried various other LEDs including a normal one and it never turns on. I tested Pin 3 by quickly editing the Blink example and that works confirming that it is not the LEDs. I assume that the library works because receiving IR worked like a charm and the IDE compiles the code with no errors. Also, I haven't touched the IRSendDemo code. I have used this code before and it I know that it works. Now it doesn't work. Does anyone have any suggestions?
Also I am using a duemilanove atmega328 with Arduino IDE 0022
Maybe it is the version of the ide.
I was trying his program too but nothing worked(I was using the latest version of the IDE), so i started reading his article again and
noticed it was tested on version 0017. So I installed that version and then everything worked fine.
Hi,
I've used Kens library and ran into the exact problem you're having. I think I ended up getting new ir leds. Spent a good few hours pulling my hair out though!
The led I was using would not work with his library at all. Strange!
There is an update to Kens library that I've been using, give it a try maybe? I'm also using Arduino 22, so possibly not the IDE?
Yes I know that the newest IDE doesn't support it. I switched to version 0017 and the same problem is still occuring. I have used three different kinds of IR LEDs. One of them was desoldered from a dish network universal remote which should work. Here is the IRSendDemo:
#include <IRremote.h>
IRsend irsend;
void setup()
{
Serial.begin(9600);
}
void loop() {
if (Serial.read() != -1) {
for (int i = 0; i < 3; i++) {
irsend.sendSony(0xa90, 12); // Sony TV power code
delay(100);
}
}
}
Pull out the code that requires the IRSendDemo to receive a serial character in order to send the Sony TV Power Command and just loop on sending the Sony TV Power command.
Do you see the IR with a camera?