ESP32s can't detect/mount microSD card

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:
  1. #include "SD.h"
  3. void setup()
  4.   Serial.begin(9600);
  5.   if(!SD.begin()) Serial.println("Card Mount Failed");
  6.   else Serial.println("success");
  7. }
  8. 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: No registered users and 20 guests