Sleep mode for Basic Stamp2
Hello,
I am using a Basic Stamp 2 for a college project. Is it possible to put the stamp into sleep mode to conserve power. The stamp will be used as part of a wireless temperature sensor powered by an energy harvesting device. Any help would be much appreciated.
Eoin.
I am using a Basic Stamp 2 for a college project. Is it possible to put the stamp into sleep mode to conserve power. The stamp will be used as part of a wireless temperature sensor powered by an energy harvesting device. Any help would be much appreciated.
Eoin.
Comments
You can put the stamp into a "PAUSE" mode, where it will 'wake up' every 2.5 seconds, do a quick check, and PAUSE some more. It takes very little current when in "PAUSE", I believe.
But there is no 'interrupt' pin (as other processors have) which would let you 'sleep' the processor until a signal happens on that pin.
So, if the 'pause' is good enough for you, then you're in business.
Here is a low current standby circuit for the Basic Stamp that consumes less than 3nA (nano-Amps).
Originally I built this for my daughters "play house" equipped with a door-bell.· A rechargeable 9V
battery (7.2V) would last about 8 months.· As long as you can generate a positive external trigger
to the base of the 2n3094, this circuit should work for you.
http://forums.parallax.com/attachment.php?attachmentid=38912
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
·
·· Please check the BASIC Stamp Manual or Help File for the SLEEP command.· This will put the Stamp into low-power mode where it draws only 50 uA of current.· This is typically used in data logging applications where the Stamp Module needs to run off from battery power for an extended length of time.· You can specify an interval where the BASIC Stamp can wake up and take a sample, log it, then go back to sleep.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
What am I doing wrong?
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
It sounds to me like it's never reaching the SLEEP statement for some reason, or it'snot sleeping for as long as you expect it to. A copy of the program would probably be helpful at this point. During sleep the (assumed) BS-2 should only be drawing 50 uA.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
·
·· SLEEP is better suited to situations where you need to wake up at an interval and take a reading, then go back to sleep.· In your case, where you need to constantly monitor for the door open/close state it may not work the way you want.· Also, if your switches have pull-ups then they’ll draw some current too, regardless of the current drawn by the BASIC Stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I think the answer is that the BOE dedicates current to the regulator and other equipment. Thanks for the help. I'd add the code if I could figure out how.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
CraigL