Shop OBEX P1 Docs P2 Docs Learn Events
TURNING OFF THE POWER AUTOMATICALLY — Parallax Forums

TURNING OFF THE POWER AUTOMATICALLY

hi im using basic stamp 1 and 2, does anyone here know how to turn off the power with specific time? for example. i want to turn off my device in 10 pm then turn on again in 11 pm. is that possible? thanks!!!!

Comments

  • kwinnkwinn Posts: 8,697
    It's possible but it will require some type of timekeeping. Are you turning off power to the stamps as part of the device, or just a device?
  • The Basic Stamps can't turn off their power. They do have the SLEEP and NAP statements which can reduce the amount of power needed. For example, the BS2 normally draws 3mA. During SLEEP, it draws only 50uA. You would need some kind of external Real Time Clock (RTC) chip to provide an accurate time. Your program would periodically read the time. When it passes 10pm, your program would shut down and do a SLEEP for an hour, then reinitialize things and continue working. It's always better for a program to do an orderly shutdown and startup rather than just having power cut off suddenly. A lot depends on what your Stamp is connected to and what it's controlling.

    A lot of voltage regulators have a shutdown pin. It's pretty straightforward to have a Stamp shut down its power and use the alarm output of a battery powered RTC to turn it on again. It all depends on what you're trying to accomplish.
Sign In or Register to comment.