In SX Microcontrollers, SX/B Compiler and SX-Key Tool, VelocitąPaola wrote: It sounds like you're on the right path. Depending on your power needs, I would either use a Darlington pair NPN transistor or an N-channel MOSFET to control a common ground to all components. Have the SX control the base/gate to that transistor/MOSFET. You can have the SX scan a momentary pushbutton through either an interrupt routine, or just have it check the button when it's not doing something else. If the button's been pressed, it can either wait for a little while or prepare to go to sleep. It wouldn't be too difficult to have it "timeout" and go to sleep either. Why don't you write a little psuedocode to define what you want the program to do. It sounds like most everything will be done in software for this project; the hardware will be trivial. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=276305#m276442 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)