Go Down

Topic: 2 or more i2s mems microphone breakouts (SPH0645LM4H) (Read 264 times) previous topic - next topic

heesu12193

May 06, 2019, 12:09 pm Last Edit: May 06, 2019, 12:10 pm by heesu12193
Hi all,

I am trying to connect two or more i2s mems microphones to an Arduino Feather M0 bluefruit LE or MKRZero.

I have connected one microphone sensor by following the tutorial from adafruit (https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/arduino-wiring-and-test) and used the example code called InputPlotter to receive microphone sensor data.

What i want to do is connecting two microphone sensors to arduino to receive data and make the two microphones to record simultaneously (i dont wanna make it stereo though)

I looked up how i2s works and the code itself, but i couldn't find a solution to this
If anyone could point me in the right direction, I would really appreciate it!

MarkT

I'm pretty sure there are other I2S MEMS microphones that can be bussed together and pin-configured to
be a left and right channel, which would allow two microphones on one I2S bus.

Can't remember any part numbers alas...
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Grumpy_Mike

Quote
to arduino to receive data and make the two microphones to record simultaneously (i dont wanna make it stereo though)
Why not? You can separate them later if you want.

heesu12193

Why not? You can separate them later if you want.
I didn't know I could separate them! I saw this post on GitHub that the data from each channel would be intertwined and could not be separated (https://github.com/arduino-libraries/ArduinoSound/issues/5).

I am trying to record voice signals with one microphone and voice signals with background noises with another simultaneously. (so 2 microphones)
- can I do this by making it stereo and separate them into two mono tracks?

Thank you so much for helping me out! i'm new to this whole thing and already getting a lot out of this post

Grumpy_Mike

#4
May 07, 2019, 01:53 pm Last Edit: May 07, 2019, 01:55 pm by Grumpy_Mike
Look at the format of an I2S message, yes they are intertwined but you can write code to pick out the left and right data. It might not be beginner level code and you might want to do it on the PC with a language like Processing, and not the Arduino because to do it in real time is tricky.

That post seemed to be connecting two microphones along the same wires. Not the same thing as you want at all.

Go Up