Simple Infrared (IR) Remote Control

In this write up we discuss how to build a simple infrared remote control circuit for controlling a given electrical appliance through any ordinary or TV remote control unit.

Introduction


Controlling household electrical gadgets or any electrical equipment remotely can be fun. Controlling gadgets like a TV set or a DVD player through a remote may look pretty common to us and we are very used to with the experience, however for controlling many other domestic equipment like a water pump, lights etc we are compelled to walk around for implementing the switching.

The article is inspired by our usual TV remote concept and has been applied for controlling other house hold electrical appliances remotely. The circuit facilitates and helps the user to do the operations without moving an inch from his resting place.

The whole circuit of the proposed IR remote control may be understood by studying the following points:


Referring to the figure, we see that the entire layout consists of just a couple of stages viz: the IR sensor stage and the fkip flop stage.

Thanks to the highly versatile, miniature IR sensor unit which forms the heart of the circuit and directly coverts the received IR waves from the tranamitter unit into the relevant logic pulses for feeding the fllip flop stage.

The sensor basically consists of just three leads viz: the input, the output and the biasing voltage input lead. The involvmant of only three leads makes the unit very easy to configure into a practical circuit.

The sensor is specified for operating at 5 volts regulated voltage which makes the inclusion of the 7805 IC stage important. The 5 voltage supply also becomes useful for the flip flop IC 4017 and is appropriately supplied to the relevant stage.

When a IR signal becomes incident over the sensor lens, the inbuilt feature of the unit activates, triggering a sudden drop in its output voltage.

The PNP transistor T1 responds to the negative trigger pulse from the sensor and quickly pulls the positive potential at its emitter to the collector across the resistor R2.

The potential developed across R2 provides a positive logic high to the IC 4017 input pin #14. The IC instantly flips its output and changes it’s polarity.

The transistor T2 accepts the command and switches the relay according to the relevant input provided to its base.

The relay thus switches the connected load across its contacts alternately in response to the subsequent triggers received from the IR transmitter unit.

For the sake of convenience the user may use the existing TV remote control set unit as the transmitter for operating the above explained control circuit.

The referred sensor is well compatible with all normal TV or DVD remote control handset and thus can be appropriately switched through it.

The entire circuit is powered from an ordinary transformer/bridge network and the entire circuit may be housed inside a small plastic box with the relevant wires coming out of the box for the desired connections.


The following parts will be required for making the above explained infra red remote control circuit:


R1, R3 = 100 ohms,

R2 = 100K,

R4 = 4K7,

R5 = 10K,

C2 = 47uF/25V

C1, C4= 22uF/25V,

C6 = 4.7uF/25V,

C3 = 0.1, CERAMIC,

C5 = 1000uF/25V,

T1 = BC557B

T2 = BC547B,

ALL DIODES ARE = 1N4007,

IR SENSOR = TSOP1738 image: Vishay

IC1 = 4017,

IC2 = 7805,

TRANSFORMER = 0-12V/500mA,





Prototype image courtesy: Raj Mukherji

Need Help? Please send your queries through Comments for quick replies! And please Bookmark my site :)




Comments

sharojalhasan said…
how many mAh need for this circuit ?
Swagatam said…
you can try the second circuit from this link:

https://homemade-circuits.com/2013/03/simple-reliable-infrared-ir-remote.html
maria said…
Hello Sir, we have to make this IR remote control for receiving part in our final year project. Our fyp is "Room automation system for disabled persons" in which we have to control electronic equipments like light, fan,AC and non electronic equipments like door, curtain etc.... we have to open/close these mentioned equipments.... so can this remote control circuit given by you can be useful in our project??? please guide me and if any modifications needed, do tell about them. and can u give the code that is burnt in the controller ic in above circuit? waiting for your prompt reply anxiously... thanks. :)
Swagatam said…
Hello Maria,

Te above circuit is not so reliable. I'll recommend using LM567 IR remote circuit as shown below:

