SPI protocol features and how to integrate multiple sensors // Arduino Zero, LoRa and E-Ink modules
Channel: Sayanee Basu
Date: 2020-11-21

#spi #lora #eink
We will learn about SPI serial communication by trying to connect 2 peripherals to the microcontroller. Both the peripherals support the SPI protocol which has some properties such as frequency, data order, and data mode. We will analyze the 4 pins through the logic analyzer and examine the Arduino firmware to ensure they are not conflicting.

⏰ TIMESTAMPS
0:00 Intro
1:24 SPI Pins - Data in, data out, clock, chip select
4:20 Firmware - pins, enable, frequency, mode 
8:35 Multiple SPI peripherals

‣ Some links below are affiliate. I receive a small commission at no extra cost to you.

📻 PRODUCTS MENTIONED
RobotDyn SAMD21 M0 Mini https://s.click.aliexpress.com/e/_AZG8aU
Adafruit RFM95W LoRa Radio Transceiver Breakout https://amzn.to/3mF1Qq8
WaveShare 1.54in https://amzn.to/3n7gLtk
Saleae 8-Channel Logic Analyzer https://amzn.to/39SJ8px

📺 WATCH NEXT
Decoding UART, I2C and a non-standard signal // With Saleae logic analyzer and temperature sensors https://youtu.be/jocVpFqlpOo
Arduino firmware on ATmega328p or SAMD21 https://youtu.be/xV1l5SdE8sk
Using LoRa for P2P half-duplex long-range communication https://youtu.be/tO1hYr6hNa4
Arduino CLI and the art of command line https://youtu.be/cVod8k713_8
Saleae Logic Analyzer Alpha 2 and how software is eating the instrument world https://youtu.be/P2z-iwrrVWU
Displaying on E-Ink screen with various micro-controllers https://youtu.be/enfliRlCYbc

🎩 DEMO FILES
Lora Duplex code example https://hutscape.com/tutorials/lora-duplex-samd21g
Waveshare 1.54 inch with SAMD21G https://hutscape.com/tutorials/waveshare-1in54-e-paper-samd21g

🔗 LINKS SHOWN
A Resolution to Redefine SPI Signal Names https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names
SPI Explained by electric imp dev center https://developer.electricimp.com/resources/spi
SAMD21 M0-Mini Dev board https://robotdyn.com/samd21-m0-mini.html
Adafruit RFM69HCW and RFM9X LoRa Packet Radio Breakouts https://learn.adafruit.com/adafruit-rfm69hcw-and-rfm96-rfm95-rfm98-lora-packet-padio-breakouts
Waveshare 200x200, 1.54inch E-Ink display module https://www.waveshare.com/1.54inch-e-Paper-Module.htm
Arduino native SPI Library https://www.arduino.cc/en/Reference/SPI
Firmware arduino-LoRa by sandeepmistry https://github.com/sandeepmistry/arduino-LoRa
Firmware e-paper by waveshare https://github.com/waveshare/e-Paper
Introduction to SPI Interface by Analog devices https://www.analog.com/en/analog-dialogue/articles/introduction-to-spi-interface.html#
Serial Peripheral Interface (SPI) by SparkFun https://learn.sparkfun.com/tutorials/serial-peripheral-interface-spi

🔌 TOOLS USED
https://hutscape.com/tools

🎶 MUSIC AND SOUND EFFECTS
New Morning by TrackTribe from YouTube Audio Library
Sunrise in Paris by Dan Henig from YouTube Audio Library
Nebular Focus by Dan Henig from YouTube Audio Library
View of the Valley by Trevor Garrod from YouTube Audio Library