ESP32s can't detect/mount microSD card

mikewax
Posts: 1
Joined: Wed Nov 13, 2019 8:20 pm

ESP32s can't detect/mount microSD card

Postby mikewax » Thu Nov 14, 2019 7:33 am

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.

Who is online

Users browsing this forum: Bytespider, Google [Bot] and 3 guests