https://homemade-circuits.com/2013/03/simple-reliable-infrared-ir-remote.html
maria said…
Thank you so much Sir for your prompt reply :) Sir,actually controlling light/fan/ac is somewhat easy but closing/opening doors, windows and curtains is not so easy, it will require motors and some complications will be involved for achieving this furthermore we have to include temperature/humidity and light sensors also. So i am confused how will I achieve all of this. Please guide me how should I start up. I have to implement my project using Micro Pro C, MP lab, Proteus. And our project involves 3 main parts: 1)Communicate IR sensors with micro controllers. 2)Communicate wirelessly micro controllers with other micro controllers. 3)Communicate wirelessly motors with micro controllers.
Hopefully waiting for your help Sir.
Swagatam said…
You are welcome, I wish I could help you with all those stages, however the mentioned stages appear quite complex and are not within my easy reach, so I am sorry I won't be able to go beyond the IR remote control stage explanation.
maria said…
ok Sir no problem if it's beyond your reach... then sir give me a detail explanation of IR remote control working so that I can explain it in my presentation...the questions that may be asked from this topic, brief me about them in document type link. thanks
Swagatam said…
I have already explained it elaborately in the above article, if you have specific questions you may ask them, I'll try to clarify them.
sharoj alhasan said…
SIR PLZ GIVE ME A EASY FLASHING CIRCUIT VERY EASY PLZ
Swagatam said…
try this one:

https://homemade-circuits.com/2011/12/how-to-make-single-transistor-led.html
farhan said…
SIR PLZ GIVE ME A CIRCUIT WICH CAN FLASH 12 VOLT LAMP PLZ SIR
Swagatam said…
try this one:

https://homemade-circuits.com/2011/12/build-simple-how-to-build-universal.html
Swagatam said…
i'll try to find it
maria said…
sir,plz give us a simple mini project of optical communication .. i am waiting for ur rply.. thanks...
Swagatam said…
Hi Maria, pls provide full details of your project requirement, I will try to help.
Swagatam said…
I am sorry, I don't have much idea about the concept.
Swagatam said…
don't have much idea about PICs, sorry....
Seok Sothea said…
i have made this circuit. everything is well i tested, but tsop. the output still high even i press remote to it.... everytime i power it on. the relay active (connected to pin 2 of 4017). what wronge sir...please help..!
Swagatam said…
connect a 10k resistor between pin4 and pin15 and connect a 0.22uf or any close value cap across pin15 and positive...see if it helps.
Seok Sothea said…
i found the problem sir..when i test the circuit without tsop1738. it works well. so, i try to replace tsop1738 with tsop1138. it works well even under day light or cfl lamp. i use it to control the 220v 1500w chickent washing machine and work with only a cheap cell phone charger as power supply..it is very useful sir...thank much.
Swagatam said…
OK great, thanks!
Swagatam said…
yes, but there shouldn't be any obstacle in between....
Muhammad Ahsan said…
sir plz sort out my project ..............
hi sir...i am girish. i didn't get the phototransistor TSOP 1738, but in my area TSOP1838 is available .can i use that here...but i didn't get the pin configuration on internet...so can you help me???
Swagatam said…
Hi Girish, you can use it in the above circuit,

pin2 is ground, pin1 is output and pin3 is Vs(supply)

the image is shown, hopefully it's correct:

www.fact4ward.com/blog/wp-content/uploads/2012/08/tsop1838.gif
Parthi Ban said…
hai sir i want to control many load pls help me sir
Swagatam said…
with the above simple design only one load can be controlled.
Parthi Ban said…
sir i need a relay range
Anuj Wagle said…
HI swagatam ....
please help me .. is that a 12v relay or a 5v relay..
Swagatam said…
Anuj, it's a 12v relay
Stavan Karia said…
Sir, can you please suggest a circuit for the below mentioned purpose.
"Current must flow in one direction and the amount must be controlled by a regulator (like in ceiling fans). And on moving the regulator in another direction the current must flow in another direction."
Swagatam said…
Sorry Stavan, the given data is not sufficient, pls provide more precise information
rahul said…
Hi Swagatam,
As Parthi Ban quoted the requirement of many loads, is it possible to use uC for the same? But for that we need to diagnose which button on Remote was pressed, can we detect that? (using the circuit you provided or any other).
What's the difference between IR and RF wireless communications? (w.r.t. the current purpose).
I definitely want to use uC, please suggest which one should i choose. say for controlling a minimum of 6 loads.
Can you help in uC also?

Anyways great job Dude !!
Abhishek sharma said…
Sir ,
can i have circuit diagram for 'REMOTE CONTROLLED SWITCH BOARD' . through this i can operate 2 lights , 1 fan, 1 AC, 1 TV.
Swagatam said…
Hi Rahul,

Thanks!
A uC may not be needed for controlling more loads, it can be done by using separate receivers for each load and with a transmitter handset having individual buttons, just as we have in TV remotes.

I would be addressing one such design soon in my blog.
Abhishek sharma said…
hi Swagatam ,
i want to make "remote controlled switch board" through which i can operate 4-5 appliances bye remote control. so please suggest me circuit diagram with detail.
Swagatam said…
Hi Abhishek,

