User Manual
27
Forward, speed = 3
Forward, speed = 4
Forward, speed = 5
Forward, speed = 6
Forward, speed = 7
Forward, speed = 8
Forward, speed = 9
Forward, speed = 10
.
.
.
Backward, speed = 10
Backward, speed = 9
Backward, speed = 8
Backward, speed = 7
Backward, speed = 6
Backward, speed = 5
Backward, speed = 4
Backward, speed = 3
Backward, speed = 2
Backward, speed = 1
Finished, motor stop
Check whether both the two rear wheels rotate direction is the same as the screen promt.
Note that the two wheels are driven by the two motors separately. It may happen that one
rotates forward, while the other does backwards. If so, we need to adjust one or both two
wheels which rotate reversely under that command.
The two other parameters in the file config are to set the rear wheels: forward_A and
forward_B. They can change the default spinning direction of the two motors. The value can
only be 0 or 1, which represents clockwise and counterclockwise rotation. By default, it's 1 for
both parameters. Thus if a wheel spins reversely, you only need to change the corresponding
parameter for the wheel to 0.
Press Ctrl + O to save the changes, and press Ctrl + X to exit. Run the command picar rear-
wheel-test again to check whether the rear wheels are rotating in accordance with the
command.
Copy config to the directory example under PiCar-S.
pi@raspberrypi:~/SunFounder_PiCar/picar $ cp config ~/SunFounder_PiCar-S/example