Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have 2 arduinos and i want to send from the first arduino, the input of the serial monitor, to the second arduino, using ir leds.

I use something like that:

void setup()
{
Serial.begin(9600);
Serial.println("Enter a word or a phrase:");
}

void loop()
{
if (Serial.available() > 0)
{
serialinput = Serial.read();
}
/*then i want here to use an irsend to put the serialinput and send it,
via ir to the other arduino
and see it in the serial monitor of the receiver. */
// something like this: irsend.sendSony(serialinput, 20)
}
So, can you tell me if this would work and which irsend should i use, because i dont know the difference between them? (for example there is a sendSony, sendNEC, send RC5 and many other). Or if I can learn their differences from somewhere, because i cant find them.

What I have tried:

I am new to arduino and I dont know exactly how to use irsend. I have tried something like in the description above, but i couldn't see nothing even in the serial monitor of the transmiter.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900