Silicon ChipRemote Controller For Garage Doors & Gates - October 2004 SILICON CHIP
  1. Outer Front Cover
  2. Contents
  3. Publisher's Letter: Australia's future energy options
  4. Feature: The Humble “Trannie” Turns 50 by Kevin Poulter
  5. Review: Stressless Wireless by Peter Smith
  6. Feature: Epson’s Latest Micro-Flying Robot by Silicon Chip
  7. Project: SMS Controller, Pt.1 by Peter Smith
  8. Project: RGB To Component Video Converter by Jim Rowe
  9. Feature: This new PICAXE-08M is a wee ripper! by Stan Swan
  10. Review: The Amateur Scientist 2.0 by Peter Smith
  11. Project: USB Power Injector by Jim Rowe
  12. Project: Remote Controller For Garage Doors & Gates by Oatley Electronics
  13. Vintage Radio: Those troublesome capacitors, Pt.1 by Rodney Champness
  14. Back Issues
  15. Book Store
  16. Advertising Index
  17. Outer Back Cover

This is only a preview of the October 2004 issue of Silicon Chip.

You can view 22 of the 104 pages in the full issue, including the advertisments.

For full access, purchase the issue for $10.00 or subscribe for access to the latest issues.

Articles in this series:
  • Amateur Radio (November 1987)
  • Amateur Radio (November 1987)
  • Amateur Radio (December 1987)
  • Amateur Radio (December 1987)
  • Amateur Radio (February 1988)
  • Amateur Radio (February 1988)
  • Amateur Radio (March 1988)
  • Amateur Radio (March 1988)
  • Amateur Radio (April 1988)
  • Amateur Radio (April 1988)
  • Amateur Radio (May 1988)
  • Amateur Radio (May 1988)
  • Amateur Radio (June 1988)
  • Amateur Radio (June 1988)
  • Amateur Radio (July 1988)
  • Amateur Radio (July 1988)
  • Amateur Radio (August 1988)
  • Amateur Radio (August 1988)
  • Amateur Radio (September 1988)
  • Amateur Radio (September 1988)
  • Amateur Radio (October 1988)
  • Amateur Radio (October 1988)
  • Amateur Radio (November 1988)
  • Amateur Radio (November 1988)
  • Amateur Radio (December 1988)
  • Amateur Radio (December 1988)
  • Amateur Radio (January 1989)
  • Amateur Radio (January 1989)
  • Amateur Radio (April 1989)
  • Amateur Radio (April 1989)
  • Amateur Radio (May 1989)
  • Amateur Radio (May 1989)
  • Amateur Radio (June 1989)
  • Amateur Radio (June 1989)
  • Amateur Radio (July 1989)
  • Amateur Radio (July 1989)
  • Amateur Radio (August 1989)
  • Amateur Radio (August 1989)
  • Amateur Radio (September 1989)
  • Amateur Radio (September 1989)
  • Amateur Radio (October 1989)
  • Amateur Radio (October 1989)
  • Amateur Radio (November 1989)
  • Amateur Radio (November 1989)
  • Amateur Radio (December 1989)
  • Amateur Radio (December 1989)
  • Amateur Radio (February 1990)
  • Amateur Radio (February 1990)
  • Amateur Radio (March 1990)
  • Amateur Radio (March 1990)
  • Amateur Radio (April 1990)
  • Amateur Radio (April 1990)
  • Amateur Radio (May 1990)
  • Amateur Radio (May 1990)
  • Amateur Radio (June 1990)
  • Amateur Radio (June 1990)
  • Amateur Radio (July 1990)
  • Amateur Radio (July 1990)
  • The "Tube" vs. The Microchip (August 1990)
  • The "Tube" vs. The Microchip (August 1990)
  • Amateur Radio (September 1990)
  • Amateur Radio (September 1990)
  • Amateur Radio (October 1990)
  • Amateur Radio (October 1990)
  • Amateur Radio (November 1990)
  • Amateur Radio (November 1990)
  • Amateur Radio (December 1990)
  • Amateur Radio (December 1990)
  • Amateur Radio (January 1991)
  • Amateur Radio (January 1991)
  • Amateur Radio (February 1991)
  • Amateur Radio (February 1991)
  • Amateur Radio (March 1991)
  • Amateur Radio (March 1991)
  • Amateur Radio (April 1991)
  • Amateur Radio (April 1991)
  • Amateur Radio (May 1991)
  • Amateur Radio (May 1991)
  • Amateur Radio (June 1991)
  • Amateur Radio (June 1991)
  • Amateur Radio (July 1991)
  • Amateur Radio (July 1991)
  • Amateur Radio (August 1991)
  • Amateur Radio (August 1991)
  • Amateur Radio (September 1991)
  • Amateur Radio (September 1991)
  • Amateur Radio (October 1991)
  • Amateur Radio (October 1991)
  • Amateur Radio (November 1991)
  • Amateur Radio (November 1991)
  • Amateur Radio (January 1992)
  • Amateur Radio (January 1992)
  • Amateur Radio (February 1992)
  • Amateur Radio (February 1992)
  • Amateur Radio (March 1992)
  • Amateur Radio (March 1992)
  • Amateur Radio (July 1992)
  • Amateur Radio (July 1992)
  • Amateur Radio (August 1992)
  • Amateur Radio (August 1992)
  • Amateur Radio (September 1992)
  • Amateur Radio (September 1992)
  • Amateur Radio (October 1992)
  • Amateur Radio (October 1992)
  • Amateur Radio (November 1992)
  • Amateur Radio (November 1992)
  • Amateur Radio (January 1993)
  • Amateur Radio (January 1993)
  • Amateur Radio (March 1993)
  • Amateur Radio (March 1993)
  • Amateur Radio (May 1993)
  • Amateur Radio (May 1993)
  • Amateur Radio (June 1993)
  • Amateur Radio (June 1993)
  • Amateur Radio (July 1993)
  • Amateur Radio (July 1993)
  • Amateur Radio (August 1993)
  • Amateur Radio (August 1993)
  • Amateur Radio (September 1993)
  • Amateur Radio (September 1993)
  • Amateur Radio (October 1993)
  • Amateur Radio (October 1993)
  • Amateur Radio (December 1993)
  • Amateur Radio (December 1993)
  • Amateur Radio (February 1994)
  • Amateur Radio (February 1994)
  • Amateur Radio (March 1994)
  • Amateur Radio (March 1994)
  • Amateur Radio (May 1994)
  • Amateur Radio (May 1994)
  • Amateur Radio (June 1994)
  • Amateur Radio (June 1994)
  • Amateur Radio (September 1994)
  • Amateur Radio (September 1994)
  • Amateur Radio (December 1994)
  • Amateur Radio (December 1994)
  • Amateur Radio (January 1995)
  • Amateur Radio (January 1995)
  • CB Radio Can Now Transmit Data (March 2001)
  • CB Radio Can Now Transmit Data (March 2001)
  • What's On Offer In "Walkie Talkies" (March 2001)
  • What's On Offer In "Walkie Talkies" (March 2001)
  • Stressless Wireless (October 2004)
  • Stressless Wireless (October 2004)
  • WiNRADiO: Marrying A Radio Receiver To A PC (January 2007)
  • WiNRADiO: Marrying A Radio Receiver To A PC (January 2007)
  • “Degen” Synthesised HF Communications Receiver (January 2007)
  • “Degen” Synthesised HF Communications Receiver (January 2007)
  • PICAXE-08M 433MHz Data Transceiver (October 2008)
  • PICAXE-08M 433MHz Data Transceiver (October 2008)
  • Half-Duplex With HopeRF’s HM-TR UHF Transceivers (April 2009)
  • Half-Duplex With HopeRF’s HM-TR UHF Transceivers (April 2009)
  • Dorji 433MHz Wireless Data Modules (January 2012)
  • Dorji 433MHz Wireless Data Modules (January 2012)
