Raspberry Pi Zero 2W and SPH 0645

August 18, 2024, 07:38

lodekennes

Hi, It's been a while (+- 8y) since I've fiddled around with a raspberry pi but decided to give it another go. I want to be able record audio with a Raspberry Pi Zero 2W and an SPH0645 from Adafruit. I'm unable to get the audio recording working. This is my pin layout (SPH0645 -> Pi ZERO 2W): SEL -> GND (PIN 9) LRCL -> GPIO19 (PIN 35) DOUT -> GPIO21 (PIN 40) BCLK -> GPIO18 (PIN 12) GND -> GND (PIN 6) 3V -> 3.3V (PIN 1) I'm running the latest raspbian lite image (bookworm). I've followed this tutorial: https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-test Also tried running this script: https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/main/i2smic.py I also tried installing raspberrypi-kernel-headers seperately and not updating the device. When running arecord -l the recording device shows up. When running arecord -D plughw:1 -c1 -r 48000 -f S32_LE -t wav -V mono -v file.wav the volume meter stays at zero. I'm quite stuck at this point. Anyone who could help me out or got any ideas on what I did wrong?

thunder07337

You only need the SEL connection with 2 microphones. It can be omitted here. Is your yellow cable wrong? Left row 3 from the bottom, not 2. Orange cable is wrong? Right row 2 from the bottom, not 1. And you are missing the pin header. The way you are doing it, there can be no contact and therefore it will not work.

thunder07337


thunder07337


lodekennes

Thanks <@1187039958561726494>, I got it working! I did have a pinheader installed but it wasn't soldered to the board. Apologies for wasting your time on something so stupid.