You will see this circuit soon in my blog....keep in touch
Swagatam said…
IR is Infrared and Rf is Radio frequency, IR cannot pass through walls, Rf can.
Abhishek sharma said…
thank u sir,
i wil follow ur posts.
Partha P Baruah said…
Sir, in the design you have used a relay.What kind of relay is it?And what is the source of supply?
Swagatam said…
It's 12V, 400 ohms, SPDT, you can see it in the image below. the square orange colored block is the relay
Partha P Baruah said…
Sir, in the remote control circuit the feed is only 230Vac.What will be the relay rating?In this circuit there is no need of any external DC supply.Please help.
Swagatam said…
Partha, the power supply is clearly shown at the top section of the circuit using a transformer, bridge network....the green color box is the relay coil.
Partha P Baruah said…
Sir ,this means the relay will work in 12V dc which will be fed from step down transformer and the bridge.Please help me to understand .Thanks.
Swagatam said…
yes that's correct
Partha P Baruah said…
Sir, one more doubt about the value of R4 .Is it 4K7?
Swagatam said…
yes it's 4k7 = 4.7k
Srishan Perera said…
Hii sir is there any possibilities of using a transformerless circuit for this circuits power supply? I know its critical but I want to makes rhings more compact in a box thank you. :D
Swagatam said…
Hi Srishan, you can try the one that's shown in the following article:

https://homemade-circuits.com/2011/12/cheap-yet-useful-transformerless-power.html

put two zeners in parallel if possible for better safety.

use 15V/1watt zeners
ani a said…
dear sir
i connect circuit as shown in diagram but it will not working. sir ir sensor have a 2 terminals but in diagram it have 3 terminals. so i can not connect the irs to gnd and where i connect the remaining pins of ic 4017 please tell me sir
Swagatam said…
dear ani,

you must use the one that's referred in the diagram.

see the prototype images for getting the idea of the sensor type and appearance
ani a said…
dear sir,
i connect the irs as shown in diagram but it is not working.sir please tell me the voltage or current across the components and is their any problem if relay inputs are change. how i check the relay whether it is working or not
Kesavarao Y said…
I didn't got 5V relay so I used 12V, but it not on and off why?
Swagatam said…
Dear Ani,

first make sure the sensor pinouts are connected correctly.
Next, confirm the voltage across it's (+) and GND pins, should be 5V as per the circuit.

Once you have confirmed the above take a DMM set at DC voltage range and connect its red prod to the "OUT" terminal of the sensor and black to the negative line of the circuit. Initially it should show 5V, but should respond with a zero volt or a lower voltage than 5V whenever the external IR remote is activated on it.
Please first confirm the above.
ani a said…
Dear sir,
intially it shows 2.8v sir
ani a said…
dear sir,
2.9v at sensor "out" terminal and 1v at the "Vs'' .It does not show 5v initially sir please tell what is the problem
Swagatam said…
point and press a TV remote control at the sensor, and check the voltage response at the output of the sensor..it must become zero or almost zero.... if not your sensor may be faulty or not connected correctly.
Swagatam said…
please check the response with a IR transmitter, as explained in the pervious comment.

you can connect an LED in series with R3 for getting indications regarding the switching.

cathode of LED will go to R3, and anode to base of the transistor
ani a said…
dear sir,
it does not show 0v on DMM when ever i press button it shows 2.9v constant sir . I use the sensor which is used in our tv it don't have any number but i connect its terminals as TSOP1738 irs sir
Swagatam said…
disconnect the output of the sensor from R3 and then check, if still it continues to be the same you can assume the sensor to be faulty or wrongly connected.

If it works correctly would indicate a wrongly connected T1 or a faulty T1
ani a said…
sir if i remove the "out" terminal of sensor from R3 the voltage fall from 3v to 0v with out i press a remote
Swagatam said…
point and press the Tx at the sensor and see if it produces any changes in potential at the "out" pin, if it doesn't would mean the sensor is faulty.
Saurabh Sinha said…
Hello sir...
1. What is the use of TRANSFORMER in this curcuit.

2. Is this work on any T.V and setop box remote?? And which button is responsible for sending signals to receiver curcuit..

Saurabh Sinha said…
Hello sir...
In your part list ..
You didn't specify the value RELAY..
PLZ suggest me... Value of RELAY
Swagatam said…
Hello saurabh,

transformer is for stepping down the mains 220V to 12V.

