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
Содержание Smart Video Car Kit
Страница 4: ...2 Components i Acrylic Plates ...
Страница 40: ...38 The whole picture of wiring should be like this ...
Страница 42: ...40 Now the circuit is completed Congratulations The car should be assembled successfully as shown below ...
Страница 65: ...63 Process Diagram of Client Program ...