Servo moving too slowly with BS2
Xypher
Posts: 10
Hey guys, I am using a Hitec HS-55 micro servo with my BS2. it is powered by the 5v regulated supply from the bs2 itself. plugged into a 9v battery. when i run a simple program such as this:
counter VAR Word
DEBUG "Counterclockwise 10 o'clock", CR
FOR counter = 1 TO 150
PULSOUT 0, 1200
PAUSE 20
NEXT
END
The motor takes about 5seconds/longer to reach this position. it moves in steps of 10-15 degrees at a time. However when i use the same servo in my r/c plane, it moves instantly and smoothly.
What could be causing this? I tried powering the servo with the 9v battery and it is faster, but not nearly as fast as how it SHOULD actually work. Its not a servo malfunction as I have 3 and all work in this weird manner.
Thanks.
counter VAR Word
DEBUG "Counterclockwise 10 o'clock", CR
FOR counter = 1 TO 150
PULSOUT 0, 1200
PAUSE 20
NEXT
END
The motor takes about 5seconds/longer to reach this position. it moves in steps of 10-15 degrees at a time. However when i use the same servo in my r/c plane, it moves instantly and smoothly.
What could be causing this? I tried powering the servo with the 9v battery and it is faster, but not nearly as fast as how it SHOULD actually work. Its not a servo malfunction as I have 3 and all work in this weird manner.
Thanks.
Comments
The servo is drawing much more than the Stamp's regulator can supply and the regulator shuts down to protect itself. This causes the Stamp to reset and restart the program once the regulator (and battery) recovers. The servo starts moving to its designated position (with a 2.4ms control pulse ... to one end of its range) and the whole process starts over again.
By the way, a 9V power supply to the servo will eventually damage it. They're designed to run off a 4.5V to 7.2V supply.
Thanks for the quick reply Mike! Even before the video was done uploading! [noparse]:)[/noparse]
According to one of the pdf's by Parallax, their servo connected directly to the 5v supply. I followed the pdf and thought i would be fine by doing so.
How do i get a 4.5-7.2v supply without adding too much bulk and weight to my circuit? It is supposed to be a handheld device.
Probably your best choice would be a 4 cell AA or AAA battery pack. With 4 alkaline cells, you'd get 6V to power the servos directly and 6V for the input to the Stamp's regulator. If you decide to use a rechargable battery pack, use 5 x AA or 5 x AAA NiMH cells to provide 6V.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
50 72 6F 6A 65 63 74 20 53 69 74 65
·