Hi,
Been meaning to ask this for a while, been busy, and found a work around.
The servo in my kit doesn't like pos 0, it causes a stutter, so I use pos 1 instead.
Is this normal?
Thanks kindly.
Kit Servo issue?
-
- Freetronics Staff
- Posts: 853
- Joined: Tue Apr 09, 2013 11:19 pm
- Location: Melbourne, Australia
- Contact:
Re: Kit Servo issue?
Hi Dave,
That's fairly normal, there's some variation in these kind of hobby servos. In RC control circles they call this "trimming" the servos.
The solution you have will work, or if you still want to use position 0 then you can vary the default 'min' and 'max' servo pulses when you call attach:
https://www.arduino.cc/en/Reference/ServoAttach
The default 'min' is 544 so you could try something like:
and see if position 0 works correctly then. You may have to play around with the value to find the ideal min/max for a full range of movement, without jittering.
Angus
That's fairly normal, there's some variation in these kind of hobby servos. In RC control circles they call this "trimming" the servos.
The solution you have will work, or if you still want to use position 0 then you can vary the default 'min' and 'max' servo pulses when you call attach:
https://www.arduino.cc/en/Reference/ServoAttach
The default 'min' is 544 so you could try something like:
Code: Select all
servo.attach(servopin, 580, 2400);
Angus