BBR Sumo
  • Overview
  • Setup
    • Hardware
    • Software
  • Sensors
    • Distance Sensors
    • Line Sensor
    • DIP Switches
  • Movement
    • Motor Control
  • Tips
    • Arduino
      • Adjust Motor Direction
    • Python
Powered by GitBook
On this page
  1. Tips
  2. Arduino

Adjust Motor Direction

If you find that the motors are spinning in the wrong direction, take a look at the code in Sumo.h and update the following code:


 Motor _motor1 = Motor(MOTOR_1B,MOTOR_1A);
 Motor _motor2 = Motor(MOTOR_2A,MOTOR_2B);

Swapping the pins around will make the motor spin in the opposite direction.

PreviousArduinoNextPython

Last updated 1 year ago