Pages: [1] 2   Go Down
Author Topic: Reading microSD card directly from USB serial port  (Read 7923 times)
0 Members and 1 Guest are viewing this topic.
Singapore
Offline Offline
Newbie
*
Karma: 4
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 644
Posts: 50505
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sounds easy, but not for a newbee smiley-cool
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?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 637
Posts: 34599
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is is possible with a ethetnet shield?
No.
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 637
Posts: 34599
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Does somebody know

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

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 637
Posts: 34599
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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......
Logged

Georgina Ontario
Offline Offline
Sr. Member
****
Karma: 5
Posts: 437
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Just another Hacker

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is is possible with a ethetnet shield?
No.


what is this?

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

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's called TCP/IP, not USB  smiley-wink
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 644
Posts: 50505
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 593
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
Logged

Freelance engineer, consultant, contractor. Graduated from UW in 2013.

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1] 2   Go Up
Jump to: