Class ServoT2 - GSTCH/SketchMadeEASY GitHub Wiki

Actuator ServoT2

Topic Specification
Description This class controls a position drive. It controls a servo using Timer INT2. Use this class e.g. with Arduino UNO, when Log with Serial0 to the IDE.
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 ServoT2(int Pin, int MinAngle, int MaxAngle)
Parameter
Pin: Digital (Out) Pin with PWM
MinAngle:Minimum angle of the servo
MaxAngle: Maximum angle of the servo
Range MinAngle…MaxAngle
Samples ServoT2* servo = new ServoT2(9, 0, 180);
Examples Example 17‐Servo position in relation to a potentiometer
⚠️ **GitHub.com Fallback** ⚠️