In SX Microcontrollers, SX/B Compiler and SX-Key Tool, william wrote: Attached is the SX code for the litesaver module. You can hack it to improve it if you like. I think you will find that the SX already allows a few seconds before detecting the PIR again. The glitches are mostly caused by sparks causing the SX to restart (listen for the long beep), not from the PIR being blinded by the lamp switching. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=304658#m314504 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)