PIR motion detector interfaced to BS2
Cogburn
Posts: 62
I am wanting to hack a motion detector circuit like those sold for outdoor lighting and interface with Basic Stamp 2.· I am basically looking for info on whether or not the PIR puts out a TTL signal when motion is detected and where I should look for this signal in the circuit.· Also some of those PIR devices are hooked to 110 volts but I am wanting to use 9 volts or less.· Has this been done and if so, does anyone know of a link to this kind of information?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Showing up to school doesn't·mean you are a student any more than crawling up in an oven means that·you are a biscuit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Showing up to school doesn't·mean you are a student any more than crawling up in an oven means that·you are a biscuit.
Comments
This is usually pretty easy to do. I have hacked a couple of PIR units. Unfortunalty, the ones I got were surplus and have no identifiers on them, so I can't direct you to the same ones. However, I think any of them will work.
Firstly, even if you can't trace back the circuit, you can always get a 120V relay and connect it to the output of the PIR, and use that to let the Stamp know when the unit has triggered. This is simple and will work.
If you want to avoid the relay, follow the circuit back from the 120V output. It should go back to some kind of transistor. Find the base of the transistor and measure the voltage when the unit is tripped. Note that as long as the voltage is below about 12V you can use this provided you have an appropriate resistor protecting the Stamp pin. If the voltage is higher than that, you can either use a voltage divider or a regulator to bring it down to what the Stamp can handle.
HTH,
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
The unit has two controls, light level, and hold time.
Try looking at outdoor lawn or garden lighting in your local hardware store for this type of controller.
The one I found was marketed by Merlin.
tma
http://store.yahoo.com/webtronics/movdetas.html
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
HVW technologies sells a PIR like the one Jon showed. I used it in an application where it would trigger a wildlife camera for taking pictures of critters at night. Worked great.
Can be found here[noparse]:http:[/noparse]//www.hvwtech.com/pages/products1a.asp?CatID=10&SubCatID=47
about $11.00
Mike S
btw-I agree with your observation of students.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Showing up to school doesn't·mean you are a student any more than crawling up in an oven means that·you are a biscuit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
http://www.hvwtech.com/pages/products1a.asp?CatID=10&SubCatID=47
looks like the way to go for new designs but you will also need a controller chip.
The site also provides free downloads of App Notes and controller data sheet.
I like playing with old stuff so I will contine with hackinf the lawn controllers I got for 50c each
tma
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA