A very simple IR remote control switch for an electrical appliance

This project describes a technique of adding the remote control feature to an electrical appliance. The goal is to construct a black box where you can plug-in your 120V AC appliance (it can be easily modified for 220 V mains supply too) and control the ON and OFF operations with a TV or DVD remote that uses modulated infra-red (IR) pulse train of 38 KHz frequency. I did this project for my wife who studies late at night on her bed and later feels tired to stand up and turns the light off. Now she does it from bed with the TV remote. The good thing about this project is that it does not use any microcontroller and is only based on the CD4017 decade counter IC.

IR toggle switch for an electrical appliance

Circuit diagram

The original circuit diagram for this project was published in the May 2005 issue of the Electronics For You magazine. The circuit diagram below is mostly the same. It uses a TSOP1738 IR receiver module at the input side to receive the 38 KHz frequency IR pulses from the remote control. Under normal condition, the output pin of the IR module is at logic High, which means the transistor T1 (BC557 PNP) is cut-off and its collector terminal is at logic Low. The collector of T1 drives the clock line of the CD4017 decade counter.

Now lets see what happens when somebody faces a TV or DVD remote towards the TSOP1738 and presses any key on it. The TSOP 1738 module receives the train of 38 KHz IR pulses from the remote, that makes its output to oscillate too. These pulses are inverted at the collector of T1, which finally go to the clock input of the decade counter. The arriving pulses could increment the CD4017 counter at the same rate (38 KHz), but because of the presence of the RC filter circuit (R1 = 100K, C1 = 10 uF) between the collector and the ground, the train of pulses appear as a single pulse to the counter. Thus, on each key pressing, the CD4017 counter advances only by a single count. When the user releases the key, the C1 capacitor discharges through the R1 resistor, and the clock line is back to zero. So every time the user presses and releases a key on the remote, the CD4017 counter receives a single pulse at its clock input.

IR remote switch

Initially, when the circuit is just powered on, the Q0 output of the CD4017 decade counter goes high. The counter increments for each low-to-high going pulse arriving at its CLK pin (14). When the first pulse arrives, Q0 goes Low and Q1 is turned High. This activates the relay and the AC appliance connected to it is turned on. The status LED connected to Q1 also glows to indicate the appliance is switched on. When the user presses a key again, the second pulse arriving at the CLK line increments the counter by 1. This makes Q1 back to Low (which means the relay is deactivated and the appliance is turned off) and Q2 is pulled High. Since Q2 is wired to the Reset input, the second key press actually brings the CD4017 IC back to the power-on-reset conditions with Q0 High. Thus, it basically operates as an ON/OFF toggle switch controlled with any key of an infrared remote.

The power supply for the circuit can be derived from the mains AC itself using a step down transformer and a bridge-rectifier circuit. For +5V power supply, the LM7805 regulator IC can be used as shown below.

Power supply circuit

I have enclosed the circuit board with the power supply inside a wooden box as shown in the pictures below. The electrical appliance to be controlled can be powered from the AC outlet at the front side.

Circuit board and power supply enclosed within a wooden box

Finished project with AC socket at the front side

Testing the finished project with a TV remote

This was a very simple and fun project to do. If you are thinking about making this device for yourself, be careful with the direct 120 V AC lines used in the project.

Related Posts

199 comments

Leave a Reply

Your email address will not be published. Required fields are marked *