Trouble with Arduino Mega and SD card module

Hi everyone,

I’m having problems getting my arduino Mega to detect my SD card module( the SD card module I’m using is attached to this post). My connection is as follows:

50(MISO)
51(MOSI)
52(SCK)
53(SS)
GND -GND
VCC - 5V

I even changed my chipset pin to reflect in my code. I even tried a different SD card module. it still doesn’t work.

const int chipSelect = 53;

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}

Please can someone tell me what I’m doing wrong?

SD.PNG

Do I still need level shifter with this module?

flippomendes:
Do I still need level shifter with this module?

Hi

Sounds like it needed

see here:

I use CD4050 logic level shifter to do it.

Works now! Reformatting the SD card did the trick!