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 motor forward control pin (AIN1) to HIGH, motor backward control pin (AIN2) to LOW, and PWMA to >0.
    Turn backward
    Set motor forward control pin (AIN1) to LOW, motor backward control pin (AIN2) to HIGH, PWMA to >0.