Go Down

Topic: Reading microSD card directly from USB serial port (Read 8 times) previous topic - next topic

dania25

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!

Thanks

PaulS

Quote
Is it possible to read a microSD card (on a breakout) through the USB port on the arduino?

From the PC, no. The SD card reader is not a separate piece of hardware that you can connect directly to.

You could program the Arduino to respond to serial commands that direct it to return data from/about the SD card. Then, you'd need to write an application on the PC that could send the relevant commands and react to the returned information.

chocoboy

Sounds easy, but not for a newbee 8)
Is is possible with a ethetnet shield?
I have an Seeeduino stalker and i want to copy the log file from the SD card to my pc once a while.
Does anyone know how i can do this easy?

Grumpy_Mike

Quote
Is is possible with a ethetnet shield?

No.

chocoboy

Thats not what i want to hear, but i have to live whit this fact.

There is also a serial connection on the board. Does somebody know if its possible to dowlaod the lof file on the SD card by using de serial connection?

Grumpy_Mike

Quote
Does somebody know


I know but you don't want to here that either.

chocoboy

mmm, so the only possibility is to remove the SD card and put in my PC?
Thats too bad....

Grumpy_Mike

An SD card uses an SPI interface. You can talk to it with any device that can handle SPI, like the arduino. So the arduino can talk to your card and then use that data for something. Like in the Lady Ada sound shield or in various graphics LCD shields.

However, SPI is not a protocol that the PC talks, things like card readers convert the USB protocol to SPI and back to USB so the PC can make sense of it.

chocoboy

http://www.ladyada.net/learn/arduino/ethfiles.html

It seems thats it is possible, but i realise i have to learn more first, before i start this project......

WillR

There is an example that uses a webserver to allow you to download the files on the SD.

I am using the version 22 compiler. I found this on the first look through the examples and libraries.

I am using the standard Arduino Wiznet Ethernet shield with the micro-SD card. I tested this -- it works fine on my Mega2560.
Just another Hacker

timmos


Quote
Is is possible with a ethetnet shield?

No.



what is this?

http://www.ladyada.net/learn/arduino/ethfiles.html


PaulS

Quote
So the arduino can talk to your card and then use that data for something.

The Arduino can also talk to the serial port. You could develop an application on the PC that would tell the Arduino to spool data from the SD card back to the PC, via the serial port. The PC application would then need to store the data spooled back.

Pretty simple application for the PC and for the Arduino.

frank26080115

Arduino isn't the right tool for this job.

Ask not "can I do this with Arduino", ask "what I need to get this done."

I suggest a Teensy, or a Teensy++, they have built-in USB

http://www.instructables.com/id/Music-Playing-Alarm-Clock/step6/USB-Mass-Storage-with-MicroSD/
Freelance engineer, consultant, contractor. Graduated from UW in 2013.

m_maursund

It wouldn't be possible to connect directly with the sd card trough a separate usb cable hooked onto the sd shield?
Not going trough Arduino, so the sd cards looks just like a normal card connected directly to the pc.

My problems is that I need to make a watertight enclosure and i need access to the sd card files.

Martin

Go Up