Hey guys I am working on a simple project but this SD card won't communicate with the arduino. I tried and checked my wiring and code multiple times, i have not found any mistakes yet the serial monitor prints SD fail every time. I use Arduino Uno R3 + WiFi and SD card module from geeetech.com.
This is my code:
Serial.begin(9600);
if (!SD.begin(SD_ChipSelectPin))
{
Serial.println("SD fail");
return;
}
}
void loop()
{
// put your main code here, to run repeatedly:
}
The image linked below is my wiring except the resistor.
Also this is my first post so if I have anything that could be improved just let me know.
Thank you for all your answers.
I'd suggest running one of the examples from the SD library, such as CardInfo, and see if that works. If it doesn't, then either the CS pin is wrong, or your wiring is wrong. Your wiring picture is too low-res for me to see what's going on.