I am back with an another easy to make stuff. This time I have made a remote controlled switch.This switch will turn on & off when a button on its remote is pressed.
Now lets do some brain-storming on this. I have used IR rays to transmit the command to turn on or off the switch. So first of all we need a IR transmitter and an IR receiver.
Earlier I wanted to use IR rays of constant intensity (i.e. driven through d.c. current) on the transmitter side (To know more about IR rays and how to use them in communication, visit: IR Transmission post on my blog ). But IR receivers (or sensors) are available which are capable of detecting IR rays of some particular frequency. No good IR receivers are available which can detect IR rays of constant intensity. Phototransistors are available which can detect IR rays of constant intensity but they are sensitive to light also so they cannot be used.
So we have to use a circuit which generates a particular frequency as a transmitter. And a IR receiver which can detect the same frequency as generated by the transmitter.
How the whole thing works?
When a button is pressed on the transmitter side , IR rays of particular frequency will generate. They are detected by the IR receiver. As a result, IR receiver will produce a negative going pulse. This pulse is given to the counter circuit. In the counter circuit, if we see the last digit of the output, it has alternating output. When first pulse arrives, it goes high and remains high until next pulse arrives. On the next pulse it goes low and stays low until next pulse arrives. On the next pulse it again goes high and this thing is repeated. So now, when we first time press the button on the transmitter, the output on the counter IC goes high. On again pressing button, it goes low. Now we have to control the relay so that we can do the switching. Now the counter has a very low output current (~5 mA), and to energize the relay, we need current of approx. 20mA. So we have to use a transistor in common emitter mode to drive the relay on and off.
The whole circuit is divided in main two parts.
(1). Transmitter
"Ingredients" for the circuit
a 555 timer IC
0.0047uF ceramic or metal film capacitor
470 ohm resistor
5k variable resistor (potentiometer)
two high power IR LEDs
47ohm resistor
I have made a transmitter using 555 timer IC of 38KHz frequency. The output of
the IC (pin no.3) is given to two IR LEDs through output resistor of 47ohm.
Circuit Diagram
(2). Receiver
"Ingredients" for the circuit
TSOP1738 IR receiver module
74LS90 Decade counter IC
BC547 Transistor
100 ohm resistor
15k resistor
50k resistor
LED
7805 voltage regulator IC
12 v Relay
100uF electrolyte capacitor
Circuit Diagram
The whole receiver can be divided in three parts.
1. IR sensing circuit
To detect 38KHz IR, I have used TSOP 1738 (click here for datasheet) IR receiver module. The function of this module is as described below.
TSOP1738
2. Decade counting circuit
As a decade counter, I have used 74LS90 (click here for datasheet) decade counter IC. Since it accepts negative going pulses, it is a good choice to be used with the IR sensing module.
3. Relay driver circuit
Output of the decade counter is used to drive the relay on or off. For this I have used BC 547 transistor in common emitter mode. The output from the decade counting IC is given to base of the transistor through a 50K resistor. And a 12v relay is connected in place of collector resistor. So when the output of the counter IC is high, base of transistor is forward biased, thereby turning on the relay. When the output of the counter IC is low the relay is turned off.
When you have made the circuit, put the transmitter in front of the TSOP1738 receiver and keep changing the value of 5k pot. on transmitter till the LED on receiver blinks. Now you are ready to use the circuit. I have made the circuit on the PCB and it has quite good range (approx. 15 foot).
If you have read the post and like to add something or have any trouble making this or have anything to say, then post a comment or mail me at dmehta17@gmail.com