User Manual
22
1. Update the apt list
sudo apt-get update
2. Install python-smbus
sudo apt-get install python-smbus -y
3. Install the PiCar module
cd ~
git clone --recursive https://github.com/sunfounder/SunFounder_PiCar.git
cd SunFounder_PiCar
python setup.py install
4. Enable I2C
Edit the file /boot/config.txt
sudo nano /boot/config.txt
The "#" in front of each line is to comment the following contents which does not take effect
in a sketch. The I2C configuration part is commented by default too. Add the following code
at the end of the file, or delete the pound mark "#" at the beginning of related line; either way
will do.
dtparam=i2c_arm=on
5. Reboot
sudo reboot
Adjust the Servo to 90 Degrees
After reboot, type in the command:
picar
pi@raspberrypi:~ $ picar
Usage: picar [Command] [value]
Commands:
servo-install Set 16 channel servos to 90 degree for installation
front-wheel-test [chn] Test the steering servo connect to chn, chn default 0
rear-wheel-test Test the rear wheel
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.
pi@raspberrypi:~ $ picar servo-install
pi@raspberrypi:~ $
Now the servo may or may not make noises to rotates to 90 degrees. Script will end almost