infrared toggle switch for home

Not rated 23,189

Circuit Image

The infrared (IR) toggle switch project described here aims to provide a control mechanism for electrical appliances that lack remote operation features. The goal is to construct a black box where users can plug in their 120V AC appliance and control its ON and OFF operations using any modern IR remote control device. Modern IR remote controls generate a modulated pulse train with a frequency of 38KHz when any key on the remote is pressed. By employing capacitive filtering, the stream of pulses will be converted into a single pulse, regardless of the key pressed. This allows for toggling a relay switch with any key pressed on the remote. The project has been tested with various IR remote control devices, such as those for TVs, DVDs, and digital cameras, and has shown successful operation. The TSOP 1738 IR receiver module detects the 38KHz input pulses from the IR remote control device. In standby mode, the output pin of the IR module is at logic high, and when it detects the pulse train, it appears at its output. The output from the IR receiver is fed to a PNP transistor (BC557) through a series base resistor of 4.7K. The pulse train at the collector of the NPN transistor is inverted. A 10µF capacitor and a 100K resistor are connected from the collector to ground. The capacitor's function is to convert the pulse train into a single pulse, while the resistor provides a discharge path for the capacitor.

When a key on the remote is pressed, the output of the IR receiver module transitions to low, causing the BC557 to turn on and off rapidly. When activated, the capacitor charges through the collector current of the BC557, and when deactivated, it discharges through the 100K resistor. However, due to the rapid pulse rate (38,000 pulses per second), the capacitor does not fully discharge. Consequently, each key press from the IR remote generates a positive clock pulse at the collector of the BC557 transistor.

Next, the CD4017 decade counter counts the low-to-high pulses at its CLK pin (14) up to 10 and pulls the corresponding output (Q0-Q9) high. Upon initial activation, Q0 goes high, and when the first low-to-high pulse is received at the CLK input (triggered by a key press on the IR remote), Q0 transitions low while Q1 goes high. The Q1 output is connected to an LED through a current-limiting resistor to indicate the ON/OFF status. Additionally, the Q1 output drives a relay switch through an NPN transistor (BC547). A 5V DC relay requiring approximately 70mA of current from a 5V source is used to turn ON the appliance, with the current supplied by the BC547.

The overall design allows for seamless integration of IR control into existing appliances, enhancing their functionality and user convenience. The circuit is compact, efficient, and capable of operating with a variety of IR remote controls, making it a versatile solution for remote operation of electrical devices.The infra-red (IR) toggle switch project described here is aimed to provide control mechanism for electrical appliances that do not have remote operation features. The goal is to construct a black box where you can plug-in your 120V AC appliance and control ON and OFF operations with any modern IR remote control devices.

Modern IR remote controls generate modulated pulse train of 38KHz frequency when any key on the remote is pressed. With the use of capacitive filtering we will convert the stream of pulses into one pulse regardless of the key entered. This way, we will be able to toggle a relay switch with any key pressed on the remote. This project has been tested with varieties of IR remote control devices like that for TV, DVD, digital camera, etc.

, and it worked well. The TSOP 1738 IR receiver module detects the 38KHz input pulses received from the IR remote control device. Under stand-by condition, the output pin of the IR module is at logic High, and when it detects the train of pulses, they appear at its output.

The output from IR receiver is fed to a PNP transistor (BC557) with a series base resistor of 4. 7K. At the collector of the NPN transistor, the train of pulses will be inverted. There is a 10uF capacitor and 100K resistor connected from the collector to ground. The function of capacitor is to convert the train of pulses into a single pulse, and the resistor is to provide the discharge path for the capacitor. So lets see what happens when a key on the remote is pressed. During standby, the output of IR receiver module is High, so BC557 is cut off. The capacitor is fully discharged, and the collector of BC557 is at ground. When a key is pressed on the remote, the train of pulses arrived at the base of BC557 turns it ON and OFF very fast.

When it is ON, the capacitor gets charged through the collector current of BC557, and when it is OFF, the capacitor starts to discharge through 100K resistor. But the train of pulses is so fast (38000 pulses per second) that the capacitor doesn`t get chance to discharge.

So, the bottom line is, every time a key is pressed from the IR remote, a positive going clock pulse is generated at the collector of BC557 transistor. Next comes CD4017, a decade counter. It counts low-to-high going pulses up to 10 that are arrived at its CLK pin (14) and pulls the corresponding output (Q0-Q9) High.

When it is just turned on, Q0 goes High, and when it gets a first low-to-high pulse (when a key is pressed from the IR remote) at CLK i/p, Q0 goes Low and Q1 goes High. Q1 output is connected to a LED through a current limiting resistor to indicate the ON/OFF status. The Q1 output is also used to drive a relay switch through a NPN transistor (BC547). I used 5V DC relay that requires about 70mA current from 5V source to turn ON. This current is provided by BC547. 🔗 External reference