SD card with arduino mega

I have tried to use an SD card with an Ardino and had no luck, whenever I connected my card to the holder the board shorted out (Most likely a wiring problem).

I cannot find any clear instructions of how to use an SD card (preferably SDHC) with an Arduino mega (I am using a DFRduino, it is an exact clone).

For the project I am working on I am already using pins 0 to 12, 14 to 17 and 22 to 28, I hope this isn't a problem and I may be able to move them if necessary.

Please help, thanks.

whenever I connected my card to the holder the board shorted out

Yes first off you have to fix the wiring.

Next what code are you trying to use?

and had no luck

It's not a gamble you know, do it right and it will work.

Does it really have to be an SD card?

There are neat solutions allowing you to plug a USB thumb-drive (memory stick) into an Arduino. They take care of all the nasty USB AND filing system stuff.... think "Ascii command driven external storage". Search with Google on "VDIP-1 USB Arduino" for lots more information. About $25. Supplier: www.vinculum.com/prd_vdip1.html

There are neat solutions allowing you to plug a USB thumb-drive (memory stick) into an Arduino. They take care of all the nasty USB AND filing system stuff.... think "Ascii command driven external storage". Search with Google on "VDIP-1 USB Arduino"

Does this work via serial with just tx and rx (and power) connected to the board and also are there limits to the flash drive capacity and filesystem etc?

Does anybody know if the VDIP 2 works easily with arduino?
(if I have to have at least one and the secend is cheap then why not have 2 ;))

Another solution is our product: Rogue Robotics uMMC.

Here's how to hook it up to an Arduino Mega.

http://www.roguerobotics.com/wikidocs/code/ummc_on_an_arduino_mega

You connect only TX and RX and power. The uMMC does the whole smash - 1MB up to 32GB SDHC.

You can get it from RobotShop (and others).

Just an option for some people who want to keep it simple.

b

http://uanr.com/sdfloppy/

Use a floppy cable to get a socket and then use the SPI pins and run the card in SPI mode.

http://www.arduino.cc/playground/Learning/SDMMC

There are several shields with card sockets as well. The libelium one looks very nice.

All of the Rogue Robotics solutions are way too expensive. I like the idea of using the VDIP 2 and have found out that it works with fat 12, 16 and 32 but I am not sure if it works with multiple partitions.

I will buy it and use it if I know that it works quite easily with an arduino.

Is there anybody that knows this?