Difference between revisions of "Talk:XXX: Install Hivetool SD image"

From HiveTool
Jump to: navigation, search
(Created page with "#Need to add camera and video libraries and programs #Need to add I2C libraries and tools: To enable and test the I2C interface. Do this by loading the kernel modules on bo...")
 
Line 1: Line 1:
 
#Need to add camera and video libraries and programs  
 
#Need to add camera and video libraries and programs  
 
#Need to add I2C libraries and tools:
 
#Need to add I2C libraries and tools:
 +
#Need to install vlc player to stream ideo: apt-get install vlc
  
 
To enable and test the I2C interface.  
 
To enable and test the I2C interface.  

Revision as of 17:49, 30 January 2015

  1. Need to add camera and video libraries and programs
  2. Need to add I2C libraries and tools:
  3. Need to install vlc player to stream ideo: apt-get install vlc

To enable and test the I2C interface. Do this by loading the kernel modules on boot and removing them from the black list with the command sudo nano /etc/modules. Add the following i2c-bcm2708 and i2c-dev, each on its own line. Save your changes and reboot.

The I2C bus allows multiple devices to be connected to your Raspberry Pi, each with a unique address, that can often be set by changing jumper settings on the module. It is very useful to be able to see which devices are connected to your Pi as a way of making sure everything is working. To do this, it is worth running the following commands in the Terminal to install the i2c-tools utility with the commands sudo apt-get install python-smbus and sudo apt-get install i2c-tools (included in python-smbus it was not necessary))

To make sure the modules are not not blacklisted use sudo nano /etc/modprobe.d/raspi-blacklist.conf. Comment out the lines relevant to the ic2 modules so that the entries in the file look like #blacklist spi-bcm2708 and #blacklist i2c-bcm2708. Save the file and reboot again. Make sure that the i2C bus is working by issuing sudo i2cdetect -y 1. You should see a result like this with no sensors connected.


pi@NAPAPi3 ~ $ sudo i2cdetect -y 1

    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
 
00:          -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


70: -- -- -- -- -- -- -- --