adafruit / Adafruit-PWM-Servo-Driver-Library

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

Correct Servo frequency to 50 Hz #69

Closed photodude closed 5 years ago

photodude commented 5 years ago

Library incorrectly listed and used the update frequency for analog servos as 60 Hz, see references verifying analog servos should be run at 50 Hz updates

photodude commented 5 years ago

This change has been tested with our library extension which wraps this library, two Adafruit PCA9685 PWM Servo Drivers, an Arduino Uno, and 4 ESCs. The Internal oscillator frequency was adjusted using an oscilloscope until each Adafruit PCA9685 PWM Servo Driver produced a 50 Hz signal. With the correct 50Hz PWM signal the ESCs received the correct signal in their Servo receive line to calibrate, arm and drive the ESCs; prior to this change the ESCs behaved incorrectly and would not work in some cases. ESCs use the same 50Hz PWM signal as servos do.