Infrared Send and recieve

Hello, I want to build a project in which the IR Reciever recieves the values and then sends through the ir led instantly.

I have the IRRecvDemo code but I am unable to combine it with IR send code.

I know I am doing pretty mad stuff but I want to do it , so please help :slight_smile:

Show us your attempt to combine Recv and Send and tell us what problems you are having.

There's nothing very mad (or particularly difficult) about making an IR repeater.

Steve

slipstick:
Show us your attempt to combine Recv and Send and tell us what problems you are having.

There's nothing very mad (or particularly difficult) about making an IR repeater.

Steve

Hi, thanks ..

Here's the code :

#include <IRremote.h>

int RECV_PIN = 11;
IRsend irsend;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
Serial.begin(9600);

Serial.println("Enabling IRin");
irrecv.enableIRIn(); // Start the receiver
Serial.println("Enabled IRin for you !");
}

void loop() {
if (irrecv.decode(&results))

{
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
delay(100);

irsend.sendNEC(results.value, HEX, 32); \ Here's the problem. I don't understand what to write here;
delay(200);

}

Code tags are delimited by [ and ] not <>. Please edit your post.

What is the original sender? Have you tried IRDump to check that your receiver works and what coding the sender uses?

And then what IR receiver and IR LED sender are you using? Do you get sensible values from your Serial.println which also will show that the receiver works? What Arduino are you using and what pin is the IR LED connected to?

Steve