help with a pir motion sensor
Robe
Posts: 13
I·have a DHM 5150 human motion sensor module that I have purchased from DR R.· and I·was wondering if I could use a·BS2 to run the sensor by using a code or do I need hardware.· Could anyone help me with a program to get·me started or what I should do to get it started with a basic stamp.
I would really appreciate your help thank you.···
····
I would really appreciate your help thank you.···
····
Comments
A link to the "DR R." web site, or to the data sheet for the DHM 5150 would be real helpful.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
·· If the type you have is the kind used in a Home Alarm System, these typically have a small reed relay which closes it's contacts.· In this case you would read it the same as a switch.· I did a search on Google with the information you gave, but didn't come up with a matching sensor.· So you could have one like Jon describes (Usually 3 pins), or it could be one from an Alarm System (screw terminals inside).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· After finding the docs for this device, I see it's more like what Jon described.· However, the docs are kind of cryptic, and from the looks of them, you will have some difficulty interfacing this device with a BASIC Stamp unless you use a comparator or something to trigger an output.· The output of this device appears to be at 1.5V when not active and 5V when active.· That presents a small problem for direct input, since 1.5V is a HIGH to the BASIC Stamp, as is 5V.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I don't claim much electronics expertise, but couldn't the same thing be accomplished by inserting any common diode (to drop the voltage by .7 volts) in line with the signal terminal?
AFAIK the diode solution is current independent, where the resistor solution may not be. I don't know if that makes any difference in this case or not, but it saves having to dig out or purchase two resistors of specific values <shrug>.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
·· Both methods should work fine...I myself was hesitant to suggest anything specific without having the device to play with, since the docs aren't real informative.· There are actually 2 analog outputs, but both seem to start at 1.5V so...The sensor Jon referred to might be a better solution.· I myself have the type used in Alarm Systems, which have a relay output.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com