Servo Hardware PWM

Device Control

Allows Arduino/Genuino Mega boards to control up to 9 servos with the integrated 16-bit hardware PWM timer/counter.
This library uses the 16-bit hardware timer/counter (timer3, timer4 and timer5) to control the servos. Possible output pins are pin 2, 3, 5, 6, 7, 8, 44, 45 and 46. Unlike the original Servo.h library, this library does not use Timer1. The advantage here is that when using the Wire.h library no fluctuations in the pulse width occur. In addition, I / O registers are addressed directly and not via the digitalWrite()-function (as in Servo.h).

Author: Daniel Duller

Maintainer: Daniel Duller

Read the documentation

Compatibility

This library is compatible with the avr architecture so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.

Releases

To use this library, open the Library Manager in the Arduino IDE and install it from there.