Serial Peripheral Interface

Made by Dani Quan · UNLISTED (SHOWN IN POOLS)

SPI is a communication protocol used by many sensors to connect with a microcontroller.

Created: May 11th, 2018

0

What is SPI?

Serial Peripheral Interface is a communication protocol used for many sensors and embedded systems. This system allows many sensors to communicate with one microcontroller with two way, or full duplex, communication.

0

SPI Architecture

SPI uses master/slave architecture and requires four logic signals. The "master" is usually the microcontroller, which reads and writes the multiple slave devices, which are the sensors or actuators. The four lines are as follows:

  1. SCLK - Serial Clock, which is output from the master and syncs all the devices
  2. MOSI - Master Out Slave In, which is data output from the master
  3. MISO - Master In Slave Out, which is data output from the slave device
  4. SS - Slave Select, which switches which device the master is talking to at a given time
0

Independent Slave Configuration

This wiring configuration is the most common, with shared clock, MOSI, and MISO lines. Adding an additional slave device is only one more pin output from the master, and the other three lines are connected to the existing buses.

0

Example SPI devices with Photon

0
Example project wiring diagram with SPI devices on the right. SCK, MOSI, and MISO lines are orange, purple, and blue.
Final base.thumb
x
Share this Project

This project is only listed in this pool. Be considerate and think twice before sharing.


Courses

49313 Designing for the Internet of Things (Undergrad)

· 20 members

A hands-on introductory course exploring the Internet of Things and connected product experiences.


About

SPI is a communication protocol used by many sensors to connect with a microcontroller.