November 22, 2024, 03:41:00 PM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


using a PIR with a prop1

Started by Lynn, April 05, 2010, 07:37:35 AM

Previous topic - Next topic

Lynn

While I am learning about the PROP1....

I have a Quorum PIR...  uses a 9V battery.   

When my program on the prop 1 is finished.   The program re-triggers  without movement in front of the PIR.
Keeps doing this.. just retriggers over and over. 

Jon,  this is the program I had you help me with and finally got going correctly last week.
So, the program is fine, I just am wondering if I can use this PIR with the prop1?
I am still going to use the pressure mat as my trigger on this but thought I would try out the PIR. 

Does the program need something in it in order to use the PIR?

gadget-evilusions

If that's a security system type PIR they are normally closed. Your program would have to look for their to not be closure to start instead of looking for closure on a mat switch.
Brian
Evilusions LLC
www.evilusions.com for all your pneumatic components

Lynn

April 05, 2010, 10:52:58 AM #2 Last Edit: April 05, 2010, 11:02:47 AM by Lynn
Yes, thats exactly what it is.
I could run the PIR through a relay ...?

gadget-evilusions

You shouldn't have to. Your program would just be looking for a 0 instead of a 1 to start.
Brian
Evilusions LLC
www.evilusions.com for all your pneumatic components

Lynn

Would I need to do this?
9v+ ------[22K]------ P6.W
GND ----------------- P6.B  (Note this is connected to the B [ground] pin)
And connect to the black and white rather than the white and red like the mat switch?

And would the jumper be set to UP or DN?   

JonnyMac

Lynn,

Do you have link to tech docs for the sensor?  It's probably a dry-contact, normally-closed output.  If it is you can connect it a little differently without changing the program code.

Need the docs.
Jon McPhalen
EFX-TEK Hollywood Office


JonnyMac

Okay, use this at your own risk -- hacking into a product at your experience level is not generally recommended.

Based on that documentation, you should connect the black wire output to the Px.B pin (ground) and the red (5v when active) to the Px.W input.  The docs state that the output is on for 2 seconds on detection; that's plenty for the debounce circuit.
Jon McPhalen
EFX-TEK Hollywood Office

JackMan

Lynn,
    If you can't get your PIR to work, stop by any Radio Shack and pick up a Parallax PIR. They have them for $10 and it will plug right into the three pin connection.

Lynn

I'll try that.   I have already soldered wires to the output of the PIR. 
I'll just try connecting to the black and white pins on the prop1.



JonnyMac

You might want to try the LED circuit in the docs first -- this will let you verify the action of the device.
Jon McPhalen
EFX-TEK Hollywood Office