yes any standard IR remote handset should work with the circuit.
Swagatam said…
If your transformer is 12V, the relay can be also a 12V (coil voltage) with N/O and N/C contacts
Saurabh Sinha said…
Hello sir....
You have a timer curcuit for mobile charger or etc..
If i set the timing for 3 hour then after 3 hour curcuit stop the charging.... Or until curcuit will consume 3 hour electricity then it stop charging... Plz suggeste me this type of curcuit..

Because overloading the battery will decrease life of battery.. So plz
Swagatam said…
Hello Saurabh, all cell phones have in-built sophisticated over charge cut off circuit so there's nothing to worry, the battery will never get overcharged even it's kept connected to the charger forever.
Saurabh Sinha said…
Hello sir....
I hv another question...

In previous comments.. You said about TRANSFORMER that it stepdown 220v to 12v.

If i put directly 12v adaptor... Then it work or not???
Swagatam said…
hello saurabh,

a 12V AC/DC adapter will also do...
Anup Paul said…
Hi, Can I use it to operate more than one relay at the same time by using other outputs in IC4017. Do I need to change the current rating of the transformer. Pls advise.
Swagatam said…
If you are interested to operate other relays in sequence one after the other by using the other outputs of the IC, then you can still continue to go with the same circuit because each relay would be operated individually and never together so there wouldn't be any increase in the current consumption during those operations
sandy said…
can u tell me an circuit diagram for drone so that it can fly easily to control its 4 motors
Swagatam said…
possibly I may try to publish one using RF remote control....
Unknown said…
Hii sir .,
i assembled this circuit but it didn't work pls hep me sir......
Kurt Sopa said…
In your circuit dia. the negative leg of C2 is connected to Vout of the IRS. Since C2 is a polarized cap., should it not be connected to ground instead?
Swagatam said…
C2 is placed across base/emitter of T1 in order to stabilize the T1 response....so it's fine.
darlinton ojo said…
its responding very slow. when i plug it the load comes on and when i press the remote button its goes off but when trying to put it on again it wouldn't until Upton 2mins before its responds.pls what should i do?
Swagatam said…
reduce C2 value to 10uF/25V and check.....
darlinton ojo said…
Enter your comment... thank you for your Quick response ,its kinda working but there is still s problem its changes the state of the load just three times and would stop to work but when i unplug and replug its still repeat same three time and pause.pls help me. its urgent
ojodarlinton@gmail.com

Swagatam said…
did you connect pin#4 with pin#15??

anyway just try changing the output pin configuration of the IC 4017 exactly as done with the circuit in the first diagram of this article:

https://homemade-circuits.com/2014/05/remote-control-circuit-for-multiple.html
MOH said…
Hello, i made this circuit with a 6V relay ( i dont have 5v ) , but it d'ont work at all !!!!!
pls help :
topo.science@yahoo.fr
thankssss
Swagatam said…
connect a red LED in series with the transistor base and first confirm whether or not this LED is responding ON/OFF with remote control button press...if not then there could be something severely wrong in the connections.
MOH said…
When i connect a led in the base of transistor the led not flash when I push remote button !!
Swagatam said…
check voltage across T1 base and emitter by keeping the black prod of meter at base, and red prod at emitter, and simultaneously by pressing the remote handset button, it should change from 0 to 0.6V....if not check the same across the sensor output pin and supply pin....confirm this first
Aryan Kumar said…
Sir plz specify the relay nd its value..
Aryan Kumar said…
Sir will it work in 10 volt adapter?
Swagatam said…
relay coil voltage should match the adapter voltage, in your case the relay should be also 9V rated
Aryan Kumar said…
Thnk u sir ...sir where to put the leds....nd what to do with the earthing connection. ..should i leave the earthing or we have to earth them..
Aryan Kumar said…
Sir in the pic the ic2 is connected with a green wire.. Confused abt that and where does the green and blue wire leads to??
Swagatam said…
Aryan, you can put the LED in series with R4. The earth symbol represents the negative supply line of the circuit, make sure you connect all the marked points together with the negative supply line of the circuit
Swagatam said…
probably those are terminated out through a headphone jack for allowing the 5V to be accessible through the jack for some external DC circuit.
Aryan Kumar said…
Plz tell me all the 12 v relay connections sir.. M stuck there.. its not working..
Swagatam said…
connect the relay coil with the transistor and positive....relay pole contact can be seen connected with the load, and either the N/O or the N/C contact may be selected and connected with one of the mains input, as indicated.
Akula Sai said…
Hi sir i am an 9 class student i want to do a project which is to control lights with remote so plzz explain me the above in easy and in regular language so i can do it very ease plzzz sir
Swagatam said…
Akula, I have explained all the details in the article already, if you have specific questions you may ask them, I'll try to answer.
Akula Sai said…
Sir i cant understand the above names and components so can i have a video with explaining and making of above activity clearly
Is there anybody who can provide a picture of their prototype ?

