Shop OBEX P1 Docs P2 Docs Learn Events
Brownout detection — Parallax Forums

Brownout detection

mojoemojoe Posts: 8
edited 2006-08-21 21:38 in BASIC Stamp
Is there any way to detect an impending brownout condition from within a running program on a BS2? I'm thinking that if you knew that a brownout was about to occur, you could save the state of your program to eeprom and resume when power was restored. Of course, this would only be appropriate for certain types of programs. Is this doable?

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2006-08-21 10:54
    Use an adjustable voltage detector or an a/d converter which provides an input to the Stamp. Set it so it operates at a lower-than-normal voltage (but still high enough that the stamp can run).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • mojoemojoe Posts: 8
    edited 2006-08-21 21:38
    Yes, I knew I could do it with external components. I guess I didn't specify in my original posting that I wanted to know if there was any way to do it with just the Stamp. Since the Stamp can detect a brownout itself, it would get great if there was some way to know this from within a running program, so that you could do something before the Stamp shuts down.
Sign In or Register to comment.