EasyManua.ls Logo

SunFounder Smart Video Car Kit - Software Environment Configuration

SunFounder Smart Video Car Kit
66 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
48
iii. Basic Software Environment
Operation on PC
Prepare the PC for remote.
Install python-tk for a remote interface
sudo install apt-get install python-tk
Operation on Raspberry Pi
Install python-dev, python-smbus
Type in the code below to install python-dev and python-smbus:
sudo apt-get install python-dev
sudo apt-get install python-smbus
Setup I2C port
Comment out the i2c-bcm2708 line from the raspi-blacklist.conf file:
sudo nano /etc/modprobe.d/raspi-blacklist.conf
Add code below.
#blacklist i2c-bcm2708
Open /etc/modules
sudo nano /etc/modules
And add this line to the end of the file:
i2c-dev
From the prompt, run:
sudo modprobe i2c_bcm2708
sudo modprobe i2c-dev
Check that the i2c modules are loaded and active:
lsmod | grep i2c
Then the following code will appear (the number may be different)
i2c_dev 6276 0
i2c_bcm2708 4121 0

Related product manuals