This project was designed for the Raspberry Pi Zero, but any Raspberry Pi model will work if you are unable to get your hands on the elusive Pi Zero.
The Raspberry Pi A+ is a great alternative if the Pi Zero is out of stock.
The WiFi dongle below can be used with a USB OTG adapter, or you can attach the dongle directly to the Zero using the WiFi piggyback hack.
Here is a closeup of the WiFi Piggyback hack. Make sure to keep the two yellow wires equal length so that there aren't issues with the USB connection. The WiFi configuration will be covered in the next section.
You will need to connect it to the Pi Zero using the following pins:
- Amp Vin to Raspbery Pi 5V
- Amp GND to Raspbery Pi GND
- Amp DIN to Raspbery Pi #21
- Amp BCLK to Raspbery Pi #18
- Amp LRCLK to Raspbery Pi #19
For more information about connecting the I2S amp, please visit the Adafruit MAX98357 I2S Class-D Mono Amp guide. You will not need to do any of the software configuration mentioned in that guide. That is handled for you in the next section.
This project will use 6 electrodes on the MPR121, and they are configured as follows:
- Pin 0 -> Rewind 15 seconds
- Pin 1 -> Play/Pause toggle
- Pin 2 -> Skip to the next story
- Pin 3 -> Mark story as interesting
- Pin 4 -> Volume down
- Pin 5 -> Volume up
You will need to connect the Raspberry Pi to the following pins on the MPR121:
- Connect Raspberry Pi 3.3V to MPR121 VIN.
- Connect Raspberry Pi GND to MPR121 GND.
- Connect Raspberry Pi SCL to MPR121 SCL.
- Connect Raspberry Pi SDA to MPR121 SDA.
Once the hardware is connected to your Raspberry Pi Zero, continue on to learn how to install the software for this project.