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
Summary of Contents for PiCar-S
Page 1: ...SunFounder PiCar S www sunfounder com Nov 10 2021 ...
Page 2: ......
Page 4: ...ii ...
Page 8: ...SunFounder PiCar S 4 Chapter 1 About the PiCar S ...
Page 9: ...SunFounder PiCar S 1 1 3 Mechanical Fasteners 1 1 Components List 5 ...
Page 10: ...SunFounder PiCar S 1 1 4 Wires 6 Chapter 1 About the PiCar S ...
Page 11: ...SunFounder PiCar S 1 1 5 PCB 1 1 Components List 7 ...
Page 12: ...SunFounder PiCar S 1 1 6 Other Components 8 Chapter 1 About the PiCar S ...
Page 22: ...SunFounder PiCar S 18 Chapter 1 About the PiCar S ...
Page 26: ...SunFounder PiCar S 22 Chapter 1 About the PiCar S ...
Page 27: ...SunFounder PiCar S 1 4 Circuits Building 1 4 1 Connect the Power 1 4 Circuits Building 23 ...
Page 28: ...SunFounder PiCar S 1 4 2 Connect the Modules 24 Chapter 1 About the PiCar S ...
Page 29: ...SunFounder PiCar S 1 4 3 Connect the Servo 1 4 Circuits Building 25 ...
Page 69: ...SunFounder PiCar S Subflow of Line Following Function 1 8 Arming the Car 65 ...
Page 74: ...SunFounder PiCar S 70 Chapter 1 About the PiCar S ...