November 23, 2024, 10:50:12 PM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


Tracking (panning) via multiple PIR and a prop-1?

Started by CraigN, January 27, 2011, 04:07:50 PM

Previous topic - Next topic

CraigN

Hi Jon,

Was wondering if it's possible to have multiple PIRS attached to a prop-1?

I was thinking of building a 2 or 3 axis skull that would be able to pan left and right via servo by input received from 2 or 3 PIRS. 

My idea is to have a 180 degree field of view with 3 PIRS; left, center, right.  As someone walked across the field of view they would trigger the left pir, then center, then right with the skull head servo being driven to pan or "follow" their movement.

I know the PIRS are tricky to work with and I may need to look at a different trigger but figured I would ask your opinion before I start the project.

Basic routine = set start position, wait for input 1 , move to position 1, wait for input 2, move to position 2, wait for input 3, move to position 3, reset back to start position or reverse. Might need to set priority of some sort for input, if more then 1 PIR is triggered at a time.

Thanks in advance.

Haunting in Ohio.  ;D

CraigN

Jon,

I searched the forum again and found information regarding multiple PIRS.  Looks like it can be done. 

I will be using the HI-Tech servo I purchased last year to pan the skull.

Any suggestions will be appreciated.

Haunting in Ohio.

JonnyMac

Maybe... but I wouldn't hold my breath.  You'll have to set up a stacked loop setup where the inner loop is about 20ms (for servo) updates, the outer loop is five units so that you get a 100ms debounce period. 

Give it a go and if you get stuck I'll help out.  Hint: the BRANCH statement can be used to decide where to go based on the debounced PIR inputs.
Jon McPhalen
EFX-TEK Hollywood Office