Items relevant to "SMS Controller, Pt.1":
  • ATmega8515 programmed for the SMS Controller (Programmed Microcontroller, AUD $15.00)
  • ATmega8515 firmware and source code for the SMS Controller (Software, Free)
  • SMS Controller PCB pattern (PDF download) [12110041] (Free)
Articles in this series:
  • SMS Controller, Pt.1 (October 2004)
  • SMS Controller, Pt.1 (October 2004)
  • SMS Controller, Pt.2 (November 2004)
  • SMS Controller, Pt.2 (November 2004)
Items relevant to "RGB To Component Video Converter":
  • RGB to Component Video Converter PCB pattern (PDF download) [07209041] (Free)
  • RGB to Component Video Converter front and rear panel artwork (PDF download) (Free)
Items relevant to "USB Power Injector":
  • USB Power Injector PCB pattern (PDF download) [07110041] (Free)
  • USB Power Injector panel artwork (PDF download) (Free)
Articles in this series:
  • Those troublesome capacitors, Pt.1 (October 2004)
  • Those troublesome capacitors, Pt.1 (October 2004)
  • Those troublesome capacitors, Pt.2 (November 2004)
  • Those troublesome capacitors, Pt.2 (November 2004)

Purchase a printed copy of this issue for $10.00.

Everything you’ve ever wanted in a GARAGE DOOR OR GATE REMOTE CONTROLLER If you’re sick of getting out of the car in the rain (what rain!) to open the garage door or gate, it’s about time you got into the twenty-first century and made them remote controlled. This circuit is a beauty, giving you all the features you’ve ever thought you’d need and probably many more besides. T his controller uses an assembled UHF transmitter and receiver to make life easy for you. Output from the receiver is used to control the motor drive circuitry, the action depending on the pushbutton pressed on the remote transmitter. It may be used to directly control a 12V DC motor for a garage door opener or gate opener, or (with appropriate care and safeguards) to control an external relay or contactor which in turn controls 240V or even industrial 415V (three phase) motor as often found on large and high roller doors. While the circuit is complete, the details of the mechanical drive system for your particular garage door or gate opener are up to you. For inspiration, you might refer to our previous articles on a garage door opener in the April & May 1998 issues. Similarly, for a practical gate opener system, have a look at the August 1997 issue of SILICON CHIP. Both the drive systems referred to 76  Silicon Chip are based on 12V automotive windscreen wiper motors which have the advantage of being cheap, readily available, powerful and compact. This controller circuit suits those motors and incorporates a large 12V SLA battery as the power source. If you are considering a motor other than a windscreen wiper motor, bear in mind that most “straight” 12VDC motors will rotate too fast to be of much use in a garage door or gate opener. They need a gearbox to not only reduce the speed but increase torque. Using 12V as the power source is safe and convenient as well as providing extra insurance in case of a power blackout – when that happens, you can still operate the garage door/gate. The 12V SLA battery is kept charged via an on-board charger which is powered by a 9V AC plugpack. Note that this charger is NOT intended to charge 12V automotive-type batteries, which many people use as a backup. Trying to charge a flat 12V vehicle battery with this circuit would almost certainly burn it out. Features The main features of the controller circuit are provision for upper and lower door travel limit switches and over-current sensing for UP and DOWN modes of operation. This latter feature can be used to detect obstructions and immediately stop door operation to prevent damage to the motor, drive mechanism or possibly even your car (or you!). Keyfob remote transmitter The unit is based on a pre-built UHF receiver module and features a small keyfob transmitter that has more than half a million possible codes. You press a button on the transmitter and the door goes up; press the same button again and the door goes down. There is also provision for a manual switch which can be mounted somewhere on the wall inside the garage. siliconchip.com.au This is one way the finished project could be mounted – the see-through-lid 220 x 70 x 80mm electrical box is available from electrical wholesalers for about $30, while the courtesy light (left) is a car reversing lamp, available at auto shops. The SLA battery fits nicely in this case, along with the PC board, and the plugpack keeps it nicely charged. This works in a similar way to the button on the transmitter: press it once for the door to go up and press it again to make the door go down. If you press the button before the door reaches the end of its travel, it will stop. You then have to press the button again to make the door go in the opposite direction. This applies also to operation via the transmitter and is exactly the same convention used by commercial garage door openers. Circuit description The receiver is based on a pre-built UHF “front-end” module. This processes the signal received from the keyfob transmitter which has four buttons. One of the receiver outputs switches to +5V, depending on the button pressed. Door operation can be set to work with button “A” or “B”, selected by making connections at point “A” or “B” under the PC board. The connection marked “VT” can siliconchip.com.au also be used but the door will then operate with any button on the transmitter. This connection can be made by shorting the selected pads together with solder. The main IC on the receiver module is a Tri-state decoder chip which is used to decode the pulse signal generated by the transmitter. This device has eight address lines and these must be connected to match the transmitter code. (For more on this topic, see the Coding section of this text). If the code sequence is valid, the selected output switches high and LED1 is lit. The selected output connects via diode D1 to the clock input, pin 14, of IC1, a 4017 decade counter. This counter can also be clocked by manual switch S1 and by the limit switches. The length of the clock pulses produced by the operation of the limit switches is limited by the time constant of the associated 100nF (0.1mF) capacitor and 3.3MW resistor. The 10nF (.01mF) capacitor filters out any noise picked up by the wires used to connect to the limit switches, while the 10MW resistor discharges the 100nF capacitor after the switches have been operated. Note that when the power is first applied, IC1 is reset by a short pulse to pin 15, by virtue of the 10nF (0.1mF) capacitor connected to the +5V supply line. The counter is also reset when its Q4 output (pin 10) goes high, via diode D3. This means that IC1 can only have four exclusive output states: Q0 high, Q1 high, Q2 high or Q3 high. Outputs Q0 and Q2 do not drive anything so they correspond to “stop” modes while outputs Q1 and Q3 switch the “up” and “down” relays (via transistors Q1 and Q2). Thus, a succession of clock pulses from the receiver correspond to the following modes: Stop, Up, Stop, Down, Stop, Up, etc. Two separate over-current detectors, comprising op October 2004  77 78  Silicon Chip siliconchip.com.au 2004 SC  B E LED 0.22 Ω 5W +5V A K 0.22 Ω 5W RELAY1 RELAY2 +12V 10M 2.2k B C E TIP41 10 µF 100k 100k +5V K λ LED1 A 100nF D RF C MODULE VT A B C D A K 10 µF G D S Vss 8 RST D OVER CURRENT SET A K 100k 15 100nF +5V 4 IC3b VR2 100k 220k 6 5 180k D3 IC2d K A 12 13 K A 100k D4 4.7k D6 7 10k B A 1N4148 5 GND OUT K 10 220k D11 100nF B Q2 C8550 8 9 E C IN 1 A D16 K 1000 µF K +12V A ZD1 9.1V ZD2 5.1V E C – + – + B Q4 TIP41 OR MJE3055 100k 14 10 µF K 4.7k D C 1N4004 22nF 1.5k 4 3 6 7 1 2 1 D5 470 µF K 8 A K 2 5 A K G G Q6 2SK2165 OR P239 G K D14 470 µF 10Ω 10Ω 10Ω S D S D LOAD +12V LOAD +12V 9V AC IN 12V – BATTERY + X Y S D LAMP Q3 2SK2165 OR P239 +12V Q5 2SK2165 OR P239 +5V +5V 3 D9 A A 7 IC2a IC4 OE100 A D8 1N4148 4 IC2: 4093B 10M (OPTIONAL COMPONENT KIT) 100k 5 6 IC2b +12V RELAY2 100k IC2c 100nF 4.7k Q1 C8550 A K D1–5, D8–13: 1N4148 D6–7, D14–16: 1N4004 A A K D5 E C D7 RELAY1 REG1 L4949 10 µF 8 D10 10 µF +5V K A +5V 100nF 10 11 OE 13 Q4 4017B 16 Vdd 2 Q1 14 CLK 7 IC1 Q3 100nF 100k D13 IC3: LM358 1 MOSFETS VR1 100k OVER CURRENT SET A K 10k 3.3M 1M D2 100k 8 A K IC3a 220k 2 3 180k D12 10nF D1 MANUAL S1 GARAGE DOOR REMOTE CONTROLLER C C8550 100V GREENCAP 100–470nF – + MOTOR LIMIT SWITCHES ANTENNA REMOTE MANUAL SWITCH K REG1 L4949 + 4004 IC3 LM358 + amp comparators IC3a and 100nF 10 µF VR2 VR1 D16 10k 100k IC3b, detect higher than 180k 10k 180k 1000 µF 100k normal motor currents that 1.5k 100k 100k 220k 220k would result when the door 4148 4148 D13 D12 22nF Q4 100k 100k reaches its up or down stop TIP41 ZD2 5V1 470 µF 470 µF positions or if the door is ZD1 9V1 +5V 10 µF 10 µF 10 µF D15 obstructed. The outputs of D14 10M C these over-current detectors 4148 220k then apply a pulse to the D9 D10 4148 Q3 D11 D8 4148 A clock input of IC1, which P239 4148 10 µF Q2 causes it to go into the Stop 100k B 100nF mode. 100nF C8550 The counter (IC1) can be 0.22 Ω 5W 100k 100k 100nF D 4.7k 100nF disabled by holding its OE MANUAL Q1 100k input (pin 13) at +5V. The D2 VT 4148 0.22 Ω 5W S1 1M output of the monostable C8550 10nF GND LED1 comprising Schmitt NAND R10 10R 3.3M VALID 100nF 4.7k gates IC2c & IC2d is norTRANS © oatleyelectronics.com 10M CON5 CON6 CON1 CON4 CON3 CON2 mally low, thus enabling Q5 P239 Q6 P239 CON7 the counter to clock. However, this monosta– + REMOTE X LIMIT Y ~9VAC~ MOTOR K023C LAMP OUTPUTS SWITCHES MANUAL BATTERY ble is triggered via isolating COMPONENTS SHOWN IN BLUE ARE IN THE OPTIONAL COMPONENTS KIT diodes D4 & D5 each time Q1 (up) or Q3 (down) of IC2 first go high. This monostable therefore prevents the counter from stepping for approximately two seconds after the up or down modes are first activated. This two-second disabling of the counter prevents it being triggered by the over-current detectors, which would otherwise happen since a motor draws relatively high currents when it first starts up. A second monostable made up of gates IC2a & IC2b is used to switch a courtesy lamp via Mosfet Q3. This monostable is also operated via diodes D4 & D5 each time Q1 (up) or Q3 (down) of IC2 goes The PC board shown both as an overlay and matching photograph (both shown very close to right high. The time constant of size). Watch polarities on the semiconductors, electrolytics and the UHF receiver module. the monostable causes the relays and motor are driven directly is most unusual for boards to be crook courtesy lamp to light for just under from the 12V battery. but it still pays to check for shorts/ two minutes – enough time to exit the bridges and over-etching. car and garage and/or turn other lights Construction If you’re happy with the board, start on if necessary. We’re only going to cover the basic construction by mounting all of the As already noted, a combination of assembly details in this article, up to resistors first of all. a 12V SLA battery and 9V AC plugthe point where you put it in a case of Good construction practice means pack is used to power the controller some description. that you will orient all the resistors in and charge the battery. The battery is Final installation will of course the same way – eg, horizontally mountcharged via NPN transistor Q4 (TIP41) depend on individual situations so ed resistors with their multiplier bands which has its output set by zener diwe won’t attempt to cover that here. to the right and vertically mounted odes ZD1 & ZD2. First check that your PC board ap- resistors with their multiplier bands An L4949 regulator IC provides pears properly etched. These days it to the bottom of the board. This makes +5V supply for the receiver, while the + + + + 2.2k 10Ω 10Ω 4148 D3 IC1 4017B D4 4148 4148 D5 RX7 RECEIVE MODULE IC4 OE100 D7 4004 4004 D6 RELAY 2 RELAY 1 A B TV siliconchip.com.au + IC2 4093B 4004 4148 D1 4.7k 100k + 4004 October 2004  79 IC is wired with the same coding state as the corresponding pin on the decoder IC, otherwise the remote control will not operate. These connections can also be made with a solder blob between the IC pins and their nearby exposed 0V or +5V tracks. The over-current setting trimpots (VR1 & VR2) are set during installation of the door mechanism. Mounting it! A close-up view of the UHF receiver module, showing which way around it mounts on the main PC board. The cable at top left is the antenna wire. troubleshooting a lot easier, too. Next follow the other low profile components such as small capacitors, diodes, etc, then the larger capacitors, LEDs, the small transistors, etc. Follow the PC board overlay and the photographs to ensure you get the polarised components the right way around. The larger transistors and MOSFETs, plus the sockets for the ICs (if you are using them) go in next, followed by the trimpots, terminal blocks and (almost!) finally, the relays. Apart from the UHF receiver module, your board should now be pretty well populated. If there are empty holes (apart from the seven down the right-hand edge), check to see what you out! The receiver module Give your board a good check against the overlay and photo to make sure everything is in and in correctly. The receiver module is pre-assembled (it even has the antenna wire soldered on) and pre-aligned. It will work first time as long as you don’t twiddle anything! Solder it in position on the receiver module, then solder the module itself onto the main PC board. Again, use the photos to make sure you get it the right way around. The transmitter This comes as a kit but all soldering is already done for you. Simply assemble the bits in the case, and it’s finished! Coding We’ve shown one possible arrangement using a box intended for electrical switchgear. With a screw-on, see through lid this box measures 220 x 170 x 80mm and is available from most electrical fitting wholesalers. This box is a good size because it’s an easy fit for both the PC board and the SLA battery. We mounted the board in the upper side of the case via some 20mm tapped stand-offs and took all of the cabling out through the bottom, via a 20mm cable gland. Perhaps that’s a bit of overkill but it makes a nice, neat job. The cables go to the plugpack, the two limit switches, the 12V courtesy light and of course a pair of relatively heavy leads to the motor. Other connections within the case are for the 12V SLA battery (these leads fitted with a pair of spade lugs for convenience) and another pair of wires to the manual push-button switch, which we mounted on the side of the case. This may or may not be convenient for you but rememember, you can fit other switches in parallel if you so wish. The transmitter and receiver come with their encoder ICs unencoded. After the system is operating correctly, you may code the transmitter and receiver as leaving it uncoded is a high security risk. Data inputs are pins 1 through to 8 on both the encoder IC in the transmitter The mini keyfob transmitter – the photo at left and decoder IC on the shows how you would normally have it (albeit receiver module. Data with keys on the ring!). A cover slides down coding inputs are Trito reveal the four push-buttons (centre) while state, ie, each data pin a mini telescopic whip antenna can be raised may be either left floatif you are after the maximum possible range (right). ing, tied high (+5V) or tied to 0V. Ensure that the coding state on each pin number on the encoder Standard SPDT roller microswitches are used for limit switches. These are NOT supplied in the Oatley Electronics kit. 80  Silicon Chip siliconchip.com.au The 12V SLA battery is just a little too big to be left “slopping around” in this case so we glued some highdensity foam rubber to the sides and the back of the case, making it a nice, snug fit. The antenna position Ideally the antenna should hang straight down from the receiver board – but as you will note from the photo at right, we draped it around the top of the PC board, out of the way. In all but the most critical of applications, this should be more than satisfactory. If you really want to get picky, you could use a length of stiff wire and run it out through a hole drilled in the top of the case. But we’d wager you wouldn’t gain any additional range doing so! The mechanical side As we said at the outset, we did not intend to get into this area in this particular article. All this project provides is the switched 12V DC with reversing polarity to drive what ever motor arrangement you think appropriate. There are many different ways of opening and closing doors and gates, just as there are many different styles of doors and gates. It’s all up to you and your application. The motor We will make one other comment about the motor you use. As we mentioned, most 12V DC motors without gearboxes will have too much speed and not enough torque to be of much use in this role. Apart from the windscreen wiper motor option already covered, Oatley A shot inside the case with the battery removed shows how everything fits together. The switch on the upper right is the manual door switch – some may prefer to mount this outside the case in a more convenient position. Electronics have made us aware of a 24V DC motor which they have available which looks ideal for the job. It runs more than adequately on 12VDC and has the right sort of power and speed. Best of all, the sprocket suits a standard bike chain so mechanically it should be relatively easy to incorporate. It retails for around $70.00. This 24V DC geared motor from Oatley has lots of grunt, has bike sprocket output and operates perfectly from 12V. It should suit this project well. siliconchip.com.au Where from, how much? Oatley Electronics own the copyright on this design and the PC Board. The main kit of parts for the project, (K023C, retailing for $39.00) consists of the PC board and all on-board components, except for those marked optional. The optional components kit retails for $12.00, as do the TX7 4-channel keyfob transmitters (you can use as many as you like as long as they are all coded the same). The 12V 7Ah SLA battery (PB6) retails for $25, while a suitable 9VAC 1A plugpack (K023CP) sells for $6.00. Contact Oatley Electronics on (02) 9584 3563 or via their website, www.oatleyelectronics.com SC October 2004  81