SunFounder PiCar-S
1.6.3 Install the Environment via Script
You can get all the required software and configuration done with the installation script. If you want to do step by step
instead, refer to the operations in
Appendix 1: Installing Manually
.
sudo
./
install_dependencies
Note:
1. The installation script will install the required components and configure for the running environment. Make
sure your Raspberry Pi is connected to the Internet during the installation, or it would fail.
2. The Raspberry Pi will prompt you to reboot after the installation. You’re recommended to type in
yes
to reboot.
1.6.4 Set the Servo to 90 Degrees
After reboot, type in the command:
picar
You can see three commands here.
The first one
servo-install
is for
servo adjustment
, which is used after the front wheels are assembled. The servo will
rotate to 90 degrees after this command is run, so we will use this command here.
picar servo
-
install
Note:
If the “OSError: [Errno 121] Remote I/O error” error message appears, open raspi-config:
sudo raspi
-
config
Then choose
3 Interfacing Options
→
P5 I2C
→
<YES>
→
OK
to enable I2C service. You can use the up, down,
left, and right keys on the keyboard to select, and then press Enter to confirm.
After the code is running, insert the rocker arm into the servo. You will see the rocker arm is rotate in clockwise
and counterclockwise, then stop at a specific location. It means the servo is good. If the any of the conditions below
happened to your servo, your servo is bad:
1) Noisy, hot.
2) If unplug the servo line and rotate the rocker arm, it sounds like “ka” “ka” “ka” or there has no sounds of gear
driving.
38
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 ...