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!
This library can be installed through the Arduino IDE library manager like so:
Starting from version 1.2.0 this Servo-Library is compatible with all the original Arduino Servo Library - commands available. Besides that, following functions are added:
attach(int pin, int min, int max, int defaultPos);
detachAll()
;
- Visual Studio 2019 - IDE used for programming
- Arduino IDE - IDE used for programming and testing
Daniel Duller - dadul96
This project is licensed under the MIT License - see the LICENSE file for details
- Inspired by - original Arduino Servo Library
- Thanks for helping me to improve my library - per1234
- Screen-GIF recorded with - ShareX