Automatic Restarting
Mohammad
Posts: 12
This is getting on my nerves and is killing me! I've been working on this for awhile now:
My BSII will just restart after doing the actions LookAroundYou and Aline
heres the code: www.geocities.com/name_here44/messenger.bs2.txt
Thanks in advance,
Mohammad.
Post Edited (Mohammad) : 12/11/2006 3:56:57 PM GMT
My BSII will just restart after doing the actions LookAroundYou and Aline
heres the code: www.geocities.com/name_here44/messenger.bs2.txt
Thanks in advance,
Mohammad.
Post Edited (Mohammad) : 12/11/2006 3:56:57 PM GMT
Comments
edit on the program too. now it goes to the turn point then restarts
Post Edited (Mohammad) : 12/11/2006 12:49:13 PM GMT
An alkaline battery gets 1.5 volts per cell, while a rechargeable (Ni-cd or Ni-mh) gets 1.2 volts per cell, when fully charged. 4 x 1.2 == 5 volts, which is close to the marginal edge of what the BS2 will run at. Any extra load (like a Servo activating) will reset the BS2.
To detect this, put a:
SEROUT 16, 16864, [noparse][[/noparse]"Did Reset", 13] at the start of your program. Then, every time it resets, you'll see the message on the 'debug' terminal.
It's always useful for you to post a circuit or at least describe what's connected to what.
Sometimes it's not the average power drain, but the peaks that cause problems. Try connecting a 500uF or 1000uF 6V electrolytic capacitor across the 5V regulated supply to the Stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thanks,
Mohammad (so close to fixing it!)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support