edjones
Posts: 5
Joined: Thu Sep 21, 2017 10:42 am

Connecting to external micro SD card reader

Wed May 29, 2019 7:53 am

Hello, I have an Arduino connecting to and writing to a micro SD card reader (https://www.adafruit.com/product/254) and all is good. I would now like to move this across to the Rasp Pi Zero but I have hit a roadblock. I was looking at using the Circuit Python blinka libraries but the support particularly for the "storage" library is not yet available. Are there any other routes? I am looking at all options so it can be C or Python or...

Andyroo

Re: Connecting to external micro SD card reader

Wed May 29, 2019 3:18 pm

Does it have to be in the same format as the Arduino would write the data?

If not, just use a USB adapter, format the card and mount it as a drive. Once available like thus you can read / write files till the card dies :lol:

edjones
Posts: 5
Joined: Thu Sep 21, 2017 10:42 am

Re: Connecting to external micro SD card reader

Thu May 30, 2019 12:26 pm

The idea is for a file created on a PC to be copied across to the card and that card inserted into the Pi (there will be no wifi/bluetooth so can't transfer it that way) so I presuming the format would need to be at least FAT 16/32?

I have found a link for some C code at http://blogsmayan.blogspot.com/p/interf ... -card.html which looks promising?

Andyroo

Re: Connecting to external micro SD card reader

Thu May 30, 2019 1:14 pm

If it’s a PC formatted card then the Pi will recognise it with no issue so you will be able to mount it and read the files without any special coding.

The only thing you need to be aware of is to use the inbuilt SD card then you will have to gave booted the Pi of a USB disk or memory stick. Linux gets very very upset when you take its boot disk away :lol:

Return to “Interfacing (DSI, CSI, I2C, etc.)”