Hello
I recently purchased some LED strips for my office. The result is great but i keep losing the remote. So i want to make a simple circuit to send out the IR code for the “OFF” button using a sensor to activate it. By attaching an IR sensor to an arduino uno i pressed the off button of the remote and got the following codes: "19:47:31.920 → FF02FD
19:47:31.988 → FFFFFFFF " I’m pretty sure the last one isent necessary to add to the code. and i also got the type “NEC” I attached an IR diode to an arduino uno to try and sens out this code to the sensor of the LED strip but its not turning off. I tried changing the bits from 12 to 32 pressing the diode on the sensor But nothing. Using my phone i can see the diode is turning on. This is the code im using.
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
for (int i = 0; i < 3; i++) {
irsend.sendSony(0xFF02FD, 12);
delay(40);
}
delay(5000);
}
And this is the circuit: (i did attach a resistor to it) I have seen some people using 2N222 transistors (i have those) But i dont what the purpose is for them in the circuit…
If anyone could help me with this that would be awsome!
Thanks!