User Guide

33
This window is just like the Command Line window in Linux.
D. Get Source Code
Download the source code directly from Github to your Raspberry Pi.
cd ~
git clone https://github.com/sunfounder/Sunfounder_Smart_Video_Car_Kit_for_Raspb
erryPi.git
E. Install python-dev, python-smbus
Install python-dev and python-smbus:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-dev
sudo apt-get install python-smbus
F. Setup I2C Port
Run the command to open Raspberry Pi Software Configuration Tool (raspi-config)
sudo raspi-config
Enable I2C:
Select Advanced Options => I2C => <Yes> => <Ok> => <Yes>
Select <Finish>. Close the window.
If a message of rebooting appears, click <No>. Before reboot, we still need to complete
some configurations.
G. Start calibration
Run the calibration server on the Raspberry Pi, and wait for client to connect.
Make sure that the circuit is connected properly. Power the smart car, open a terminal in
Linux. Connect with your Raspberry Pi via the ssh. Go to the directory
Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/server, run the server cali_server.py: if the
servo gets stuck with an abnormal sound, unplug the wires at once, and redo servo
adjustment for calibration in case of further damages.
SunFounder