Hall Effect Sensor to detect open door
parf02
Posts: 2
I am trying to build a security system which can detect when a door opens.
I was thinking of putting the sensor on the wall and a magnet on the door. When the door is closed, the sensor and the magnet are in proximity.
I am using a BASIC stamp II to monitor the HIGH/LOW output of the sensor.
I was expecting the hall effect sensor to output 1 or 0 depending on wether or not the two were in proximity. After testing, the results are not as simply. Sometimes the senor outputs 0 when there is no magnet sometimes its 1.
Can I do anything to make it work as I was expecting?
Thank you
I was thinking of putting the sensor on the wall and a magnet on the door. When the door is closed, the sensor and the magnet are in proximity.
I am using a BASIC stamp II to monitor the HIGH/LOW output of the sensor.
I was expecting the hall effect sensor to output 1 or 0 depending on wether or not the two were in proximity. After testing, the results are not as simply. Sometimes the senor outputs 0 when there is no magnet sometimes its 1.
Can I do anything to make it work as I was expecting?
Thank you
Comments
For detecting a closed door situation, I'd use the simplest possible sensor, either a reed switch (typical Radio Shack window switch for burglar alarms) or a mechanical switch, as used in car doors and refrigerator doors to control the interior light.
Thanks for the suggestion!!
http://www.security.honeywell.com/hsc/documents/omincatin.pdf
I have plenty experience with solid state mag sensors, some are open-drain and some are push-pull.
What mag sensor/halleffect do you use?
Some are Omni polar and some only change when first south and then a north pole magnet.
In what angle direction is the magnet located compared to sensor/pcb?
Through hole or smt is best for you?
-Phil
Same thing for broken wire to.
Fail Safe operation.
Duane J
A closed door would be a logic 0, an open door would be a logic 1. That would seem to imply that a power failure would indicate a false door closed.
Jameco has these with the amplifier. Though they require power from higher than 3.3v, the open-collector can be pulled up to 3.3 to work directly with the Propeller i/o. I have been helping a fellow with a kinetic sculpture that is using both the unipolar and bipolar hall-effect sensor (which include the amplifier, the open-collector, and a teenie-tiny regulated power supply). They work fine... as long as you understand that the unipolar will only trigger with one pole of the magnet. If you install the magnet backwards... nothing happens.
This one is great:
smt, low 5-10uA, push-pull, active with south OR north pole from the sides.
http://www.murata.com/products/sensor/pdf/MRMS201A.pdf
http://www.mouser.com/ProductDetail/Murata/AS-M15TAN-R/?qs=%2fha2pyFaduiXcWmKvuppHOlx9lQjpGqVs278Gn2%2flCGttRKuyhxNQg%3d%3d