#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/_AZG8aUAdafruit RFM95W LoRa Radio Transceiver Breakout
https://amzn.to/3mF1Qq8WaveShare 1.54in
https://amzn.to/3n7gLtkSaleae 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/jocVpFqlpOoArduino firmware on ATmega328p or SAMD21
https://youtu.be/xV1l5SdE8skUsing LoRa for P2P half-duplex long-range communication
https://youtu.be/tO1hYr6hNa4Arduino CLI and the art of command line
https://youtu.be/cVod8k713_8Saleae Logic Analyzer Alpha 2 and how software is eating the instrument world
https://youtu.be/P2z-iwrrVWUDisplaying on E-Ink screen with various micro-controllers
https://youtu.be/enfliRlCYbc🎩 DEMO FILES
Lora Duplex code example
https://hutscape.com/tutorials/lora-duplex-samd21gWaveshare 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-namesSPI Explained by electric imp dev center
https://developer.electricimp.com/resources/spiSAMD21 M0-Mini Dev board
https://robotdyn.com/samd21-m0-mini.htmlAdafruit RFM69HCW and RFM9X LoRa Packet Radio Breakouts
https://learn.adafruit.com/adafruit-rfm69hcw-and-rfm96-rfm95-rfm98-lora-packet-padio-breakoutsWaveshare 200x200, 1.54inch E-Ink display module
https://www.waveshare.com/1.54inch-e-Paper-Module.htmArduino native SPI Library
https://www.arduino.cc/en/Reference/SPIFirmware arduino-LoRa by sandeepmistry
https://github.com/sandeepmistry/arduino-LoRaFirmware e-paper by waveshare
https://github.com/waveshare/e-PaperIntroduction 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