Wiki

Clone wiki

conreality / Raspberry-Pi

https://en.wikipedia.org/wiki/Raspberry_Pi

PIN Mappings

Servo Control

Support

Enabling I2C

Procedure adapted from http://blog.oscarliang.net/raspberry-pi-arduino-connected-i2c/ * If it's there, comment out blacklist spi-bcm2708 in /etc/modprobe.d/raspi-blacklist.conf * Ensure that the line i2c-dev is present at the end of /etc/modules * (https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c also suggests that this is taken care of by running sudo raspi-config -> Advanced -> Enable I2C) * $ sudo apt-get install i2c-tools * $ sudo adduser <username> i2c # Repeat for each non-root user * If the I2C kernel module was blacklisted or if i2c-dev was not present in /etc/modules: * $ sudo reboot * $ ls -l /dev/i2c*

    crw-rw---- 1 root i2c 89, 1 Nov 22 05:17 /dev/i2c-1
  • $ i2cdetect -y 1
         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    70: -- -- -- -- -- -- -- --             

See Also

Updated