Pages: 1 ... 9 10 [11]   Go Down
Author Topic: SD/MMC From the ground up  (Read 28632 times)
0 Members and 2 Guests are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 388
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Figured out the problem dont use this library at all lol.. that is if you are using a mega

used a different library working fine now.
Care to share a link to the library that works fine with the Mega?
« Last Edit: January 24, 2010, 03:09:31 pm by TBAr » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

just want to say thank you for sirmorris - you've done amazing job!!!  smiley-wink
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a arduino duemilanova (5 volt standard stuff), and I bought the seeeduino SD shield (http://www.seeedstudio.com/depot/sd-card-shield-for-arduino-v21-p-492.html?cPath=35).  Was thinking I had been taken for a ride till I found that the last SD card of a whole stack of SD cards, worked (a cheap 2 gig generic SD from microcenter).  The SD micros didn't work, and of course it says that SDHC is not happening.  It is particular.

Anyway. in the demo code, change pin 8 to pin 9, and it will work with either switch setting (3.3v or pin 9), that is if you:
  • make sure you have formatted the card to fat16
  • place file on the card called "data.log" (it's what the author uses)
  • make sure you open that empty file and add a single digit or character
  • and find the right SD card...
Then just type 'W' or 'T' and it actually works!  Although at a glacial pace.  Does anyone have any clues on speeding this up?  And, I too am interested in the Arduino Mega experiences (your post, TABr is not terribly helpful).

By the way, this shield covers up the VCC and all gnds.  You can still get to a +5 and a gnd using the ICSP pinout.  Pin 2 is +5v and pin 6 is ground (1 is marked).

1*  *2
  *  *
  *  *6
« Last Edit: May 30, 2010, 01:01:13 pm by itsthemedication » Logged

Greenwood, Indiana
Offline Offline
God Member
*****
Karma: 0
Posts: 508
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.scienceprog.com/sd-mmc-card-fits-in-floppy-connector/
Logged

If it was designed by man it can be repaired by man.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all... I'm running into exactly the same problem that BLP had in Reply #16... I can't get the library to work with the Sparkfun SCP1000 pressure sensor via SPI.  Again, as with BLP, the SCP1000 code works fine if I comment out the FAT stuff, and the FAT stuff works weather or not I comment out the SCP1000 code (but the sensor returns all zeros).   I wrote my own implementation so unless he and I made the exact same mistake I'm thinking this is something in the FAT library.  

I'm wondering if indeed the SD code is responding even when the SD CS_ is HIGH.  Can anyone suggest any troubleshooting ideas?  (I *don't* have a logic analyzer).  SoftSPI is not an option ... Thanks in advance!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hate to reply to my own post but adding intrigue... found some relevant info over on the sparkfun forums... seems others have had problems interfacing SCP1000 with other slaves on an SPI bus.  

http://forum.sparkfun.com/viewtopic.php?f=14&t=19485&start=0

Can anyone suggest any mitigation strategies that don't involved software SPI?  I'm going to comb through the SD library and look for dummy reads/writes and try changing their values - I know there is one in SDCard:Init... any other suggestions?  Thanks in advance!

Logged

China, Suzhou
Offline Offline
Newbie
*
Karma: 0
Posts: 27
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks sirmorris!!!
Finally, I made my arduino SD board successfully. It's so great and I can use it to record the data from motion sensor~~ 8-)

Thanks to all of you~~~

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry it took so long to get back the library that fixed all of my troubles was....

http://code.google.com/p/fat16lib/

:-) Good luck
Logged

Pages: 1 ... 9 10 [11]   Go Up
Jump to: