2 min read

Week 9: SPI and I2C WIP, and Final Project Idea

Final Project

Ding and I are working together on creating an activity for understanding some basic concepts of quantum computing. See our thoughts so far through the link below:

Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.
A new tool that blends your everyday work apps into one. It’s the all-in-one workspace for you and your team


Week 10
Background: Synchronous serial communication is needed for simpler ICs that don’t have internal clocks. There are two kinds of synchronous serial: I2C (inter-integrated circuit) and SPI (serial peripheral interface). SPI: SPI Parts Serial Data In (SDI): send from controller to peripheral Seria...
See notes from the labs.

I decided to try the OLED Screen Display with I2C and Playing .WAV Files using SPI labs, and thought I would combine the two so that I could display the time remaining in a given .wav file. I'm having trouble reading the SD card, even though I've formatted it to FAT32 and have just the single .wav file inside it. I'm using a 32GB SanDisk Ultra microSD.

I tried running the CardInfo sample code, where I learned that different SD shields use different chip select pins – why is this the case? I changed my pin to the Sparkfun shield accordingly, but it didn't seem to make a difference reading the SD card.

// change this to match your SD shield or module;
// Arduino Ethernet shield: pin 4
// Adafruit SD shields and modules: pin 10
// Sparkfun SD shield: pin 8
const int chipSelect = 8;
A breadboard containing a circuit with an Arduino Nano 33 IoT, a Sparkfun microSD breakout board, a Sparkfun I2S audio amp and 3.5mm audio jack, and an SSD1306 OLED display.