I have an Arduino Uno and 3 IR led's. Each of my IR led's works fine individually if I connect them to pin 11.
However I want to connect all 3 of the led's to the Uno and have them send different signals according to pin number.
e.g
IR LED 1 connected to pin 11 - send signal 0xABCDEFGH
IR LED 2 connected to pin 10 - send signal 0xSJKLMNOP
IR LED 3 connected to pin 09 - send signal 0xZXYRWVUG
I tried making my own code below but it does not work. If anyone has any pointers i'll be very happy.
//LED 1
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
for (int i = 0; i < 11; i++) {
irsend.sendNEC(0xABCDEFGH, 32); //Settings Menu
delay(1000);
}
delay(1000); //1 second delay
}
//LED 2
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
for (int i = 0; i < 10; i++) {
irsend.sendNEC(0xSJKLMNOP, 32); //HDMI Port
delay(1000);
}
delay(1000); //1 second delay
}
//LED3
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
for (int i = 0; i < 9; i++) {
irsend.sendNEC(0xZXYRWVUG, 32); //Switch Off Monitor
delay(1000);
}
delay(1000); //1 second delay
}