Motor drivers - NTheuws/linorobot2_software GitHub Wiki

The motor drivers will be used by the micro controller to rotate the motors.

Supported Motor Drivers:

  • GENERIC_2_IN_MOTOR_DRIVER - Motor drivers that have EN (pwm) pin, and 2 direction pins (usually DIRA, DIRB pins). Example: L298 Breakout boards.

  • GENERIC_1_IN_MOTOR_DRIVER - Motor drivers that have EN (pwm) pin, and 1 direction pin (usual DIR pin). These drivers usually have logic gates included to lessen the pins required in controlling the driver. Example: Pololu MC33926 Motor Driver Shield.

  • BTS7960_MOTOR_DRIVER - BTS7960 motor driver.

  • ESC_MOTOR_DRIVER - Bi-directional (forward/reverse) electronic speed controllers.

The motor drivers are configurable from the config file explained in the later part of this document.

Required amount

Some motor drivers are capable of using 2 motors instead of 1. If this is the case you'll only be needing 1 motor driver for 2WD and 2 motor drivers for mecanum/4WD. Otherwise you'll need 1 for each wheel excluding caster wheels (2WD).


Previous step: Wheels

Next step: Motors

⚠️ **GitHub.com Fallback** ⚠️