November 22, 2024, 08:33:50 AM

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.


PIR Sensor questions

Started by steveo, August 20, 2007, 07:05:52 AM

Previous topic - Next topic

JonnyMac

You can't use this line:

  IF PIR < 500 THEN Main

because that will always be true -- PIR is a digital input and can only hold the values 0 and 1.  Now, if you meant this:

  IF timer < 500 THEN Main

then you're cool.

Jon McPhalen
EFX-TEK Hollywood Office

tj

your right, thats what i had. I've tried serveral ways, but with this it works for a while like 7-8 min  Then its like it gets used to the surroundings

instead of triggering all the time, it won't trigger at all. if i decrease "timer" to 250 for ex. it triggers constantly. I'll probably

send it back for someone to check, but everything else works flawless. time to order more stuff and keep practicing. ( sound is next )

thanks for your help.