Recording wav file to a built-in SD card from INMP441 microphone (ESP32 STEAMakers) #548
-
I'm using this board https://shop.innovadidactic.com/es/standard-placas-shields-y-kits/1567-placa-esp32-steamakers.html , and I fail to get even the I2S to Serial example to work. I assumed that is because the pins that the INMP441 is supposed to be connected to (SD --> 32, WS --> 15) are unavaliable in this board (because they are dedicated to sd card, I think). As for the sd card, I can't find how to use the built-in SD Card as an audio sink. Any help on those would be appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I2S on the ESP32 is flexible and you can map the functionality to any other pins. You can do this in the sketch using I2SConfig or for all sketches you can change the defaults pins in the AudioConfig.h. For the SD Card the documentation is a little bit confusing: Usually the SPI pins are called
Your documentation however gives
I am also confused that the CS is not specified, so you might want to try any unused pin to keep the API happy. |
Beta Was this translation helpful? Give feedback.
I2S on the ESP32 is flexible and you can map the functionality to any other pins. You can do this in the sketch using I2SConfig or for all sketches you can change the defaults pins in the AudioConfig.h.
For the SD Card the documentation is a little bit confusing: Usually the SPI pins are called
Your documentation however gives
I am also confused that the CS is not specified, so you might want to try any unused pin to keep the API happy.
#define PIN_SD_CARD_CS 5
#define PIN_SD_CARD_MISO 32
#define PIN_SD_CARD_MOSI 33
#define PIN_SD_CARD_CLK 15
// setup SPI for SD card
SPI.begi…