Standard Servo Command A Little Off?
CJMJ
Posts: 226
I've only tested a couple of my standard parallax servos but both are showing the same inaccuracies. 0 degree command seems ok. 90 degree command is 3 degrees off (ie 93 instead of 90). 180 degree command is 7 degrees off (ie 187 instead of 180). Actually the 180 degree command hits the hard stop on the servo.
Anyone else seeing this behavior on their standard servos?
Anyone else seeing this behavior on their standard servos?
Comments
For more precise servos with encoders, you have to pay a little more, such as:
http://www.trossenrobotics.com/dynamixel-ax-12-robot-actuator.aspx
IMO, you're better off using your own conversion factor to figure out which pulse length you need to reach a desired angle.
The range a servo moves will vary dramatically from servo to servo so you need to determine the range of motion for each servo model for yourself.
What part number servo?
If there's noise on the signal wire or power issues you might see some other weird things going on.
Perhaps the help file is the best place to address it. We could relate the servo angles to pulse widths a little more freely without confusing the actual code block.
Ken Gracey
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
Of course some servos rotate in opposite directions. No perfect solution.