Trying to follow SD Card Reading Tutorial

Hello everyone, I'm trying to do read a text file from an SD Card. The tutorial is @ ESP32: Guide for MicroSD Card Module Arduino | Random Nerd Tutorials

Direct link to code is @ https://raw.githubusercontent.com/RuiSantosdotme/Random-Nerd-Tutorials/master/Projects/ESP32/MicroSD_Card/ESP32_SD_Test.ino

When running code I only getting "Card Mount Fail"

I double checked all wiring. I made sure to format the sdcard to fat32 and it works with windows. I'm using a slightly different sd card module but it has the same pins : https://www.amazon.com/gp/product/B07BJ2P6X6/

I'm not sure what to do from here. Any help would be greatly appreciated.

But, is it electronically the same?

Your yellow, green, blue and white wires are not connected to the module.

3 Likes

LOL, had to look twice or three times.

I guess that's why you get the big bucks. Good eye.

@hendr1x if you are slapping your forehead over this explanation, we all been there.

Otherwise, review how a breadbox works. :expressionless:

a7

Lol. It's true, I've never used on before :slight_smile:

Unfortunately I'm still having the exact same issu :frowning:


I don't know how to tell if the module is electronically the same.

Your tests are likely a clue.

Isn't SD library designed to work with all of them?

The guide literally says "You can use any other microSD card module with an SPI interface."

Read through lots of posts of people having issues. No solutions to their posts unfortunately. I tried 3 other modules and tried an 8gb sd card laying around. No luck.

For an ESP32, which is 3.3V logic, use a SD card holder that is suitable for 3.3V logic processors.

Looks like this;

Screenshot - 27_09_2023 , 18_13_05

The specs say the one I have is 3.3

Sure it does, they want you to buy it.

I have had issues on 3.3V logic processors like the ESP32, with the one you pictured, which is really for a 5V logic Arduino,

What is the voltage spec for the Vcc pin on your card module? The SD module seems to have a voltage regulator that brings 5V down to 3.3V; feeding 3.3V into that regulator might not be the right thing to do.

Basically you don't need a complicated module with extra hardware on it; a bare metal one like Pololu - Breakout Board for microSD Card (for micro SD) should work.

Hmm, srnet beat me to it :smiley:

1 Like

I have measured the VCC voltage in the 2.4v region, on the SD card itself, when VCC on one of those 5V logic level adpaters boards is fed with 3.3V on the cards VCC pin.

Much easier to use the proper adapter.

@sterretje @srnet @Paul_KD7HB @missdrew

I purchased another module [https://www.amazon.com/dp/B0B87QQZD3?psc=1&ref=ppx_yo2ov_dt_b_product_details] and I'm getting the same issue. I really could use some help. I have no idea what to do. I tried two boards and two working sdcards. Still "Card Mount Failed". Thanks for any ideas.


Your SD socket should be spring loaded.

Please confirm:

  • you place the SD card in the socket
  • you push the card in until it clicks and stays inserted.
  • for removing, push the card in again, it should pop out.

Confirmed. Also if it's a problem with the SD card itself then the error would be "No SD card attached"

  • Maybe try a smaller SD card, 3 to 6 GB. :thinking:

  • Measure your 3V3 with a volt meter.

  • Try other wires.

  • Maybe try:

I replaced the esp32 and it worked! Thanks for all your help. I can't tell you how much it helped to have people for support.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.