Skip to content

This library allows Arduino/Genuino Mega boards to control up to 9 servos with the integrated 16-bit hardware PWM timer/counter.

License

Notifications You must be signed in to change notification settings

dadul96/Arduino-Servo-Hardware-PWM-Library

Repository files navigation

Servo Hardware PWM Library for Arduino Mega

This library allows Arduino/Genuino Mega boards to control up to 6 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.

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).

Possible output pins are pin 2, 3, 7, 8, 44, and 45. Only Arduino/Genuino Mega boards are supported!

Installation

This library can be installed through the Arduino IDE library manager like so:

Note

The Servo-Library was build to be compatible with all the original Arduino Servo Library - commands available.

Built With

Author

Daniel Duller - dadul96

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

About

This library allows Arduino/Genuino Mega boards to control up to 9 servos with the integrated 16-bit hardware PWM timer/counter.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages