What code/circuit are you running? Your board could be resetting due to a short somewhere in your circuit. With more information, we can definitely help you pinpoint your problem.
-- Jessica
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jessica Uelmen
Education Department
Parallax Inc.
How do you have the button wired? It's possible you're creating a short, which will drain any 9-volt pretty quickly. Do you have a volt-meter? Hook it up to measure the current being drawn from the battery -- it should be 5 mA or less, unless the Servo is moving, where it can jump to 750 mA.
Usually, I don't recommend driving a servo with a 9-volt battery -- a 9-volt usually can't supply that much current because of "internal resistance" in the battery.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
What code/circuit are you running? Your board could be resetting due to a short somewhere in your circuit. With more information, we can definitely help you pinpoint your problem.
-- Jessica
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jessica Uelmen
Education Department
Parallax Inc.
' {$STAMP BS2} ' {$PBASIC 2.5} DO DEBUG ? IN0 IF (IN0 = 1)THEN Counter VAR Word DEBUG " counterclockwise 10 o'clock", CR FOR counter = 1 TO 30 PULSOUT 1, 1000 PAUSE 1 NEXT DEBUG " counterclockwise 10 o'clock", CR FOR counter = 1 TO 30 PULSOUT 2, 1000 PAUSE 1 NEXT DEBUG " counterclockwise 10 o'clock", CR FOR counter = 1 TO 30 PULSOUT 3, 1000 PAUSE 1 NEXT DEBUG " counterclockwise 10 o'clock", CR FOR counter = 1 TO 30 PULSOUT 4, 1000 PAUSE 1 NEXT ENDIF LOOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
are you using an original parallax servo?
My hobby servo shows the same effect, but if I play arround with the value of the pulsout signal (set it lower than 1000), i can fix it.
- Tobi
Usually, I don't recommend driving a servo with a 9-volt battery -- a 9-volt usually can't supply that much current because of "internal resistance" in the battery.
thanks who all helped me