Category Archives: I2C Bus

I2C Library

I2C Library   https://projects.drogon.net/raspberry-pi/wiringpi/i2c-library/ WiringPi includes a library which can make it easier to use the Raspberry Pi’s on-board I2C interface. Not all systems have the I2C development libraries and headers installed, and when you buildwiringPi, it detects this at build time. If you are using these helper functions and you get link errors, it means that wiringPi is not installed with the I2C helper functions. You need to install the I2C development libraries and re-build. Under Raspbian: sudo apt-get install libi2c-dev then

Configuring I2C

Configuring I2C http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c I2C is a very commonly used standard designed to allow one chip to talk to another. So, since the Raspberry Pi can talk I2C we can connect it to a variety of I2C capable chips and modules. Here are some of the Adafruit projects that make use of I2C devices and modules: http://learn.adafruit.com/mcp230xx-gpio-expander-on-the-raspberry-pi http://learn.adafruit.com/adafruit-16×2-character-lcd-plus-keypad-for-raspberry-pi http://learn.adafruit.com/adding-a-real-time-clock-to-raspberry-pi http://learn.adafruit.com/matrix-7-segment-led-backpack-with-the-raspberry-pi http://learn.adafruit.com/mcp4725-12-bit-dac-with-raspberry-pi http://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi http://learn.adafruit.com/using-the-bmp085-with-raspberry-pi   If you are using Occidentalis, then your Pi is ready to go with I2C as far as

Pi with a keypad matrix

 Pi with a keypad matrix http://hackyourmind.org/articles/2012/11/01/raspberry-pi-with-a-keypad-matrix.html Today we will see how to interfacing the Raspberry Pi with a matrix keypad usingRpi-hw library. Matrix keypad interfacing – Video The library provides the class keypad::matrix↱, defined in “rpi-hw/keypad/matrix.hpp”↱, with which it is possible to manage keypads of any size. Its constructor method takes two ordered lists containing the GPIO pins used by the device: keypad::matrix( { COL0, COL1, COL2, … }, // Column pins { ROW0, ROW1, ROW2, … } // Rows pins ) Let’s take