so, I looked around on the internet for an SD-card slot thing, and I noticed they were all quite expensive
The sparkfun breakout board does not the level converter chip that the adafruit shield has. You can wire your own chip & resistors in between the sparkfun breakout board and your arduino to get the same reliable results.
Using this with the MEGA 2560, without changing the pinout. Using SDFATLib20101010 Line 42 of Sd2Card.h Change to: #define MEGASOFTSPI 1 Line 74 of Sd2Card.h Change to: uint8t const SDCHIPSELECTPIN = 8;This will enable software SPI and be somewhat slower, but still plenty fast for most applications.
can someone explain how to modify this data
#define MEGA_SOFT_SPI 1
You can enable MEGA_SOFT_SPI for the Arduino SD library. The Arduino SD library is just a wrapper for an old version of SdFat. It has a number of bugs that have been fixed in newer versions of SdFat but they don't seem to bother most people.Edit the file Arduino/libraries/SD/utility/Sd2Card.h and change line 42 to this:Code:#define MEGA_SOFT_SPI 1You don't need to edit the chip select pin. Just set the chip select in the begin call like this:Code: SD.begin(CS_PIN);
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16