Class MotorL9110 - GSTCH/SketchMadeEASY GitHub Wiki

Actuator MotorL9110

Topic Specification
Description This class controls a rotating drive. The motor is controlled with a L9110S H-bridge. This is able to control up to 2 motors. It uses two PWM pins (one per direction of rotation) to control one motor. Create two objects of this class to control both motors.
Constructor MotorL9110(int PinA, int PinB)
Parameter
PinA: Digital (Out) Pin with PWM for direction of rotation 1
PinB: Digital (Out) Pin with PWM for direction of rotation 2.
Range 0…255
Samples MotorL9110* motor = new MotorL9110(11, 12);
Examples 05‐Motor fix speed, direction‐switch
06‐Motor variable speed, direction‐switch
07‐Motor variable speed, direction‐ and main‐switch
08‐Motor toggles between limit switches
09‐Motor toggles between limit switches, main switch
11-Two motors, one turns after the other
15-RemoteControl of a motor with an App
⚠️ **GitHub.com Fallback** ⚠️