IR Remote Switch v2
This project shows you how to create a simple remote-controlled on-off switch that will work with most IR remote controls. And you only need four components to build it—an IR receiver, a capacitor, a JK flip-flop, and a relay module.
You can connect whatever you want to control to the relay, and then use any IR remote control to turn it on or off.
The Circuit
Push a button on the remote control and it will send out a signal consisting of many pulses. This is then received by the IR receiver and converted into one long pulse. This long pulse will toggle the flip-flop.
The flip-flop controls a relay module. Every time you press a button on your remote, the relay turns on or off.

Parts List
The Layout
You can connect the circuit on a breadboard as shown below to test it out. Then later, solder it onto a stripboard to make it permanent.
