Skip to content

Recording wav file to a built-in SD card from INMP441 microphone (ESP32 STEAMakers) #548

Answered by pschatzmann
FGAC1226 asked this question in Q&A
Discussion options

You must be logged in to vote

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

  • MISO
  • MOSI
  • SCLK
  • CS or SS

Your documentation however gives

  • IO32 D0 – Tarjeta SD (=MISO?)
  • IO15 CLK – Tarjeta (=SCLK)
  • IO33 SDCMD – Tarjeta (MOSI?)

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants