I am connecting my SD card the the ESP32 using this guide.
https://randomnerdtutorials.com/esp32-microsd-card-arduino/
I have discovered that it only mounts certain brands of SD card (using SD(esp32) example). The Aliexpress 32GB OLEO (red and black) work, the OENY (Blue and black) 16 GB do not work, I have about three of each. I bought a “original” SanDisk Ultra Plus 32GB and it does NOT mount, the cheaper OLEO does mount. I am using the default ESP32 package SD and SPI library and a good 5v power source.
Also I found that initialising is more reliable if the power cut of prior to initialising (can not initialise twice).
It is possible that the manufacture of the OENY is bad, but I can read them all on my PC, its the SD card that is fussy. However I wonder if there is a specific pattern of type of specification of the card that the SD reader is compatible with. I have tried formatting the other cards with the same FAT32 and 32K allocation size. I have also used the special SD card formatting software. I am going to buy More OLEO cards and a few other brands (32 GB) to keep on checking. Has anyone else found the special fix to make all cards work, it must be a simple setting perhaps somewhere in the format or a tweak of the library. It just not to do with cheap cards because the SanDisk did not work.
Hi Steven.
I’m not sure what might be wrong.
I have used several microSD cards from different brands and all worked, including the SanDisk cards.
I believe it has to do with the specs of the SD card, but I don’t know which specs exactly.
What are the differences between the SD cards that work and those that don’t? Maybe we can get some information from that.
I found this discussion: https://esp32.com/viewtopic.php?t=2604
I couldn’t get much from it, but maybe you can get some useful information.
I also noticed you already opened an issue on the Arduino forum. Let’s hope someone can help you.
Regards,
Sara