Class ServoPWM - GSTCH/SketchMadeEASY GitHub Wiki
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 R3MinAngle: Minimum angle of the servoMaxAngle: 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 |