Motor Calibration

Because of assembly methods and other reasons, your motor may still need a calibration direction. Otherwise, when the car moves forward, it may turn left, turn right, or even go backwards. Please follow the following steps to complete the calibration.

How to do?

  1. Enter the examples folder.

cd /home/pi/picar-4wd/examples
  1. Run the move_forward.py . This is a very simple example, which will let the car go forward.

python3 move_forward.py
  1. Observe whether the wheels of the car are driving forward and marked the wrong motor.

  2. Open the configuration file.

sudo nano /home/pi/.picar-4wd/config
  1. Change the reverse FLAG of the error motor from False to True.

_images/motor_calibration.png
  1. Run again move_forward.py, if the car is driving correctly, the calibration is completed.

python3 move_forward.py