Installing Manually

  1. Update the apt list.

sudo apt-get update
  1. Install python-smbus.

sudo pip3 install smbus2
  1. Install the PiCar module.

git clone --recursive
cd SunFounder_PiCar
python3 install
  1. 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.

  1. Reboot.

sudo reboot