Adafruit I2S MEMS Microphone Breakout

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
rockman55
 
Posts: 100
Joined: Tue Apr 14, 2015 6:17 pm

Adafruit I2S MEMS Microphone Breakout

Post by rockman55 »

I have run the setup for Raspberry Pi using one mic. Everything worked just fine until I got to the part where you run alsamixer and select the snd_rpi_simple_card. I selected the card in alasmixer and changed the mic (F4) and pressed F5 for the volume, it never changed. So I recorded a wav file as instructed and it recorded properly but I could never get any sound out. I even went back and tried to play the file that was first recorded as a test and it would not play. I copied all of the wav files to my windows computer and they all played. Is the some other changes I have missed or some new update that I am not seeing. My OS is Raspbian Stretch, full not lite.
Thanks

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by adafruit_support_mike »

Try dropping back to a fresh install of Raspbian and doing the installation up to that point again. Then try playing the files to see if you can get output at the default volume.

User avatar
rockman55
 
Posts: 100
Joined: Tue Apr 14, 2015 6:17 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by rockman55 »

Should I go to the point of Adding Volume control?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by adafruit_support_mike »

Stop just before that and see if the sounds will play.

User avatar
rockman55
 
Posts: 100
Joined: Tue Apr 14, 2015 6:17 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by rockman55 »

Ok, I did that and I can hear sound, but it is very faint or soft.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by adafruit_support_mike »

It sounds like the I2S signals are being handled properly, but the amp can't deliver enough current to the speaker.

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
rockman55
 
Posts: 100
Joined: Tue Apr 14, 2015 6:17 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by rockman55 »

I will send the photo, but just a quick comment. I am using a 5.1 volt 2.5 amp (official Raspberry Pi power supply) and I am using a powered speaker. Do you still need a picture?
Thanks

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by adafruit_support_mike »

Those parts should work together.

Do post a photo of the hardware and connections please. It's easier to understand all the pieces if we can see them.

User avatar
rockman55
 
Posts: 100
Joined: Tue Apr 14, 2015 6:17 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by rockman55 »

Photo of mems mic project
Photo of mems mic project
20180215_133629.jpg (123.48 KiB) Viewed 551 times
Sorry for the delay, here is the photo you requested, hope it helps.
Danny

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by adafruit_support_mike »

Thank you. The connections look good. I'm not sure about the red LED on the speaker.. the ones I use usually show red to indicate the internal battery needs charged, but that might not apply to the one you have.

What output do you get from the command:

Code: Select all

arecord -l 

User avatar
rockman55
 
Posts: 100
Joined: Tue Apr 14, 2015 6:17 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by rockman55 »

Here is copy a arecord -l

pi@fruitnanny:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: sndrpisimplecar [snd_rpi_simple_card], device 0: simple-card_codec_link snd-soc-dummy-dai-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@fruitnanny:~ $

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by adafruit_support_mike »

Okay, we're good to that point. If you record a file using the command:

Code: Select all

      arecord -D plughw:1 -c1 -r 48000 -f S32_LE -t wav -V mono -v file.wav
and copy it over to a desktop computer, does it play with decent volume there?

User avatar
rockman55
 
Posts: 100
Joined: Tue Apr 14, 2015 6:17 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by rockman55 »

Yes

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by adafruit_support_mike »

Good, that means the mic is working and is connected correctly.

Checking with some of the other folks who handle RasPi issues, I learned that the most recent version of Raspbian broke ALSA support. That seems to tie in with the behavior you're seeing.

Try dropping back to an eariler version and see if the instructions work there:

http://downloads.raspberrypi.org/raspbian/images/

User avatar
gerardgilliland
 
Posts: 1
Joined: Thu Sep 01, 2016 12:24 pm

Re: Adafruit I2S MEMS Microphone Breakout

Post by gerardgilliland »

I installed the Adafruit SPH0645 LM4H
I had it working originally then I installed a USB mic which works (I want to compare the two)
I removed the USB mic and reinstalled the Adafruit SPH0645 LM4H

I have been following the instructions for Adafruit I2S MEMS Microphone Breakout at
https://learn.adafruit.com/adafruit-i2s ... g-and-test

At the following point in the instructions:

Code: Select all

lsmod | grep my_loader
dmesg | tail 
I should get

Code: Select all

...
asoc-simple-card asoc-simple-card.0: snd-soc-dummy-dai <-> 3F203000.i2s mapping ok 
on the last line
instead it get

Code: Select all

[   13.148034] Bluetooth: HCI UART protocol Broadcom registered
[   13.477304] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.477312] Bluetooth: BNEP filters: protocol multicast
[   13.477326] Bluetooth: BNEP socket layer initialized
[   13.570621] Bluetooth: RFCOMM TTY layer initialized
[   13.570648] Bluetooth: RFCOMM socket layer initialized
[   13.570668] Bluetooth: RFCOMM ver 1.11
[   19.142944] fuse init (API version 7.26)
[   23.440085] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[   24.477669] logitech-hidpp-device 0003:046D:1025.0006: HID++ 1.0 device connected.
Do you think my serial port for the
PM2.5 Air Quality Sensor and Breadboard Adapter Kit - PMS5003
is getting in the way of the I2S port?
I installed the PMS sensor after the original I2S installation of SPH0645

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”