# Using Adafruit PiCowbell Adalogger for Pico - MicroSD, RTC & STEMMA QT

**URL:** <https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692>\
**Category:** Micropython\
**Created:** [27 July 2023 06:42 UTC](https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692 "2023-07-27T06:42:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Politas](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/politas/32/3427_2.png) [@Politas](https://forum.core-electronics.com.au/u/Politas)\
**Post date:** [27 July 2023 06:42 UTC](https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692/1 "2023-07-27T06:42:43Z")

</div>

Continuing on with my temperature logging project as mentioned [here](https://forum.core-electronics.com.au/t/trying-to-use-bme280-on-pi-pico/17645), I have my [Raspberry Pi Pico](https://core-electronics.com.au/catalog/product/view/sku/CE07564) connected to an [Adafruit PiCowbell Adalogger for Pico - MicroSD, RTC & STEMMA QT](https://core-electronics.com.au/adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt.html), and I’m having trouble with the sdcard slot in the PiCowbell.

Adafruit’s [page for the PiCowbell](https://learn.adafruit.com/adafruit-picowbell-adalogger-for-pico?view=all) 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](https://core-electronics.com.au/guides/raspberry-pi-pico/makerverse-micro-sd-adapter-micropython-guide/?test)

I have the basic test code from that tutorial modified to use the Adalogger’s pinouts for its SDCard:

```auto
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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![Politas](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/politas/32/3427_2.png) [@Politas](https://forum.core-electronics.com.au/u/Politas)\
**Post date:** [27 July 2023 06:50 UTC](https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692/2 "2023-07-27T06:50:08Z")

</div>

I did find [this post](https://forum.core-electronics.com.au/t/makerverse-micro-sd-adapter-oserror-errno-19-enodev/14113) where someone was askinig for help with the same error code, and they fixed their issue by switching to a fat32 formatted 32GB SDcard. I was using a 64GB sdcard, so I re-formatted a 16GB sdcard as fat32 and stored a single empty file on it called “success”, but I still get the ENODEV error.

---

<div class="post-metadata">

**Author:** ![Politas](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/politas/32/3427_2.png) [@Politas](https://forum.core-electronics.com.au/u/Politas)\
**Post date:** [27 July 2023 07:30 UTC](https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692/3 "2023-07-27T07:30:34Z")

</div>

Well, I found an older 2GB SDCard, and that is working! SDCard compatibility is a mess!

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [28 July 2023 03:00 UTC](https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692/4 "2023-07-28T03:00:32Z")

</div>

What a trap!  
I’m not too familiar with CircuitPython so I do wonder how well the Makerverse driver (vanilla MicroPython) works on a Pico running CircuitPython.

16GB does feel like a safer size in general - i start hearing alarm bells when I consider an embedded microcontroller project using a 64GB uSD card.

Glad you’re back on track, and thanks for taking the time to document your findings! It helps everybody in the end 🙂

---

<div class="post-metadata">

**Author:** ![Politas](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/politas/32/3427_2.png) [@Politas](https://forum.core-electronics.com.au/u/Politas)\
**Post date:** [28 July 2023 07:20 UTC](https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692/5 "2023-07-28T07:20:04Z")

</div>

Yep, nothing more annoying that finding a post with the exact same question as you have and finding there’s no definite answer!

---

<div class="post-metadata">

**Author:** ![Politas](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/politas/32/3427_2.png) [@Politas](https://forum.core-electronics.com.au/u/Politas)\
**Post date:** [15 August 2023 21:33 UTC](https://forum.core-electronics.com.au/t/using-adafruit-picowbell-adalogger-for-pico-microsd-rtc-stemma-qt/17692/6 "2023-08-15T21:33:05Z")

</div>

For anyone trying to use this board in Micropython, there’s code for all the features in [this project](https://forum.core-electronics.com.au/t/raspberry-pi-pico-environmental-logger/17698)
