Class ServoPWM - GSTCH/SketchMadeEASY GitHub Wiki

Actuator ServoPWM

Topic Specification
Description This class controls a position drive. Servo class PWM with frequency change of PWM. Only works with Arduino UNO R3 on Pin 9 and 10 but has no interrupt conflicts.
Sketch Made EASY includes an auto map from input to actuator. The class map the range of the assigned input (via relation) to an angle.
Constructor ServoPwm(int Pin, int MinAngle, int MaxAngle)
Parameter
Pin: Digital (Out) Pin with PWM 9 or 10 un Arduino UNO R3
MinAngle:Minimum angle of the servo
MaxAngle: Maximum angle of the servo
Range MinAngle…MaxAngle
Samples ServoPwm* servo = new ServoPwm(9, 0, 180);
Examples Example 17‐Servo position in relation to a potentiometer
⚠️ **GitHub.com Fallback** ⚠️