Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
ip_selctor [2014/12/30 17:42]
admin created
ip_selctor [2014/12/30 20:54]
admin
Line 1: Line 1:
 ---- ----
 **IP Selctor** **IP Selctor**
 +with the MCP23008 and MCP23017
 ---- ----
  
- +**Preparing the RPi for I2C:**\\
-**MCP23008 and MCP23017**\\+
 [[http://raspberrypi-aa.github.io/session3/i2c.html]]\\ [[http://raspberrypi-aa.github.io/session3/i2c.html]]\\
 +[[http://www.gsurf.de/vorbereiten-des-raspberry-pi-auf-i2c/]]\\
 +Open the file:\\
 +  $ sudo nano /etc/modprobe.d/raspi-blacklist.conf
 +Comment out:\\
 +  #blacklist i2c-bcm2708
 +Open the file:\\
 +  $ sudo nano /etc/modules
 +Add:\\
 +  i2c-dev
 +Load modules:\\
 +  $ sudo modprobe i2c_bcm2708
 +  $ sudo modprobe i2c-dev
 +Check the i2c modules:\\
 +  $ lsmod
 +  
 +  Module                  Size  Used by
 +  i2c_dev                 3792 
 +  i2c_bcm2708             3408 
 +Install some programs:\\
 +  $ sudo apt-get update
 +  $ sudo apt-get install i2c-tools
 +  $ sudo apt-get install python-smbus
 +Check the address:\\
 +  $ sudo i2cdetect -y 1
 +  $ sudo i2cdump -y 1 0x20
 +
 +Library:\\
 +[[https://learn.adafruit.com/mcp230xx-gpio-expander-on-the-raspberry-pi/overview]]\\
 +Download Adafruit libraries:\\
 +  $ wget https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/archive/master.zip
 +unpack:\\
 +  $ unzip master.zip
 +
 +