Lab 7: SPI Communication

Analog Discovery 2 - NI Edition
This lab allows students to explore communication using the Serial Peripheral Interface (SPI) bus. Students will learn about the basic theory behind SPI communication using a microcontroller (such as an Arduino Uno) as the SPI master and the Analog Discovery 2 as the SPI slave. Using LabVIEW, students will be able to visualize the slave select, clock, and MOSI lines of the SPI bus and learn how to extract the message from these lines. Advanced students can challenge themselves by modifying their code to encode and decode ASCII signals or adding a layer of encryption to protect their data from unwanted observers.
by National Instruments


This is lab 7 of 7 in the course, Complementary Labs for Electrical Engineering.


  • SPI Communication Lab Manual
  • SPI Communication VIs



  • Introductory Embedded Systems or Microcontrollers

Related Resources


These labs have related concepts that can expand student experience.

Analog Discovery 2

Gives students access to a 100 MS/s oscilloscope, a logic analyzer, and six other instruments in a pocket-sized lab device.


LabVIEW is systems engineering software for applications that require test, measurement, and control with rapid access to hardware and data insights.

Required Software

Download Academic Software, Learn About Software Licensing

  • LabVIEW 2015 or later
  • Digilent LINX
  • Digilent WaveForms VIs


Required Hardware

Purchase Engineering Education Products

  • Analog Discovery 2 - NI Edition
  • Arduino Uno or other LINX supported microcontroller - Full List Available Here
  • Jumper Wires
Log in to submit a comment.