Remote Control Mains Switch

As the only electronics engineer in my  =family and circle of friends, it is some-times not possible to evade an appeal for help. This time the request came from a friendly elderly lady in a retirement home. In her room the light switch by the door  and the pull cord above the bed operate the light fitting on the ceiling in the middle of the room. However, she would prefer that her standing lamp was operated  by these switches instead, since she does not actually have a light fitting mounted  on the ceiling. This standing lamp has an  on/of f switch in the power cord and is  plugged into a power point. However, it  stands rather far from the bed so that she  always has to find her way in the dark. A  wireless operated power point is not really  a consideration, because it is just a matter of time before the remote is lost. Or maybe not?

Circuit Diagram :

Remote Control Mains Switch-Circuit Diagram

Remote Control Mains Switch Circuit Diagram

Behold a feasible circuit. Buy a wireless power point and an enclosure that is big enough for the remote control and a small piece of prototyping board. On the proto-typing board build the circuit according to the accompanying schematic and (care-fully) open the remote control and solder wires to the push buttons for ‘on’ and ‘off’.  Measure if these are polarised and if that is  the case connect them to the 4N25 opto-couplers as shown in the schematic, where  pin 5 has a higher voltage than pin 4.

The operation is as follows. The lady operates the pull cord or light switch to turn the light on. This causes the mains voltage to be applied to the transformer. The relay is activated which charges C1. While C1 charges, a small current flows through optocoupler 1. The result is that the ‘on’ button on the remote control is pressed.  The remote control switches the corresponding power point on and to which the  standing lamp is connected. The standing  lamp will therefore now turn on. Capacitor C2 is charged at the same time. If the lady pulls the cord again, or if she operates the  switch near the door, the relay will de-energise and C2 discharges across optocoupler  #2. This operates the ‘off’ contact of the  remote control and the light goes out.

The remote control continuous to operate from its normal battery and the white enclosure is attached to the ceiling in place of the light fitting. Diode D1 ensures that C1 is discharged when the relay de-energises. D2 ensures that C2 cannot discharge across the relay, but only across optocoupler 2.

 

Author : Jaap van der Graaff - Copyright :Elektor

Audio Controlled Mains Switch

It is often useful for audio or video equipment to be switched off automatically after there has been no input signal for a while. The function of the on-off switch in such equipment is then taken over by switch S2 in the accompanying diagram. It remains, however, possible to  switch off manually by means of Si. Automatic  switch-off occurs after there has been no input  signal for about 2 minutes: this delay makes it possible for a new record or cassette to be placed in the  relevant machine.

 

The audio input to the proposed circuit may be  taken from the output of the relevant TV set, amplifier, or whatever. The input earth is held at + 6 V  with respect to the circuit earth by potential divider  Ri-R2-R3-R4. The two 741s function as comparators: the output of ICi goes high when the in- put signal is greater than + 50 mV, whereas the out- put of IC2 goes high when the input signal  becomes more negative than -50 mV. Resistors  R6, R7, and R8 form an OR gate that drives transistor Ti. If the output of either ICi or IC2 is logic  1, Ti conducts.

 

Circuit diagram :

Audio-Controlled-Mains-Switch-Circuit-Diagram

Audio Controlled Mains Switch Circuit Diagram

 

The 555  operates as a retrigger able monostable,  whose period is determined by Rio and Ci. The  device is triggered when its pin 2 is earthed by the  closing of S2. Its output, pin 3, then remains high  for 1 to 2 minutes, depending on the leakage cur- rent of the 555. The monostable resets itself as soon  as the potential across Ci exceeds a certain value.  As long as there is an input signal to the circuit, Ti conducts and Ci remains uncharged. As soon as  the audio signal ceases, Ti switches off, and Ci  charges until the potential across it is sufficient to  reset the 555. The monostable may also be reset by  closing Si, which connects pin 6 of the 555 to + 12 V.

 

Audio-Controlled-Mains-Switch

When IC3 is reset, Ci is discharged via its pin 7. Resistor Rrn serves as protection, because without it Ti could short-circuit the supply lines. When the output of IC3 goes high, T2 conducts,  the relay is energized, and the relay contacts switch on the mains voltage as appropriate. To counter the induced potential when the relay contacts close, which could damage T2, diode Di has been connected in parallel with the relay coil.

Simple Electrification Unit

The circuit is intended for carrying out harmless experiments with high-voltage pulses and functions in a similar way as an electrified fence generator. The p.r.f. (pulse repetition frequency) is determined by the time constant of network R1-C3 in the feedback loop of op amp IC1a: with values as specified, it is about 0.5 Hz. The stage following the op amp, IC1b, converts the rectangular signal into narrow pulses. Differentiating network R2-C4, in conjunction with the switching threshold of the Schmitt trigger inputs of IC1b, determines the pulse period, which here is about 1.5 ms. The output of IC1b is linked directly to the gate of thyristor THR1, so that this device is triggered by the pulses.

The requisite high voltage is generated with the aid of a small mains transformer, whose secondary winding is here used as the primary. This winding, in conjunction with C2, forms a resonant circuit. Capacitor C3 is charged to the supply voltage (12 V) via R3.When a pulse output by IC1b triggers the thyristor, the capacitor is discharged via the secondary winding. The energy stored in the capacitor is, however, not lost, but is stored in the magnetic field produced by the transformer when current flows through it. When the capacitor is discharged, the current ceases, whereupon the magnetic field collapses. This induces a counter e.m.f. in the transformer winding which opposes the voltage earlier applied to the transformer.

Circuit diagram:

Simple_Electrification_Unit_Circuit Diagram

Simple Electrification Unit Circuit Diagram

This means that the direction of the current remains the same. However, capacitor C2 is now charged in the opposite sense, so that the potential across it is negative. When the magnetic field of the transformer has returned the stored energy to the capacitor, the direction of the current reverses, and the negatively charged capacitor is discharged via D1 and the secondary winding of the transformer. As soon as the capacitor begins to be discharged, there is no current through the thyristor, which therefore switches off. When C2 is discharged further, diode D1 is reverse-biased, so that the current loop to the transformer is broken, whereupon the capacitor is charged to 12 V again via R3. At the next pulse from IC1b, this process repeats itself.

Since the transformer after each discharge of the capacitor at its primary induces not only a primary, but also a secondary voltage, each triggering of the thyristor causes two closely spaced voltage pulses of opposite polarity. These induced voltages at the secondary, that is, the 230 V, winding, of the transformer are, owing to the higher turns ratio, much higher than those at the primary side and may reach several hundred volts. However, since the energy stored in capacitor C2 is relatively small (the current drain is only about 2 mA), the output voltage cannot harm man or animal. It is sufficient, however, to cause a clearly discernible muscle convulsion.

Author: P. Lay - Copyright: Elektor Electronics