Parallax, Inc. • BASIC Stamp HomeWork Board ver 1.1
Page 6
With the SLEEP example the Power LED turns off when the SLEEP command is being executed because the
EEPROM is inactive. Current consumption is 10 mA while the loop is being executed but drops to 40 µA during
the SLEEP command.
' POWER DEMO - SLEEP.BS2
' Demonstrating the power LED with SLEEP command STeve
' {$STAMP BS2}
' I/Os, Constants and Variable definitions
loopCounter VAR
Byte
' Main Program
Start:
FOR loopCounter = 0 to 99
DEBUG Home, "loopCounter =", dec loopCounter
NEXT
SLEEP 1
GOTO Start
Precautions
Be alert to static sensitive devices and static-prone situations. The BASIC Stamp, like other integrated circuits,
can be damaged by static discharge that commonly occurs touching grounded surfaces or other conductors.
Environmental conditions (humidity changes, wind, static prone surfaces, etc) play a major role in the presence of
random static charges. It is always recommended to use grounding straps and anti-static or static dissipative
mats when handling devices like the BASIC Stamp. Since you don’t have a dissipative mat, touch a grounded
surface after you have approached your work area. This isn’t as critical as you might think but being prudent only
protects your hardware.
Before building circuits, disconnect the battery.