Copying Images from laptop to SD Card Using Arduino Mega2560

Hello All,

I would like to know how to copy images from laptop to an SD card . I have connected the SD card using Arduino Mega 2560 and used the Sparkfun SD shield . I ahve initialized the card and also written and read from it . I am not sure how to copy a simple .bmp image into the card from a laptop file . Could anyone please guideme thru it?

Vidya

You need some application on the PC that can open the file, and stream it, via the serial port, to the Mega. The Mega then just copies the data to the SD card.

Can't your PC write directly to the SD card?

Yes I can !!! But I want to do it this way because the link sprite camera that I got to take pictures is not working .I am right now doing a project for my school.I want to transfer images using CC1101 transceiver . But because the camera is not working I am stuck . I am hoping i can just copy some images into the SD card using Arduino and transfer the images hence emulating the actual requirement. What application are talking to open the file in PC ? I know how to open the file and write test to it . Bu i need to know how to copy images /

What application are talking to open the file in PC ?

The one you need to write.

Hello everyone,

I am trying to connect the arduino Mega2560 with the sparkfun microsd shield.

After making the proper soldering i add the shield to the arduino but i do not manage to run CardInfo.

I made the following changes in the default code:

const int chipSelect = 8;

   pinMode(53, OUTPUT);     // change this to 53 on a mega

I receive the same message continously, Init failed and the 3 possible sollutions

I use this with my Mega 2560 and sd card: const int chipSelect = 53;