Reset/brown-out problem with BS2SX (was No subject)
Skarr
Posts: 9
(forgot the subject line...)
Greetings!
I've had a BS2SX (in a BOE) for awhile and had to shelve it due to other diversions, but now I'm back playing with it once again. I wrote a simple program to get the cobwebs out of my brain that simply controls the motion of a little robotics platform. The drive wheels are two standard (Futaba) servo motors modified for continuous rotation. The program drives the platform forward, backward, left, and right. Simple.
The problem is that the program resets after some time and will not make it through the entire sequence of maneuvers. At first I thought it was a bug in the program, so I restructured it several different ways, and eventually I got the same result - a constant reset. Often times it wouldn't make it past the first maneuver.
I've tried using the wall wart and a newly recharged 9 V battery, but the result is still the reset. I've used different outlets in different locations throughout the room, thinking it might be a bad outlet, but to no avail.
I've checked on-board voltage regulator during its maneuvers and it reads around 5 V, which is what I would expect, so I don't believe it is a problem with the VR.
Any other ideas as to why I'm getting these resets/brown-outs?
Thanks in advance.
Regards,
Jeff
Greetings!
I've had a BS2SX (in a BOE) for awhile and had to shelve it due to other diversions, but now I'm back playing with it once again. I wrote a simple program to get the cobwebs out of my brain that simply controls the motion of a little robotics platform. The drive wheels are two standard (Futaba) servo motors modified for continuous rotation. The program drives the platform forward, backward, left, and right. Simple.
The problem is that the program resets after some time and will not make it through the entire sequence of maneuvers. At first I thought it was a bug in the program, so I restructured it several different ways, and eventually I got the same result - a constant reset. Often times it wouldn't make it past the first maneuver.
I've tried using the wall wart and a newly recharged 9 V battery, but the result is still the reset. I've used different outlets in different locations throughout the room, thinking it might be a bad outlet, but to no avail.
I've checked on-board voltage regulator during its maneuvers and it reads around 5 V, which is what I would expect, so I don't believe it is a problem with the VR.
Any other ideas as to why I'm getting these resets/brown-outs?
Thanks in advance.
Regards,
Jeff
Comments
If you're powering the servos through the voltage regulator on the Stamp, a brown-out may be occurring, and the Stamp is being reset. Provide seperate power to the servos, and remember to keep the grounds of the two power sources common, and you'll probably be all set.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Regards,
Jeff