On/Off switch controlled via IR

infraredled

I'm a beginner at electronics and I'm trying to construct a battery-powered LED lamp which I could turn on and off using an IR remote control. My question is what parts do I need apart from an IR receiver and how do I connect them? I'd like the construction to be as simple as possible.
Thanks in advance 😉

Best Answer

You'll need a battery for the receiver, an LED, and a resistor. You connect the battery positive to the + input of the receiver and the battery negative to the receiver's ground terminal. Then connect one end of the resistor to the receiver's output and the other end to the LED. If the receiver's output sinks (goes low) when it's being triggered, connect the LED's cathode to the resistor and the LED's anode to the battery positive. If the receiver's output sources (goes high) when it's triggered, connect the LED's anode to the resistor and its cathode to battery negative and make sure the receiver's output can source or sink the LED current.

To determine the value of the resistor, work this out:

$$ \text R = \frac{\text V_{BAT} - \text V_{LED}}{\text I_{LED}}$$

Where \$ \text R\$ is the value of the resistor, \$\text V_{BAT}\$ is the battery voltage, \$\text V_{LED}\$ is the LED's foward voltage, and \$\text I_{LED}\$ is the LED's forward current.