Week 8
Synchronous Serial Labs
Lab: OLED Screen Display using I2C
From the lab: I2C is another popular synchronous serial protocol. It also uses a bus configuration like SPI, but there are only two connections between the controller device and the peripheral devices as shown in Figure 4:
a Serial Clock (SCL) connection, on which the controller sends the clock signal, just as in SPI
a Serial Data (SDA) connection, on which the controller and peripherals exchange data in both directions.
I believe because I wasn’t using the exact OLED, I wasn’t able to get the QR code on the display. I fiddled around with the code trying to figure out what aspect in particular might not work for this OLED model but couldn’t figure it out.
Lab: Playing .WAV Files from an Arduino using I2S and SPI
Definition from the lab
I2S, the Inter-IC Sound protocol, is a serial protocol used for connecting digital audio devices. I2S allows you to transmit Pulse-Code Modulated (PCM) audio data between integrated circuits, like a microcontroller and a digital amplifier.
Serial Data In (SDI), on which the controller sends data to the peripheral devices.
a Serial Data Out (SDO), on which the peripheral devices send data to the controller.
a Clock (SCLK) connection, on which the controller sends a regular clock signal to the peripheral devices.
one or more Chip Select (CS) connections, which the controller uses to signal the peripheral devices when to listen to incoming data and when to ignore it.
Couldn’t get this one to work. I think something is wrong with the speaker because there’s nowhere to put the wires.