Code: Select all
OSError: no SD card
Hardware wise, I've swapped the location of the SD card reader on the breadboard, used completely different wires (actually on my 3rd set, bypassing the breadboard on the SD card side and going with straight wiring). I've read that labeling can sometimes been an issue so I tried swapping the MISO and MOSI wires, tried formatting the card in FAT and FAT32 in multiple different partitioning software, tried a different card with a different manufacturer and size (SanDisk 32GB and PNY 16GB).
Software wise, this is my current iteration:
Code: Select all
>>> import busio, sdcardio, board, storage, sys, os
>>> spi = busio.SPI(clock=board.IO36, MOSI=board.IO35, MISO=board.IO37)
>>> sdcard = sdcardio.SDCard(spi, board.IO5)
GND --> Tested ground on breadboard
VCC --> Tested 3.7V power on breadboard
MISO --> SPI MO/SDO (IO36)
MOSI --> SPI MI/SDI (IO35)
SCK --> SPI SCK/SCK (IO37)
CS --> D19/5 (IO5)
I've moved the CS wire around and changed the pin in the software accordingly, no joy. I haven't moved anything else around. This is my 2nd microcontroller project so not sure how much flexibility I have.
If anyone has used this particular SD card reader, do you know if there's an LED on it? That's one thing that has concerned me is that I don't know if the module even functions.
Any advice would be greatly appreciated! TIA!