Continuing on with my temperature logging project as mentioned here, I have my Raspberry Pi Pico connected to an Adafruit PiCowbell Adalogger for Pico - MicroSD, RTC & STEMMA QT, and I’m having trouble with the sdcard slot in the PiCowbell.
Adafruit’s page for the PiCowbell is using CircuitPython, and it’s a whole different set of libraries to mess about with, so I was hoping to use the Makerverse Micro SD Adapter - MicroPython Guide and Data Logging
I have the basic test code from that tutorial modified to use the Adalogger’s pinouts for its SDCard:
from machine import SPI, Pin import sdcard, uos spi = SPI(0,sck=Pin(18), mosi=Pin(19), miso=Pin(16)) cs = Pin(17) sd = sdcard.SDCard(spi, cs) uos.mount(sd, '/sd') print(uos.listdir('/sd'))
Which is running happily up until it tries to mount the card:
MPY: soft reboot Traceback (most recent call last): File "<stdin>", line 8, in <module> OSError: [Errno 19] ENODEV
Just wondering if anyone who has used the PiCowbell datalogger in a micropython project and gotten the sdcard working might be able to share some working code?