Stereo ICS-43434 MEMS mic configuration #2164
alw1746
started this conversation in
Show and tell
Replies: 1 comment
-
Just one more piece of information: for mono you can select the ouput channel with config_out.channel_format. e.g. config_out.channel_format = I2SChannelSelect::RIGHT; To use 2 microphones might be tricky, but the following should work:
For the last step, you could also implement your custom logic: e.g. using a CallbackStream. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have 2 Adafruit 24-bit ICS-43434 MEMS mics and wired them in stereo as per the TDK ICS-43434 datasheet. But I wasn't sure how to configure them in AudioInfo so here's a simple sketch to experiment with the channel and bit settings. The configs that worked are:
AudioInfo info(44100, 1, 16); //left mic only.
This is a mono config and L-mic output to L-speaker only. Do not connect R-mic, you will get noise and reduced volume on speakers.
AudioInfo info(44100, 2, 16); //left or right mic.
This is a mono config and L or R mic will output to L or R speaker. Do not connect both mics, you will get noise and reduced volume speakers.
AudioInfo info(44100, 2, 32); //left+right(stereo) mics.
This is a stereo config and L-R mics will output to L-R speakers respectively.
I can also confirm the Adafruit PCM5102 DAC does not need extra solder bridging(like XSMT for HiLetgo). It worked with just the 3V,GND and 3 I2S pins.
Sketch
Beta Was this translation helpful? Give feedback.
All reactions