Page 1 of 1

ESP32s can't detect/mount microSD card

Posted: Thu Nov 14, 2019 7:33 am
by mikewax
well my board is an ESP32 cam module with microSD card socket. The esp32s can't mount the card. using the latest arduino software, I installed the board file esp32 by Espressif Systems according to these instructions.
i reformatted the card as FAT32. i loaded a webserver sketch onto the board and it worked fine. but i've tried many sketches for microSD interface and gotten nowhere.
i simplified the code down to this:

Code: Untitled.c Select all

#include "SD.h"

void setup()
Serial.begin(9600);
if(!SD.begin()) Serial.println("Card Mount Failed");
else Serial.println("success");
}
void loop() {}
then i got a meter and verified the connections according to this image. still the SD.begin command returns 0. can't figure out why.