element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Raspberry PI B+ Configuring for IO - GPIO, I2C, SPI
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Robert Peter Oakes
  • Date Created: 20 Apr 2015 4:59 PM Date Created
  • Views 982 views
  • Likes 1 like
  • Comments 0 comments
Related
Recommended
  • raspberrypi-setup
  • raspberry
  • i2c
  • gpio
  • dac
  • spi
  • rpi2
  • raspberrypi
  • adc

Raspberry PI B+ Configuring for IO - GPIO, I2C, SPI

Robert Peter Oakes
Robert Peter Oakes
20 Apr 2015

Many of you are into Raspberry PI's in one way or another, some are happy to just use it as a programming platform, others want to extend into the control side of things.

 

This Post is the start of a series to explore how you can easily and cheaply extend the capabilities of the Raspberry PI and add your own IO to it for many applications

In this video I show how to attach and use a 16 port SPI connected IO expander (The same chip as used on the PIFace Digital MCP23S17 by Microchip) and a quad channel Digital to Analog convertor from TI (The DAC8574)

 

I do not go into the specifics is wiring up a bread board in this post, I focus more on the setting up and using the software that is mostly already included in Raspbian but can be augmented by a very nice library called wiringpi.

 

On that note, for the MCP23S17 chip I also introduce a library by Gordon Henderson, the "wiringpi" which abstracts the functionality into a set of nice command line tools for use by say Python or other scripting languages, but that also is usable from within C in a way familiar to all you Arduino Wiring programmers out there. (I will be exploring this side of the library in later videos)

Schematics and links will be provided soon

 

for now though, here is Godons site :- http://wiringpi.com/
The MCP23S17 pdf :- http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf
The DAC8574 PDF:- http://www.ti.com/lit/gpn/dac8574

 

In following posts I will create content detailing how to setup a PI2 from a fresh install of Raspbian (See previous video for how to install Raspbian here https://www.youtube.com/watch?v=qLo-0Tmmlrc ) and get it up and running to control various IO chips from MicroChip, TI and Atmel using SPI, I2C and the Serial interfaces. I will also investigate how to protect your PI from pending doom in the event you connect the wrong thing to the IO (ISOLATION !!)

 

So without further delay, here is the first video

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Here are a bunch of links I found very useful in the creation of this post

http://wiringpi.com/   Gordon Henderson

http://wiringpi.com/download-and-install/

 

http://wiringpi.com/dev-lib/lcd-library/

http://wiringpi.com/reference/i2c-library/

http://wiringpi.com/reference/spi-library/

 

http://wiringpi.com/the-gpio-utility/spi-mcp23s08-and-mcp23s17-extensions/

http://wiringpi.com/extensions/spi-mcp23s08-mcp23s17/

http://wiringpi.com/examples/adafruit-rgb-lcd-plate-and-wiringpi/

http://wiringpi.com/dev-lib/piface/

 

http://www.ee.ic.ac.uk/pcheung/teaching/ee2_digital/MCP3002.pdf

https://www.raspberrypi.org/forums/viewtopic.php?t=6404&p=82776

https://learn.adafruit.com/downloads/pdf/adafruits-raspberry-pi-lesson-4-gpio-setup.pdf

https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

 

https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=84491

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube