You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
A work around is to use setServoPulseWidth directly, all you need to do is interpolate between minimum and maxium pulse-width in microseconds, e.g. 500 to 2500 which might correspond to 0 to 180 degrees.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've tried to test the PCA9685 servo examples. They don't work, and I managed to figure out, where the problem might be located:
Taking a look at com.pi4j.component.servo.impl.GenericServo.setPositon():
public void setPosition(float position) {
this.position = validatePosition(position);
pwmDuration = calculatePwmDuration(position);
servoDriver.setServoPulseWidth(pwmDuration);
}
this results in wrong signals...
The text was updated successfully, but these errors were encountered: