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
Download
(0)

Share


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

STUDENT MATERIALS

  • SPI Communication Lab Manual
  • SPI Communication VIs
 

 

SKILLS REQUIRED

  • Introductory Embedded Systems or Microcontrollers

Related Resources

EXPLORE

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

An integrated development environment designed specifically for engineers and scientists.

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.