![](/html/fd/fdc2/fdc2bc4498fdf2a94c5ac49ce3cbe17fd74ac1b729210b73f1166a48368201a1/bg1.png)
Description
Features
The ELM334 is a handy circuit for remotely
monitoring the position of your garage door. A twowire interface is all that is needed to convey the
position of the door to two remotely located LEDs,
and to also provide control for an electric opener if
desired.
This circuit continually monitors the state of two
position sensing switches, representing the fully
open and fully closed positions of the door. After
suitable debouncing, the states of these switches
are used to vary the polarity of the two signal wires,
resulting in either the red (open) or green (closed)
LED turning on. When the door is in neither position
(moving), the LEDs rapidly alternate between the
two colours.
If desired, circuitry to detect a short between the
two LED wires can be added and used to operate a
control output. If the door is equipped with a
standard electric opener, this control signal can be
used to operate the door. Refer to the Example
Application section for further details.
Applications
• Low power CMOS design
• Wide supply range - 3.0 to 5.5 volt operation
• Simultaneous monitoring of three inputs
• Fully debounced inputs
• Two wire interface
• Stuck button protection on the control output
• Control function is an optional addition
Connection Diagram
PDIP and SOIC
(top view)
VDD VSS
RLED
GLED
OpenSw
ClosedSw
ControlPB
• Garage door monitoring and control
• Remote signalling and acknowledgement
Block Diagram
RLED
PB
ELM334DSB
Elm Electronics – Circuits for the Hobbyist
Debounce
Timers
Drive
Logic
Debounce
Timers
Debounce
Timers
Output
Limitter
< http://www.elmelectronics.com/ >
OpenSw
ClosedSwGLED
Control
1 of 4
![](/html/fd/fdc2/fdc2bc4498fdf2a94c5ac49ce3cbe17fd74ac1b729210b73f1166a48368201a1/bg2.png)
Pin Descriptions
VDD (pin 1)
This pin is the positive supply pin, and should
always be the most positive point in the circuit.
Internal circuitry connected to this pin is used to
provide power on reset of the microprocessor, so
an external reset signal is not required. Refer to
the Electrical Characteristics section for further
information.
RLED (pin 2), and GLED (pin 3)
These two pins are for driving a red and a green
LED through a current limiting resistance.
Typically the LED used will be a dual type, that
appears white if not energized, red if energized
in one polarity, and green if the polarity is
reversed. Alternatively, two discrete LEDs could
be wired ‘back-to-back’. During powerup, the red
LED will be lit for 0.5sec, followed by the green
for 0.5sec, and then the circuit will alternate
between the two for a further 0.5sec.
PB (pin 4)
A momentary low level signal on this pin will
cause the control output to go high, after
approximately 25msec delay due to the internal
debounce circuitry. If unused, this pin should be
connected to VDD.
Control (pin 5)
This output goes to an active high level (VDD), in
response to a valid low level on pin 4. The
duration of the output will be the same as the
input, to a maximum of 500ms. At this point, the
circuit will assume that the button is ‘stuck’, or
there has been a wiring fault, and it will turn the
output off. The state of the RLED and the GLED
lines is not updated if the circuit thinks that the
pushbutton is being pressed.
ClosedSw (pin 6), and OpenSw (pin 7)
These two inputs are for monitoring the position
of the door. This is normally done by connecting
magnetic reed type switches between each of
these pins and VSS, with the two switches
mounted at the extreme positions of the door
travel. When fully open, only the OpenSw input
will be at a logic low level (switch closed), and
when fully closed, only the ClosedSw input will
be low. Both switches simultaneously open or
closed will cause the LEDs to alternately flash
red and green as a warning (or as feedback that
the door is moving). Internal circuitry provides a
nominal 0.5sec debounce period on both inputs.
VSS (pin 8)
Circuit common is connected to this pin. This is
the most negative point in the circuit.
Ordering Information
All rights reserved. Copyright ©1999 Elm Electronics.
Every effort is made to verify the accuracy of information provided in this document, but no representation or warranty can be
given and no liability assumed by Elm Electronics with respect to the accuracy and/or use of any products or information
described in this document. Elm Electronics will not be responsible for any patent infringements arising from the use of these
products or information, and does not authorize or warrant the use of any Elm Electronics product in life support devices and/or
systems. Elm Electronics reserves the right to make changes to the device(s) described in this document in order to improve
reliability, function, or design.
ELM334DSB
These integrated circuits are available in either the 300 mil plastic DIP format, or in the 200 mil SOIC surface
mount type of package. To order, add the appropriate suffix to the part number:
300 mil Plastic DIP............................... ELM334P 200 mil SOIC.....................................ELM334SM
Elm Electronics – Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
2 of 4