Class Servo360PWM - GSTCH/SketchMadeEASY GitHub Wiki

Actuator Servo360PWM

Topic Specification
Description This class controls a rotation drive. It controls a continuously rotating servo by changing the frequency of the 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 a speed.
Constructor Servo360PWM(int Pin)
Parameter
Pin: Digital (Out) Pin with PWM
Range 0…255
Samples Servo360PWM* servo = new Servo360PWM(9);
Examples Example 12‐Servo360 controlled by a Joystick
Advanced Some servos don’t stop. They need an adjustment of the pulse duration. For this it exist a constructor.
MotorServo360PWM(int Pin, int MaxForwardMillis, int StopMillis, int MaxBackwardMillis)
Parameter
MaxForwardMillis: Default 2000ms
StopMillis: Default 1500ms
MaxBackwardMillis: Default 1000ms
⚠️ **GitHub.com Fallback** ⚠️