Forum >SD Card module problem
SD Card module problem

I connected my SD module http://www.dfrobot.com/index.php?route=product/product&filter_name=sd%20card&product_id=163 on an Arduino Mega 2560 like the schematic on the doc (pins 10-13). I give power from the 5v power line of the arduino. The power led on the module is red. I load the example from the wiki, open the console, type a character and after a second I get this error:
[quote]Type any character to start
Can't access SD card. Do not reformat.
SD errorCode: 1
No card or SPI problem?[/quote]
I have a 2Gb SD card formatted on a FAT filesystem.
Any ideas why?
Thanks!
[quote]Type any character to start
Can't access SD card. Do not reformat.
SD errorCode: 1
No card or SPI problem?[/quote]
I have a 2Gb SD card formatted on a FAT filesystem.
Any ideas why?
Thanks!
2011-12-07 02:11:32 No need feeling like an idiot, we've all been there. I ask silly questions on a daily basis. Then, I hope to learn from them.
I do recommend doing some simple searches on the forum before posting, there might be similar discussions which might help to resolve your problem ;)
happy hacking!
Hector
I do recommend doing some simple searches on the forum before posting, there might be similar discussions which might help to resolve your problem ;)
happy hacking!

2011-12-06 19:30:23 Hector,
Thanks for the reply! I feel an idiot now :) I will give it a go and bug you if I have another problem!
stratosg
Thanks for the reply! I feel an idiot now :) I will give it a go and bug you if I have another problem!

2011-12-06 18:52:22 Hi,
The sample code is for regular Arduino. The SPI Pins on the MEGA are different: [color=rgb(85, 85, 85)][font=Georgia][size=14px]SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS).[/size][/font][/color]
You can read more about the MEGA here:[url=http://www.arduino.cc/en/Main/ArduinoBoardMega]http://www.arduino.cc/en/Main/ArduinoBoardMega[/url]
Hector
The sample code is for regular Arduino. The SPI Pins on the MEGA are different: [color=rgb(85, 85, 85)][font=Georgia][size=14px]SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS).[/size][/font][/color]
You can read more about the MEGA here:[url=http://www.arduino.cc/en/Main/ArduinoBoardMega]http://www.arduino.cc/en/Main/ArduinoBoardMega[/url]
