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
    About the element14 Community
  • 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
Raspberry Pi Forum RPI SPI protocol
  • 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
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 706 subscribers
  • Views 722 views
  • Users 0 members are here
Related

RPI SPI protocol

tabarus12
tabarus12 over 12 years ago

Hi everyone.

 

Ive serached for info on how to use the SPI protocol on the RPI but I found just a couple of projects that dont sheed light on the junctioning of that protocol.

Does anyone have info on how to use this protocol cause I want to use the two available connections on the RPi to control servos and sensors since the i2c on my RPi does not detect anything and no one seems to be able to help me on how to install the drivers so I want to use the SPI to connect since the deviceces Ive got has those connections too.

 

If anyone has info Ive research it and post my findings for anyone to use for their projects.

  • Sign in to reply
  • Cancel
  • e14 Contributor
    e14 Contributor over 12 years ago

    I would recommend you move this question to the RPi discussion group.

    Raspberry Pi

    There should be a "move" button on the right-hand side of the screen under the "Actions" heading.

    See orphaned discussions for more about orphaned discussions.

     

    edited to add:  same issue with The specified item was not found.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • guzunty
    guzunty over 12 years ago

    Try Wikipedia:

     

    Serial Peripheral Interface Bus - Wikipedia, the free encyclopedia

     

    This says everything you need to know as far as I can see.

     

    Are you perhaps looking for the required content on the MISO and MOSI signals themselves? If so, there is a good reason you can't find any references; there is no standard protocol. Each device has its own meanings for the bits it receives and sends. It will be fully documented in the data sheets for the devices you want to connect.

     

    If you are looking for the GPIO pins that support SPI on the Raspberry Pi specifically, then the standard low level peripherals page covers it:

     

    RPi Low-level peripherals - eLinux.org


    On the Pi, as on almost everything, they are MISO, MOSI, SCLK. The selection signals are CE0 and CE1.

     

    The selection signals correspond to the spi.0 and spi.1 in /dev.

     

    HTH,

     

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tabarus12
    tabarus12 over 12 years ago in reply to guzunty

    Thanks for the sugestion but I allready try it and all I could find was a vage reference that the comunication type exists but it starts talking abbout the i2c communication instead, cant find how to use the spi or how it works to have an idea of how to use it, and appart from that it shows a project for spi programer for RPi but the code uses some type of library that its not clear where the spi is called or how its called.

     

    If there is any info other than mentioning the existence of the spi I would realy appreciate it, Im tired of hearing abbout i2c instead of spi, Im kind of starting to hate the i2c communication pins.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • michaelkellett
    michaelkellett over 12 years ago in reply to tabarus12

    I don't do RPi things myself but I had a quick google and found:

     

    https://projects.drogon.net/understanding-spi-on-the-raspberry-pi/ which may help you a bit.

     

    You will have to do some serious hunting to get enough info to get going.

     

    MK

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

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube