In SX Microcontrollers, SX/B Compiler and SX-Key Tool, edgellmh wrote: Jim I am using the microcontroller to detect fault conditions in an astronomical observatory that is remote to me. I need to effect dome closure when various parts of the total system fail or the weather gets bad. I wanted an independent assessment of the ac power to start dome closure before the UPS system runs out of power. I am not knowledgeable enough to know whether I should totally trust the UPS to close the dome on its own detection of power loss. However, the uPS can be programmed to execute a dome closure program when it begins its shutdown operations which in principle makes ac power detection moot. Since I need the microcontroller for other chores I thought adding this task would increase reliability. The suggestion of using a regulated 5V power supply directed to an SX input pin through a resister seems a very straight forward way to detect ac power and is logically equivalent to the ups related detectors you suggest. marshall ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=268433#m268684 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)