LCD shield with SD slot not reading SD cards

Hi everyone,
This is my first time posting here, so please go easy on me :confused:.

I recently got into tinkering with electronics (lockdown boredom and whatnot), so I bought a genuine Arduino Zero along with a cheap chinese 2.8" LCD shield with an SD card reader. (The shield is exactly like the one in the attached picture, although I did not take the picture, I just found it posted already here on the forums and decided to repurpose it).

My skill level is close to none when it comes to Arduinos, so please take that into account, but I do have a solid programming background.

So, what I managed to do so far, is to actually make the LCD boot up and run the graphicstest examples, by using the MCUFRIEND_kbv library and hardcoding the LCD ID to 0x9338 (by the suggestion of a few amazon reviews)

Mind you, the shield is directly connected to the Arduino Zero, while running IDE version 1.8.13 on Windows 10 version 20H2.

Now the brick wall I hit was trying to get the SD card reader initialized. I have a 32GB SDHC in there right now (also tried with a 2GB card, same result), formatted to FAT32, with two bitmap files on the root directory.
I use the following code:

#include <SPI.h>
#include <SD.h>
#include <MCUFRIEND_kbv.h>

MCUFRIEND_kbv lcd;

#define CS 10

void setup()
{
  uint16_t ID = 0x9338;
  Serial.begin(9600);
  lcd.begin(ID);
  lcd.fillScreen(0x0FFF);
  bool start = SD.begin(CS);
  if (!start)
    Serial.print(F("SD init failed"));
  else
    lcd.fillScreen(0x0000);
}

void loop()
{
}

All the cards/formatting combinations (FAT16/FAT32) I tried, always take me inside the 'if' statement, and I get "SD init failed".
I'm not sure what the chip select pin number should be, because I couldn't get a straight answer off of google while looking for "which pin is chip select on Arduino Zero"... But I just assumed it was #10 from seeing other examples online.
Any thoughts are welcome,
Thank you in advance!

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