Subscribe

Remote Control Operator

Posted by Circuit Labs on Wednesday, November 12, 2008

Enhancing remote controlled lighting

 Image 1Author: Peter Verhoosel

Remote controlled light switches are becoming more and more common. DIY stores have inexpensive sets consisting of several light switches and a remote control unit. It’s then easy to control everything from your armchair. But how can you control the lighting when you’re away, as a deterrent to burglars? With the help of this little circuit that is no longer a problem.

With modern technology it sometimes happens that you replace one problem with another. Or as Johan Cruyff, the greatest Dutch soccer player of all times eloquently said: “every advantage have its disadvantage”. The circuit described here has been designed to overcome a shortcoming of wireless remote controls for domestic lighting. The problem is this: when people go way on holiday they often connect ordinary lights directly to time switches to turn the lights on and off at certain times. This gives the impression that the house is still occupied, but it can also come in useful when visitors, who stay till the small hours of the night, need a little hint that it’s time to go! But when these lights are controlled wirelessly it is unfortunately no longer possible to switch them on and off with a time switch. The light switches work with a signal that is transmitted via radio or infrared by the remote control handset. And herein lies the problem: who controls the remote control in your absence? You can’t expect your neighbours to do this for you, even if you get on very well with them. Fortunately, with a little inventiveness and some electronics we can get round this problem.

Figure 1. The circuit consists entirely of discrete components. (click to enlarge)

Click to enlarge or download PDF version for larger diagram

 Electronic control of switches
With this circuit we can add electronic switches in parallel with the buttons in the remote control. Of course your remote control has to be suitable for this modification. This will be covered in detail later, in the section “Modifying the remote control”. To keep things simple, we have catered for a maximum of four lights. The remote control unit we bought had one on-switch and one off-switch for each light. For four lights we therefore need to control eight switches externally. The receivers are turned on by closing the four ‘on’ contacts equentially, with a short pause in between. They are turned off again by closing the four ‘off’ contacts sequentially, with a short pause in between.

The circuit

Figure 2. The copper track and component layout of the PCB designed for the project.

  PCB layout

As you can see from Figure 1, this time we found a solution without the use of a microcontroller. It does mean that a fair number of components are used in the circuit, but they are all without exception easily obtainable and inexpensive. In the original design we wanted to control this circuit via an ordinary switch or the switch inside a time switch.

This means that we would first have to open up the time switch to disconnect the internal microswitch from the mains. Apart from the fact that this involves a lot of tinkering, it is not always possible. We would also have to make sure that all safety regulations were adhered to!

It is much simpler to control the circuit with a voltage and use a separate mains adapter; you probably have one left over from an old mobile phone or other device (5 V to 9 V DC). This also keeps everything safe, since the adapter simply plugs into the time switch! You then set the time switch to the required times when the lights should go on and off, and the mains adapter provides a control signal to the circuit. For other (low voltage) applications the facility is still there to control the circuit with a switch. This should be connected to JP2. In this case you should remember to put a jumper onto JP1. The switch or adapter puts a logic high level at the input of NAND IC2a.The circuit.

The combination of C3/R2 and C2/R4 feed a positive or negative edge to monostable multivibrator IC1a every time the input level changes. The RC network of R3 and C4 keeps the Q output of IC1a (pin 6) high for long enough for NAND-gate IC2b to generate four pulses. The length of these four pulses determines how long the contacts of the switches in the remote control are closed and it depends on the values of R5/C5. At the same time, the preset input of the 4-bit down-counter (IC3) receives a preset pulse from the Q output. During the time that the Q output is high, IC3 receives four pulses and then stops until the state of the input to the circuit changes.

The logic level on pin 3 of IC2a determines which part of analogue switch IC4 is active. In this way only the first four switches are active when there is a low level at pin 9 of this analogue switch, whereas the last four switches are active when there is a high level at pin 9. The enable input (pin 6) of IC4 is active low and is made high for a short period by NAND IC2b. This ensures that there are distinct gaps between each of the (electronic) key presses. Due to the tolerances of the RC networks it is possible for the last switch to be pressed twice. In principle this doesn’t really matter, since turning a light on twice still leaves it on! If you find this a problem, you can fix it by reducing the RC time of IC1a a little bit by lowering the value of R3.

Power supply
To keep the circuit as compact as possible we’ve used an external mains adapter rated at 12 V AC or 15 V DC, which connects to K2. For completeness there is also a 12 V output via K1 (pin 1 is ground and pin 2 is +12 V), which can be used to supply the remote control unit. In this case you must make sure that the batteries are removed before you connect the circuit! If your remote control doesn’t work at 12 V, then all you need to do is to replace IC6 with one that outputs the correct voltage.

Modifying the remote control
As we mentioned earlier, this circuit was designed for use with a specific type of remote control. This circuit will only work with types where one side of the switches is connected to one common track (and the other side of the switches is connected to separate parts of the circuit). If your remote control unit is the same, you should solder eight plus one wires for the switches and two wires  for the supply to connector K4. Then solder the wires to the contacts of the switches.image 2

Before connecting this to the circuit you should test that you soldered all wires correctly to the remote control. Short pin 3 (M) of K4 with one of the other pins (1a to 4b) of K4. The remote control should then function just as if you pressed the corresponding key. If it all went satisfactorily you can connect K4 to K1. Don’t forget to remove the battery if you use the circuit to provide a power supply to the remote control!

Construction
The construction shouldn’t give rise to any problems. In any case, always start with the wire links (including those underneath the ICs). During the design we had a particular enclosure in mind (see parts list). If you 10/2005 - elektor electronics 57 use the same enclosure you should mount the voltage regulators as close to the board as possible, in order to keep the height to a minimum. It may help if you change the mounting holes to an oval shape with the help of a 1 mm drill. Connector K1 is used to connect the PCB to the remote control. It is of course also possible to mount the circuit complete with the mains adapter and remote control into a different enclosure. Either way, this circuit adds a useful function to your wireless lighting control!

COMPONENTS LIST

Resistors:
R1,R2,R4 = 10kΩ
R3 = 680kΩ
R5 = 47kΩ
R6,R9 = 100kΩ
R7 = 1kΩ
R8 = 3kΩ3

Capacitors:
C1,C4 = 10μF 10V radial
C2,C3,C8 = 15nF
C5 = 100μF 10V radial
C6,C7,C9 = 100nF
C10 = 470μF 25V radial

Semiconductors:
B1 = B80C1500 bridge rectifier in
round case (80 piv, 1.5A)
D1 = zener diode 4.3V 500mW
D2 = zener diode 4.7V 500mW
D3 = LED, red, low current
D4 = LED, red, low current
D5 = 1N4148
IC1 = 4538
IC2 = 4093
IC3 = 4029
IC4 = 4051
IC5 = 7805
IC6 = 7812

Miscellaneous:
JP1 = jumper
JP2 = S1, see text
K1 = 11-way SIL pinheader
K2 = 6-12 V adaptor socket, PCB mount
K3 = 5-9 V adaptor socket, PCB mount
K4 = 11-way SIL socket
Time switch 230V
Mains adaptor 12 VAC or 15 VDC
Mains adaptor 5-VDC
Case, e.g., Hammond type 1591-A
PCB, ref. 050173-1 from The PCBShop

(Elektor Electronics Magazine - 10/2005)


Download this article #e05a054.pdf or SkyDrive link
Download PCB layout #050173-PCB.pdf


0 comments:

Subscribe to: Post Comments (Atom)