Class TB6612FNGMotor

  • All Implemented Interfaces:
    DeviceInterface, MotorInterface, AutoCloseable

    public class TB6612FNGMotor
    extends MotorBase
    Bi-directional motor controlled by a single PWM pin and separate forward / backward GPIO pins. Toshiba TB6612FNG Dual Motor Driver such as this one from Pololu.
    Turn forward
    set pin 1 to HIGH, pin 2 to LOW, and PWM to >0.
    Turn backward
    set pin 1 to LOW, pin 2 to HIGH, PWM to >0.