MCP230xx GPIO Expander on the Raspberry Pi #piday #raspberrypi @Raspberry_Pi

 Mg 0481

Adafruit 650

MCP230xx GPIO Expander on the Raspberry Pi @ The Adafruit Learning System.

While the Raspberry Pi packs and awful lot of punch for the price, and it’s fairly flexible where HW expandability is concerned, there are situations where you might want a bit more basic digital IO.  Thankfully, it’s an easy problem to solve with an I2C-enabled device like the MCP23008 (for an extra 8 GPIO pins) or the MCP23017 (for an extra 16 GPIO pins).  This tutorial will show you how you can get up and running quickly with either of these chips.

Learn more!


998Each Friday is PiDay here at Adafruit, be sure to check out our posts, tutorials and new Raspberry Pi related products. Have you tried the new “Adafruit Raspberry Pi Educational Linux Distro” ? It’s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there’s more! Try our new Raspberry Pi WebIDE! The easiest way to learn programming on a Raspberry Pi.

Want a FREE RASPBERRY PI? All orders over $350 get a FREE Raspberry Pi Model B with 512MB RAM!



Try Adafruit's new iPhone & iPad app for makers! Circuit Playground! "Incredibly handy for anyone working in electronics. Perfect for engineers and non-engineers alike."
Looking for engineers, makers and the builders of dreams? Try our Adafruit job boards.
Join our weekly Adafruit SHOW-AND-TELL at 9:30pm ET every Saturday night! Then at 10pm, ASK-AN-ENGINEER with Ladyada and the Adafruit team!

2 Comments

  1. These tutorials are fantastic! Really useful, great work.

    Using a diagram of a sixteen-legged MCP3008 chip and calling it an eighteen-legged MCP23008 chip will mess up a beginner such as myself when I try to follow the diagram and connect the brown wire three pins from the right instead of six pins from the left.

    Comment by Pavel — October 26, 2012 @ 5:45 pm

  2. Thanks to your excellent tutorial I was able to migrate your Python implementation to C#. I am running mono on the Raspberry Pi and using RaspberryPi.Net library.
    https://github.com/ferraripr/RaspberryPi.Net/blob/master/RaspberryPiDotNet/MCP3008.cs

    Keep up the good work!

    Comment by Gilberto Garcia — October 28, 2012 @ 6:51 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

www.flickr.com
adafruit's items Go to adafruit's photostream
www.flickr.com
items in Adafruits More in Adafruits pool