Talk:XXX: Install Hivetool SD image
- Need to add camera and video libraries and programs
- Install vlc player to stream video: apt-get install vlc
- Need to add I2C libraries and tools:
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: -- -- -- -- -- -- -- --