adafruit / Adafruit-PWM-Servo-Driver-Library

Adafruit PWM Servo Driver Library
Other
477 stars 311 forks source link

controlling servo speed #76

Open Danikanik opened 4 years ago

Danikanik commented 4 years ago

Hi there! Would be awesome to add functional to control speed of servo moving to the next deg. Probably, "Servosmooth" or "Varspeedservo" libraries can help.

Thanks!

Rishi-k-s commented 5 months ago

You could put a loop and add a delay

for(i=0;i<=500;i++){
  pwm.setPWM(0, 0, i);
  delay(10);
}

lmk if this solved your problem :)