element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 2 - Configuring for IO - GPIO, I2C, SPI and One Wire.
  • 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 5:18 PM Date Created
  • Views 1406 views
  • Likes 1 like
  • Comments 1 comment
Related
Recommended
  • tutorial
  • raspberry
  • i2c
  • pi
  • gpio
  • spi
  • setup
  • onewire
  • pi2

Raspberry PI 2 - Configuring for IO - GPIO, I2C, SPI and One Wire.

Robert Peter Oakes
Robert Peter Oakes
20 Apr 2015

In this post of the Raspberry PI series we look at what is required to setup a Raspberry PI 2 after the initial Raspbian setup. It assumes you have completed "sudo atp-get update" and "sudo apt-get upgrade" or that you install is up to date and you can SSH into the PI from a console using TeraTerm or Putty (Or your own favourite SSH) app.

 

The process shows how to install and test all the various libraries we will need for the up coming tutorials on adding devices to the PI2 GPIO connector including I2C chips like ADCs and DACs, SPI devices like the 16bit port expander "23S17" from microchip and many others.

 

Just so you don't feel like its all install and no practical, In this video I also show how to connect and use a simple one wire device, the DS18B21 from Maxim : http://datasheets.maximintegrated.com/en/ds/DS1821.pdf

 

One of the libraries we will install is wiringpi by Gordon Henderson : http://wiringpi.com/ a great set of libraries with support for an ever growing set of devices and allowing you to program in C but with the feel that you may be used to with an Arduino. More on this in future episodes

 

Another source of inspiration is the Adafruit tutorial series, they have done a great job creating these and you should go have a look: Learn @ Adafruit and for the temp sensor, adafruits raspberry-pi lesson 11 ds18b20 temperature sensing

 

At time of posting I have already filmed the next instalment where I will show you how to control an ADC (ADS1115 - quad 16bit from TI), and two DACs (DAC8574 - quad 16bit, DAC8571 - Single 16bit) it will be posted as soon as I'm done editing it

 

This preparation will flow into my Power supply project down the road as an example of how to integrate a reasonably powerful controller to the Analogue power system.

 

An added component in the design will also be a barrier I2C device to provide isolation between the PI and the Power side. Stay tuned image

Here is the video

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

  • Sign in to reply
  • DAB
    DAB over 10 years ago

    Nice update Peter,

     

    I will come back to this video once I get my new RPi 2 ready for using the various ports.

     

    Thanks,

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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