Installing Manually¶
Update the apt list.
sudo apt-get update
Install python-smbus.
sudo pip3 install smbus2
Install the PiCar module.
cd~
git clone --recursive https://github.com/sunfounder/SunFounder_PiCar.git
cd SunFounder_PiCar
python3 setup.py install
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
Reboot.
sudo reboot