Servos & Sweep angle
OK, I have two standard servos (Parallax units.)
I have noticed that they sweep different angles given the same program (one does 180deg and the other <180, say 170deg.)
Also, one is at full stop with 2400 and the other at 2500.
Should they be more uniform, unit to unit?· Is there an adjustment?· [noparse][[/noparse]I have what's maybe an older doc, showing an adj. pot., but nonesuch on these two.]
This is my test program:
I have noticed that they sweep different angles given the same program (one does 180deg and the other <180, say 170deg.)
Also, one is at full stop with 2400 and the other at 2500.
Should they be more uniform, unit to unit?· Is there an adjustment?· [noparse][[/noparse]I have what's maybe an older doc, showing an adj. pot., but nonesuch on these two.]
This is my test program:
DO value = 2200 FOR x = 0 TO 30 PULSOUT 14, (value/2) PAUSE 15 NEXT PAUSE 1000 value = 400 FOR x = 0 TO 30 PULSOUT 14, (value/2) PAUSE 15 NEXT PAUSE 1000 LOOP
Comments
First and foremost you should center your servos by removing the horns, and sending a centering pulse (1.5 ms) to both, then, while that pulse is being sent, reattach the servo horns (this is physical tuning of the servos)- after that you can determine experimentally how to fine tune in code. This is common practice when dealing with hobby servos.
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
··Do you have a link to a tutorial on the parts like?·
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
Thus there is no requirement for each servo to move exactly the same amount for exactly the same control input. As long as they're "approximately" alike, it serves the purpose of the guy on the ground. Now, when we put them in robots, it would be awfully nice if they DID work exactly alike.
If they're not "identical" enough for you, you'll have to put in some 'constants' so you can more easily 'tweak' your positioning routines.
Like: MaxPos CON 2000
Then, you can run your program, and test it. Then you can modify the MaxPos value:
MaxPos CON 1980
or
MaxPos CON 2020
to match the particular servo you've got installed.
An alternative in more recent servos is to tweak the feedback resistor, so that you get "full scale" at 2500 on both servos.· That may or may not be practical -- it probably depends on the manufacturer of the servo.
· No worries, lives are not at stake, so I will compensate through programming (imagine.)