EasyManua.ls Logo

SunFounder PiCar-X Kit - Calibrating the Picar-X; Calibrate Motors & Servo

Default Icon
181 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder PiCar-X Kit
Ready to explore and create with us? Click [] and join today!
4.2 0. Calibrating the PiCar-X
4.2.1 Calibrate Motors & Servo
Some servo angles may be slightly tilted due to possible deviations during PiCar-X installation or limitations of the
servos themselves, so you can calibrate them.
Of course, you can skip this chapter if you think the assembly is perfect and doesn’t require calibration.
1. Run the calibration.py.
cd ~/picar-x/example/calibration
sudo python3 calibration.py
2. After running the code, you will see the following interface displayed in the terminal.
3. The R key is used to test if the 3 servos are working properly. After selecting a servo with the 1, 2 or 3 keys, then
press the R key to test that servo.
4. Press the number key 1 to select the front wheel servo, and then press the W/S key to let the front wheel looks as
forward as possible without skewing left and right.
42 Chapter 4. Play with Python

Table of Contents

Related product manuals