The ones presented in this article are not quite what regular hobbyists would expect.

Seriously, I do understand that this was created by someone with minimal experience, nevertheless any projects with parts floating in the air like that, should be advised that this is not a good practice.

For the sake of everyone, a "cleaner" prototype would be appreciated.
Swagatam said…
Akula, I would suggest that you first learn the basics of electronics and regarding all the electronic components before building any circuit idea, otherwise you may find it extremely difficult and might not succeed.
Charles Lukes said…
Pls instead of using the rectificaton section can't i just use a 5v dc battery? And how do i connect it to the load?
Swagatam said…
you can use a battery, but battery will get discharged at some of time, that's why a mains operated power is recommended.

the relay contacts and the load wires which are shown connected with the mains will need to be connected with the 5V supply
Charles Lukes said…
Thank you sir your reply was helpful, what if i want to use both the 5v and mains supply? When there is power outrage and i might want to use the 5v battery so how do i go about it. And pls sir specify the kind of tv remote that would suit it.
Swagatam said…
for that you just have to connect the positive of the 5V battery with the output of the 7805 IC through a 1N4007 diode, cathode will connect with the 7805 output and the anode with the batt positive....the negative of the batt will connect with the negative line of the circuit

all and any TV remote should work with this circuit
Mirza Adeel said…
We are Pakistani... :D
Mirza Adeel said…
I cant see circuit diagram, can anyone share with me. Please.
Swagatam said…
use a proxy site....
john kg said…
good day sir
i have assembled the circuit. instead of relay i used a led from pin no 2
i found the light is flickering continuously, when i press the remote i can see the light flikering more so i am concluding that the circuit detecting ir signals .but how to make it stable so that i wll be able to connect the relay
i have did all the modifactions u mentioned in the above comments
still its not getting stable
thanking you
john
john
john kg said…
sir i assembled the circuit on breadboard only
john
Swagatam said…
Good day John,

did you try increasing the value of C6? increase it to 100uF and see the response. if still it's flickering then definitely there's some other fault in your circuit or may be the IC 4017 itself is faulty.
john kg said…
what is the value of c3 is any special importance to c3
john
Swagatam said…
it's 0.1uF, for decoupling the IC supply pins, and prevent incorrect switching of the IC during power switch ON
hello sir ,
in this will a 6v relay work or i will have to get a 12v relay.
Swagatam said…
hello siddarth, your relay voltage must match the available supply voltage value, or you can use a supply source in accordance with your relay specs....but both must be approximately equal.

however 5V can be used for operating a 6V relay, therefore you can use the 5V from the 7805 for supplying the relay also
H said…
Sir
Can I use this TV, ac, and ext..
H said…
Can I use this for TV ,ac ext...
Swagatam said…
yes definitely you can...
Saqib Lodhi said…
Hi Swagatam,

I have successfully built this circuit and it is working perfect. thanks for that. I have an issue like others will have. the TSOP1738 is picking up any remote key pressed which is making not acceptable for any home appliances because In same room I use my TV, AC and many other remote controlled devices and this is picking up signals from any remote with any key press. Can you please suggest some additional circuit for it to only pickup the signals from specific key from remote. I am also good to make a transmitter for this too.
Swag said…
Hi Saqib,

To correct this issue you may have to modulate the 38kHz frequency from the remote with another frequency and then use an intermeiate LM567 IC based circuit to detect this modulated frequency, this will allow you to get a intended unique frequency operation, if possible I'll try to update the design soon in my website
Saqib Lodhi said…
wow that would be great. I am waiting for your new design and will continue upgrading this circuit using your guidance. Thanks Swagatam I appreciate your response.
Swag said…
sure, if possible I'll try to do it soon..
Saqib Lodhi said…
whenever you do it. just drop me a message on saqib.lodhi@hotmail.com to check it on your blog.
Swag said…
OK, I will try!

Contact me for Customized Circuits

Name

Email *

Message *


 Follow on G+  Follow on Facebook   Follow on Tweeter  Follow on G+  Follow on G+

Follow Homemade Circuits