SunFounder PiCar-S
You may find the direction of the front wheels is not facing exactly front when they are in the straight status. If there
is an obvious deviation from the middle line of the front chassis, reassemble the servo and run
servo-install
again; if
it is just a little deviation (like about 0~15 degrees), it can be adjusted by software.
Get into the folder
SunFounder_PiCar/picar:
cd
/
home
/
pi
/
SunFounder_PiCar
/
picar
sudo nano config
Open the
config
file under the folder with an editor. You can see a few parameters. The value of
turning_offset
is used
to adjust the front wheels. Its value is
0
by default. If you want to make the front wheels
turn right a bit
, just modify
it to a
larger numbe
r; to make it more
towards the left
, you can set it
smaller
(it can even be a negative number).
But
DO NOT
over-configure the wheels (recommended a value between -30 and 30), or the servo may be stuck and
broken.
After changing the value of turning_offset, press
Ctrl
+
O
to save the changes, and press
Ctrl
+
X
to exit. Run the
command
picar servo-install
to check the front wheel’s status.
picar servo
-
install
If the front wheels is still not facing the exact front, you may need to edit the file
config
for a couple of times. The
front wheels may need to be adjusted about 3 to 5 times usually. We can move on to calibration of the rear wheels
when the front wheels are done.
44
Chapter 1. About the PiCar-S
Содержание PiCar-S
Страница 1: ...SunFounder PiCar S www sunfounder com Nov 10 2021 ...
Страница 2: ......
Страница 4: ...ii ...
Страница 8: ...SunFounder PiCar S 4 Chapter 1 About the PiCar S ...
Страница 9: ...SunFounder PiCar S 1 1 3 Mechanical Fasteners 1 1 Components List 5 ...
Страница 10: ...SunFounder PiCar S 1 1 4 Wires 6 Chapter 1 About the PiCar S ...
Страница 11: ...SunFounder PiCar S 1 1 5 PCB 1 1 Components List 7 ...
Страница 12: ...SunFounder PiCar S 1 1 6 Other Components 8 Chapter 1 About the PiCar S ...
Страница 22: ...SunFounder PiCar S 18 Chapter 1 About the PiCar S ...
Страница 26: ...SunFounder PiCar S 22 Chapter 1 About the PiCar S ...
Страница 27: ...SunFounder PiCar S 1 4 Circuits Building 1 4 1 Connect the Power 1 4 Circuits Building 23 ...
Страница 28: ...SunFounder PiCar S 1 4 2 Connect the Modules 24 Chapter 1 About the PiCar S ...
Страница 29: ...SunFounder PiCar S 1 4 3 Connect the Servo 1 4 Circuits Building 25 ...
Страница 44: ...SunFounder PiCar S Mount the wheels onto the Upper Plate carefully 40 Chapter 1 About the PiCar S ...
Страница 69: ...SunFounder PiCar S Subflow of Line Following Function 1 8 Arming the Car 65 ...
Страница 74: ...SunFounder PiCar S 70 Chapter 1 About the PiCar S ...