
MovieMaker
USA
Asked
— Edited

I have tried every which a way and I cannot find a way to hook the PIR to the EZB. I have tried Analog,Digital, etc. I bought a dozen of these units - the ones with the TWO Potentiometers on the PC. You help would be appreciated.
Thanks,
Further to @Rich's timer solution (which is really pretty good)... You could remove $x=0 from the timer script and run just the timer script continually... Since all variables are global you can have $x reset to 0 in all your other active scripts (except for the PIR monitoring script of course)... That way while you bot is awake and doing stuff it keeps the timer constantly set to 0. That is until activity stops and then within 60 seconds (or whatever length of time you choose) the bot will go into sleep mode...
Just an idea...
$x = 0 is there because if it is run before anything else it will fail as $x wouldn't exist. Unless $x is in the init script.
Also, it isn't a forever looping script so once $x did hit 60 (for any reason) the repeat loop would end and the script would stop. Hence why it needs to be part of a bigger script.
Ok, thanks
I feel like a blind man wandering around in the bush at night hoping to find my way home!
So here's where I'm at with this project, I've put some comments in so you can see what I'm trying to accomplish. Any and all help will be appreciated.
Thanks
PS. I would pay money to go to a course somewhere to learn EZ-Robot scripting!