Is there support for PDM I2S microphones? #203
-
I am using the M5stack-Core 2 module, which includes almost everything you could desire, including an I2S mic and I2S speaker. The only problem is that this mic works in PDM I2S mode and I can't see anyway to configure this option in the library. I believe that the Espressif framework supports this functionality, so is it possible to add it as an option in your amazing library? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Oh, I didn't know that this exists. I just committed a change to my project. |
Beta Was this translation helpful? Give feedback.
-
Strange, I can't reproduce your errors.
|
Beta Was this translation helpful? Give feedback.
-
Answers below
From: Phil Schatzmann ***@***.***>
Sent: Thursday, 12 May 2022 6:56 PM
To: pschatzmann/arduino-audio-tools ***@***.***>
Cc: Richie Mickan ***@***.***>; Author ***@***.***>
Subject: Re: [pschatzmann/arduino-audio-tools] Is there support for PDM I2S microphones? (Discussion #203)
Strange, I can't reproduce your errors.
* Is this in Arduino or PlatformIO
Arduino 2.0
* What ESP32 Arduino Version are you using
M5stack-Core2
* What Sketch are you compiling
ESP32_stream-i2s-webserver_wav.ino
* In Arduino Settings Compiler Warnings: you you have the setting Default ?
Set to ALL. I was always taught that you want to see all warnings, as they are there for good reason and so you can fix them before they bite you 😉
All resolved by changing the warnings back to default. Thank you.
P.S.
I have never seen warnings cause a ‘Compilation Error: exit status 1’ message before. Then I just noticed a little line above that states cc1plus: some warnings being treated as errors
Grhhhh! I learnt something new today.
Interestingly it all worked perfectly yesterday before I pulled your latest update from github, despite warnings being set to all - but maybe my last pull was a few months ago.
|
Beta Was this translation helpful? Give feedback.
-
All working perfectly. Here are the config settings for anyone who wants to try the microphone in the M5Stack-Core2 unit. auto config = i2sStream.defaultConfig(RX_MODE); |
Beta Was this translation helpful? Give feedback.
-
I updated the documentation and added a section for PDM microphones: https://github.com/pschatzmann/arduino-audio-tools/wiki/External-ADC |
Beta Was this translation helpful? Give feedback.
Oh, I didn't know that this exists. I just committed a change to my project.
In the I2S Config you can set now signal_type=PDM.
Please let me know if this works...