• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Book Raspberry Pi Python 8..3 Using a MicroSD Card for Datalogging

Q&A Forum › Category: Raspberry Pi › Book Raspberry Pi Python 8..3 Using a MicroSD Card for Datalogging
0 Vote Up Vote Down
Dick van de Wetering asked 12 months ago

All examples in the book work fine until this one. I checked the SD card its FAT 32, exchanged SD card holder, used 
SPI_BUS = 0, SCK_PIN = 2, MOSI_PIN = 3, MISO_PIN = 4, CS_PIN = 5 and
SPI_BUS = 1, SCK_PIN = 10, MOSI_PIN = 11, MISO_PIN = 12, CS_PIN = 13
The program start sbut it holds with the command:
os.mount(sd, SD_MOUNT_PATH)
I added print commands and so I know it holds here.
No idea to get this working. Any suggestions?
 
 

Question Tags: datalogging, Pico, Python, SD card
10 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 12 months ago

Hi.
Have you tried powering your microSD card holder with 5V?
Some models require 5V to operate properly.
 
Regards,
Sara

0 Vote Up Vote Down
Dick van de Wetering answered 12 months ago

On the PCB it is printed 3V3, I am afraid to fry it if I connect it to 5V.
 

0 Vote Up Vote Down
Dick van de Wetering answered 12 months ago

I tested the SD Card reader with ESP32 and https://RandomNerdTutorials.com/esp32-microsd-card-arduino/SD_Test.

This was working. But with the Raspberry pi Pico no success yet.

0 Vote Up Vote Down
Sara Santos Staff answered 12 months ago

Hi again.
Please double-check the wiring.
It’s probably some issue with the circuit. Make sure you’re connecting to the right GPIOs.
Regards,
Sara

0 Vote Up Vote Down
Dick van de Wetering answered 12 months ago

Is it possible it has to do with the speed class of the SD card?
I also ordered another type of SD card reader. Hopefully it will work in the end.
 

0 Vote Up Vote Down
Sara Santos Staff answered 12 months ago

Hi.
I’m not sure. But, it’s worth trying another microSD card.
I know some readers have issues with specific microsd card types, but I’m not sure which ones exactly.
Regards,
Sara

0 Vote Up Vote Down
Dick van de Wetering answered 12 months ago

The Pico I tested with Arduino IDE and SD software, this was working OK.
Maybe the problem is somewhere in the pyhton software?

0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

I don’t think so.
I tested the program and it was working just fine.
 
So, I’m not really sure what might be happening in your case.
 
Regards,
Sara

0 Vote Up Vote Down
Dick van de Wetering answered 11 months ago

Today I received new SD cards, and the Pico is working now.
Old cards that did not work: Extreme Pro 16 GB Smart 1 U1
Cards that do work: Extreme Pro 32 GB A1 U1
and Scandisk Extreme 32GB A1 U3 V30
all car formatted FAT32
Regards,  Dick
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Great.
Thanks for the follow-up.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.