Class TB6612FNGDualMotorDriver

  • All Implemented Interfaces:
    DeviceInterface, AutoCloseable

    public class TB6612FNGDualMotorDriver
    extends DualMotor
    Dual 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: https://www.pololu.com/product/713
    • Constructor Detail

      • TB6612FNGDualMotorDriver

        public TB6612FNGDualMotorDriver​(int leftMotorClockwiseControlGpio,
                                        int leftMotorCounterClockwiseControlGpio,
                                        int leftMotorPwmGpio,
                                        int rightMotorClockwiseControlGpio,
                                        int rightMotorCounterClockwiseControlGpio,
                                        int rightMotorPwmGpio)
                                 throws RuntimeIOException
        Throws:
        RuntimeIOException
      • TB6612FNGDualMotorDriver

        public TB6612FNGDualMotorDriver​(PwmOutputDeviceFactoryInterface pwmDeviceFactory,
                                        int leftMotorClockwiseControlGpio,
                                        int leftMotorCounterClockwiseControlGpio,
                                        int leftMotorPwmGpio,
                                        int rightMotorClockwiseControlGpio,
                                        int rightMotorCounterClockwiseControlGpio,
                                        int rightMotorPwmGpio)
                                 throws RuntimeIOException
        Throws:
        RuntimeIOException