Serial peripheral interface, or SPI, is a protocol for two devices to send and receive data. For example a LCD display might use a SPI interface to receive pixel data, or a temperature sensor might use SPI to send readings to a microcontroller. With MicroPython you can use the SPI protocol to talk to devices and write scripts that interface with interesting hardware!
This guide will explore how to use SPI with MicroPython. In particular MicroPython on the ESP8266 will be used to talk to a simple SPI device, the MAX31855 thermocouple temperature sensor. You’ll learn how to create a SPI interface, and send and receive data over that interface. With just the basics of sending and receiving SPI data you can start to write your own MicroPython code that interacts with other interesting SPI devices!
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey