Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Pi Zero + MEMS i2S mic + DAC I2S Audio Bonnet, work together
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Pi Zero + MEMS i2S mic + DAC I2S Audio Bonnet, work together

by drunix on Mon Jun 22, 2020 1:38 am

I have a Pi Zero W with an I2S Audio Bonnet (UDA1334A) and it's all working great.

Now I've added a i2S MEMS mic (SPH0645LM4H) and it generates 0 output. I've tried it on both the left and right channels.

On left channel it shows 0% output. On right channel it shows 50%. In both cases the WAV file produced is full of silence.

Does anyone have these two products working together?

Code: Select all | TOGGLE FULL SIZE
uname -a
Linux okapi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpii2scard [snd_rpi_i2s_card], device 0: simple-card_codec_link snd-soc-dummy-dai-0 [simple-card_codec_link snd-soc-dummy-dai-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: sndrpii2scard [snd_rpi_i2s_card], device 0: simple-card_codec_link snd-soc-dummy-dai-0 [simple-card_codec_link snd-soc-dummy-dai-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


I have the Bonnet plugged into the Pi and I have added some headers to the Bonnet so that I can hook up the mic to it.

drunix
 
Posts: 3
Joined: Tue Jan 01, 2013 3:22 pm

Re: Pi Zero + MEMS i2S mic + DAC I2S Audio Bonnet, work toge

by drunix on Mon Jun 22, 2020 1:46 am

I unhooked 3.3v from the MEMS board (and rebooted) and the Pi still shows a capture device. So I think the I2S bonnet is masking the MEMS device.

Code: Select all | TOGGLE FULL SIZE
card 0: sndrpii2scard [snd_rpi_i2s_card], device 0: simple-card_codec_link snd-soc-dummy-dai-0 [simple-card_codec_link snd-soc-dummy-dai-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

drunix
 
Posts: 3
Joined: Tue Jan 01, 2013 3:22 pm

Re: Pi Zero + MEMS i2S mic + DAC I2S Audio Bonnet, work toge

by mikeysklar on Mon Jun 22, 2020 5:49 pm

Hi drunix,

Glad you got I2S going with the audio bonnet.

Have you tried configuring and running the i2s mems mic on it's own? I assume you have already run the i2smic.sh configuration script?

https://learn.adafruit.com/adafruit-i2s ... iring-test

mikeysklar
 
Posts: 1743
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.


cron