Singapore
Offline
Newbie
Karma: 4
Posts: 25
Arduino rocks
|
 |
« on: January 27, 2011, 09:48:57 pm » |
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
Offline
Brattain Member
Karma: 316
Posts: 35532
Seattle, WA USA
|
 |
« Reply #1 on: January 28, 2011, 11:02:45 am » |
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
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #2 on: February 07, 2011, 04:25:01 pm » |
Sounds easy, but not for a newbee  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
Brattain Member
Karma: 277
Posts: 25526
Solder is electric glue
|
 |
« Reply #3 on: February 09, 2011, 06:19:48 pm » |
Is is possible with a ethetnet shield? No.
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #4 on: February 10, 2011, 01:43:25 am » |
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
Brattain Member
Karma: 277
Posts: 25526
Solder is electric glue
|
 |
« Reply #5 on: February 10, 2011, 02:06:28 pm » |
Does somebody know I know but you don't want to here that either.
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #6 on: February 11, 2011, 06:01:20 am » |
mmm, so the only possibility is to remove the SD card and put in my PC? Thats too bad....
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 277
Posts: 25526
Solder is electric glue
|
 |
« Reply #7 on: February 11, 2011, 12:36:39 pm » |
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
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #8 on: February 16, 2011, 02:40:07 pm » |
http://www.ladyada.net/learn/arduino/ethfiles.htmlIt seems thats it is possible, but i realise i have to learn more first, before i start this project......
|
|
|
|
|
Logged
|
|
|
|
|
Georgina Ontario
Offline
Sr. Member
Karma: 4
Posts: 437
Arduino rocks
|
 |
« Reply #9 on: February 17, 2011, 01:26:31 am » |
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
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #11 on: February 17, 2011, 11:42:05 am » |
That's called TCP/IP, not USB 
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 316
Posts: 35532
Seattle, WA USA
|
 |
« Reply #12 on: February 18, 2011, 09:01:41 pm » |
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
God Member
Karma: 0
Posts: 592
|
 |
« Reply #13 on: February 19, 2011, 01:51:03 am » |
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
|
I'm an electrical engineering student. I designed the USnooBie (V-USB dev kit) which is sold at Seeed Studio 
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 9
|
 |
« Reply #14 on: December 04, 2012, 01:03:05 pm » |
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
|
|
|
|
|
|