reading micro SD card directly from PC

Hi. Is it possible to read a microSD card (on a breakout) through the USB port on the arduino? or perhaps another USB port I could attach to the breakout? Basically, I would like to read data off the card with my laptop without having to go and remove it each time!

I think the only way would be to have a program on the Arduino to read the card, on demand, and send the data via serial (or other means of communication) to a terminal or other PC program.

groundFungus:
have a program on the Arduino to read the card, on demand, and send the data via serial

Sort of opposite of what this guy wants to do.

i saw that. that was the last code i did and now i'm stuck with this one...

Farnaz_201:
i saw that. that was the last code i did and now i'm stuck with this one...

I have no idea what that means.

Farnaz_201:
Basically, I would like to read data off the card with my laptop without having to go and remove it each time!

The dumpfile programme in the SD section of the examples in the IDE does this. Any terminal programme on PC, phone, or tablet can be used to download and save the data. You can download several files to one terminal file. The separations are obvious, and you can sort them out at liesure. You don't need a second USB, indeed you may not need any USB, you can do it via Bluetooth.

So,it is possible to use SPI to make connection between SD card and Arduino serial, right? the project i'm working on demands the last year's data stored in SD card and show it on PC without ejecting the SD card from shield data logger... it sound complicated to me.. any ideas?

Farnaz_201:
So,it is possible to use SPI to make connection between SD card and Arduino serial, right? the project i'm working on demands the last year's data stored in SD card and show it on PC without ejecting the SD card from shield data logger... it sound complicated to me.. any ideas?

Although this is a different question from the one you started your previous thread with, you already have changed the subject of that thread to be the same, so this is another cross-post, which I have now merged.

Repeated cross posting will result in a suspension from the forum.

As for your question, you would connect the SD card to the Arduino as usual, via the SPI bus, read the data from the card, then print it to Serial. As Nick_Pyner already explained to you, the SD library comes with an example sketch that does exactly this. You'll find it at File > Examples > SD > DumpFile in the Arduino IDE. It's not complicated at all. I think you are making it more complicated than necessary for yourself with this idea of a "connection". There is a connection, but it's the microcontroller on the Arduino board that is the "connector".

Farnaz_201:
So,it is possible to use SPI to make connection between SD card and Arduino serial, right?

No, not exactly, although it might look like that.

Do an spi read, then a serial write of what you read.

Here's the appropriate line from DumpFile mentioned 1 and 3 posts back:

Serial.write(dataFile.read());

I guess that's a "connection" of sorts?

pert:
Although this is a different question from the one you started your previous thread with, you already have changed the subject of that thread to be the same, so this is another cross-post, which I have now merged.

Repeated cross posting will result in a suspension from the forum.

As for your question, you would connect the SD card to the Arduino as usual, via the SPI bus, read the data from the card, then print it to Serial. As Nick_Pyner already explained to you, the SD library comes with an example sketch that does exactly this. You'll find it at File > Examples > SD > DumpFile in the Arduino IDE. It's not complicated at all. I think you are making it more complicated than necessary for yourself with this idea of a "connection". There is a connection, but it's the microcontroller on the Arduino board that is the "connector".

thank you so much, you are right I made it hard for myself.. so here is another question... can i save data for along time in my SD card? for example for one year?

12Stepper:
No, not exactly, although it might look like that.

Do an spi read, then a serial write of what you read.

Here's the appropriate line from DumpFile mentioned 1 and 3 posts back:

Serial.write(dataFile.read());

I guess that's a "connection" of sorts?

yes, thank you. It worked..

Farnaz_201:
can i save data for along time in my SD card? for example for one year?

You will need to do a tiny bit of maths there, given the capacity of your SD card, the number of updates per year and the size of an update...

Farnaz_201:
can i save data for along time in my SD card? for example for one year?

An extremely dumb question, but the answer is: very likely.

Nick_Pyner:
An extremely dumb question

That one of your "pearls of wisdom"?