I want to Track my measurement Data on an SD Card but it shows Card Mount failed all the time

Hello, i am trying to execute the SD CARD example because i want to safe my Data on an SD card. i am using this website as an example for me how to wire the arduino but everytime i am trying to start it it says that the Card mount is failed.

i tried to look into the documentation of

and tried a different type of wiring where i laid the Mosi output on PIN27 but it changed nothing.

unfortuanally i am not using the Same SD card reader as in the example. i am using this mikro SD reader:

i have tried different things now. I visited the randomnerdtutorials website again

and connected MISO MOSI and SCK like it was written on the website with the lora module. Than i connected the CS PIN to PIN Number 18 since it is shown as the lora default CS pin and tried the Code with SD.begin(18)
it showed:
Card mount failed
i tried it again by connecting the CS to pin 23 andc hanged to
SD.begin(23)
again card mount failed
i can safely say that it is a problem with the mounting of the SD card since i tracked the error in sd.begin but i dont know how to fix the error or how to find it....

so how did you wire the SD card to the esp32. the SPI pins on a common esp32 are 18, 19 and 23 so I wonder why do you try to use them as CS if they should be wired to SCK, MISO and MOSI

someone told me i should look at the LORA module and look at these connections. i used pin 5 as clk pin 19 as miso pin 27 as mosi and pin 18 as cs.
i just straight up looked at the definition on

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.

i also looked deeper into the Code and found this default PINS

'static const uint8_t SS = 18;
static const uint8_t MOSI = 27;
static const uint8_t MISO = 19;
static const uint8_t SCK = 5;'

so this should be how i wire the pins right?

in what code did you find this?

pins_arduino.h

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