Servo Motor Problem
aravindsingh
Posts: 4
Hi,
I am using Basic Stamp 2 and programming it to move forward. I have connected the servo motor to pin 12 and 13 the command that i am using is very basic that is
do
pulsout 12, 650
pulsout 13, 850
pause 20
loop
end
when i am running the Boebot it is not moving straight but taking aa slight curvature path. i am not able to understand the problem
1. i have changed the servo motor still same problem i their
2. I have changed the basic stamp still the same problem is their
3. i have re installed the IDE still same problem is their
4. I have done the experiment with fresh batteries
the voltage level at pin 12 and 13 are same when the servo motors are moving in the same direction.
Please help i am stuck
with regards
Aravind Singh
I am using Basic Stamp 2 and programming it to move forward. I have connected the servo motor to pin 12 and 13 the command that i am using is very basic that is
do
pulsout 12, 650
pulsout 13, 850
pause 20
loop
end
when i am running the Boebot it is not moving straight but taking aa slight curvature path. i am not able to understand the problem
1. i have changed the servo motor still same problem i their
2. I have changed the basic stamp still the same problem is their
3. i have re installed the IDE still same problem is their
4. I have done the experiment with fresh batteries
the voltage level at pin 12 and 13 are same when the servo motors are moving in the same direction.
Please help i am stuck
with regards
Aravind Singh
Comments
For instance PULSOUT 12, 670 or PULSOUT 12, 630
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
i have tried doing that but still it is not working . i see that the chasis of the boe bot is little distorted. Let me correct it if still problem persists then please help
with regards
Aravind Kumar Singh
Servos are mechanical devices, No two servos are the same.
Write a correction subroutine to correct the defiant servo.
_______________$WMc%______Just think about it___
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············································ BoogerWoods, FL. USA
For example:
do
pulsout 12, 600
pulsout 13, 850
pause 20
loop
end
or
do
pulsout 12, 650
pulsout 13, 800
pause 20
loop
end
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
I think it has to do with the pulsout making the servos going past their max speed. Since the servos are about the same, both going their max speed should make it straight.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Daniel L.
AKA, The Ninja of Frozen Milk
AAKA, ゆきごくろさき (Yukigo Kurosaki )
Post Edited (Daniel L.) : 7/25/2009 4:37:11 PM GMT
i have adjusted the speed of the servo motors and have come to an trade off between motion and the PWM value given to the motors.. i am able to get good straight motion 80 % perfect.
but i am not able to figure it why it is behaving so.
Thanks to all
do
pulsout 12, 750
pulsout 13, 750
loop
and if either of the servos are still moving you need to take a screw driver and adjust the servos' center mark to make the servo stop moving at pulsout 750. Its in the BOE book, its free from parallax.com
DO
PULSOUT 12, 850
PULSOUT 13, 650
PAUSE 20
LOOP
I set the servos side by side with the control arms over-lapping and centered but not touching. when I run the program Servo 12 catches servo 13 and the servo arms start hitting. If I reverse the 12 and 13 in the above code, servo 13 catches servo 12.
The closest I can get them to matching speed is:
DO
PULSOUT 12, 809
PULSOUT 13, 650
PAUSE 20
LOOP
which seems like a big discrepancy. 750 does stop both servos. The offset doesn't appear to be the symetrical when switching directions.
Just some observations...