Hi all,
I am currently having difficulty interfacing the ESP32 Thing Plus with a micro SD breakout board.
The board in question https://www.adafruit.com/product/254
I am using the code from the ESP32 library
https://github.com/espressif/arduino-es … D_Test.ino
When I run the code I get “Card Mount Failed” on the serial monitor. I am pretty certain it is a wiring issue, however the pinout of the Thing Plus is confusing. If I wish to uses the ESP SD card code for ardunio rather than the code writen by (William Greiman https://www.arduino.cc/en/reference/SD) .
When wiring the board what pins should I use, also what is the default CS pin? The two diagrams below indicate different GPIO pins in use.
https://cdn.sparkfun.com/assets/learn_t … asheet.png
https://github.com/espressif/arduino-es … braries/SD
CS is whatever you define it as, or what the library you’re using has defined it as. I don’t think there’s a pin on the ESP32 assigned specifically to CS. Any pin that can do digital writes will work but your code would need to know which one you’ve chosen.
I can’t say this is what’s causing your issue, but the SD level shifting breakout you’re using is expecting and sending 5 volt I/O where the ESP32 is 3.3 volt only. That could potentially be causing your issue and I know we have had customers report trouble with our own [level shifting breakout when used on a 3.3 volt system. You might consider switching to a [microSD socket breakout that doesn’t have any electronics on it since you’re using a 3.3 volt system and a microSD card is a 3.3 volt device.](https://www.sparkfun.com/products/544)](SparkFun Level Shifting microSD Breakout - DEV-13743 - SparkFun Electronics)