Tuesday, May 10, 2011

Mains Remote Control Decoder

Posted: 04 May 2011 05:50 AM PDT
This receiver/decoder forms part of a simple mains network remote control system, which also includes the ‘Mains Remote Transmitter’ and the ‘Mains Remote Encoder’. The decoder is built around IC1, which is a Holtek type HT12D or HT12F. For the receiver we use the same circuit as in the ‘mains remote switch’, namely a passive circuit tuned to approximately 143 kHz, since we assume that the transmitter is powerful enough to provide an adequate signal. Two 4069U inverters (IC2) are used to convert the received signal to TTL levels. D1 and D2 provide extra protection against noise pulses and the like. The sensitivity can be adjusted using P3, but you should bear in mind that over-driving IC2 can cause corruption of the data.

Mains Remote Control Decoder circuit diagram schematic projectThe trick with IC2 is that a small offset applied to the first buffer causes the second buffer to be displaced from the middle (which can be checked using a multimeter), so that the following monostable multi-vibrator (IC3, a 4538) receives a usable burst as a trigger signal. IC3a is re-triggerable, which means that if a trigger pulse arrives within the set time, the output pulse is extended. However, if the set pulse width is too long, the output pulses are extended so much that the decoder will not recognize them as valid data.

Mains Remote Control Decoder circuit diagram schematic projectIC3a thus recovers the originally sent code. P2 is added to the circuit to allow the pulse length to be adjusted as accurately as possible, but an oscilloscope is required for this. In practice, the adjustment is not all that critical and P2 can be simply set to its mid-range position. The output of IC3a is fed to the decoder (IC1), which compares the recovered code with the settings of S1 and S2. If the received code matches these settings, output VT goes High and some sort of application can be energized via buffer T2. If you have in mind connecting an active buzzer to the buffer output, you must thoroughly decouple it using a 10-mH coil in series and a 100-µF/16-V electrolytic capacitor in parallel, since these buzzers can be a source of stubborn interference.

Mains Remote Control Decoder circuit diagram schematic projectThe second monostable (IC3b) is used to generate a supplementary pulse with a duration of roughly one second. The pulse length can be modified (by changing R2 and/or C2) to meet the needs of a particular application that requires a certain minimum duration. T1 acts as a simple buffer for this output. As already noted, in principle two different types of decoder can be used: HT12D or HT12F. The HT12D has four data-bit outputs (AD8–AD11), with the data being made available on the SIL header K1. In this case it is better not to fit S2. If an HT12F is used for the decoder, K1 has no function, but a 12bit address can be set.

Mains Remote Control Decoder circuit diagram schematic projectNaturally, the oscillator of the decoder should be tuned to match the encoder used with the transmitter. For the HT12D/F, the oscillator frequency is 50 times that of the encoder. That means that here the oscillator must be set to around 112 kHz. According to the related curve on the data sheet, this requires an external resistance of approximately 115 kΩ to be connected between the OSC1 and OSC2 pins. This can be precisely set using P1, and the potentiometer also allows for adjustments to compensate for various tolerances.

The power supply for the circuit is designed according to the usual standard configuration, with the transformer (Tr2) being intentionally somewhat over-dimensioned to provide extra capacity for powering small applications (buzzer, LED etc.). Building the circuit is a simple task if the illustrated printed circuit board is used. Since the power supply (including the transformer) is fitted on the circuit board, the amount of wiring required is minimal.

Resistors:
  • R1 = 100kΩ
  • R2 = 47kΩ
  • R3 = 1MΩ
  • R4 = 330kΩ
  • R5 = 10MΩ
  • P1 = 25kΩ preset
  • P2 = 100kΩ preset
  • P3 = 50kΩ preset
Capacitors:
  • C1 = 100pF
  • C2 = 1µF MKT, lead pitch 5mm or 7.5mm
  • C3 = 22nF 275VAC, Class X2
  • C4 = 22 n ceramic, lead pitch 5mm
  • C5,C7 = 220pF
  • C6 = 2nF2 ceramic, lead pitch 5mm
  • C8,C9,C10 = 100nF
  • C11 = 100nF ceramic, lead pitch 5mm
  • C12 = 10µF 63V radial
  • C13 = 470µF 25V radial
  • C14-C17 = 47nF ceramic, lead pitch 5mm
Inductor:
  • L1 = 470µH miniature choke
Semiconductors:
  • D1,D2 = BAT85
  • T1,T2 = BC547
  • IC1 = HT12D/F (Holtek) (Farnell) *
  • IC2 = 4069U
  • IC3 = 4538
  • IC4 = 7812
Miscellaneous:
  • K1 = 4-way pinheader
  • K2 = 2-way PCB terminal block, lead pitch 7.5mm
  • S1 = 8-wayDIP-switch
  • S2 = 4-way DIP-switch *
  • B1 = B80C1500 (rectangular) (80V piv, 1.5A)
  • TR1 = N30 ring core 16x6.3 mm EPCOS B64290L45X830 (Farnell) *
  • TR2 = mains transformer 15V/1.5VA, short circuit resistant, e.g., Block type VB 1,5/1/ 15

No comments:

Post a Comment