I'm attempting to read data from my SD card, but I have strange behavior and can't figure out why this is happening.
I'm using CardInfo from the Arduino example and am trying to read the data from my SD card.
I'm faced with two different problems, but maybe they can be related:
1: If I format my SD card from my Mac (FAT32), if my card is still empty, the program can read my card and output the right information. But if I add data from my Mac to the SD Card, card.init never initialise, and my data are never read (because of the hidden files). If I remove those hidden files, but let only the expected files be, the program never find them, like if my card was still empty. I don't know how to handle this.
2: From my Arduino, if I feed the card from the 3.3 V output, I get the
Card type: SD2 Could not find FAT16/FAT32 partition. Make sure you've formatted the card
It only works on 5 V (but the card type becomes SDHC). So I've tried to feed my card with another 3.3 V/5 V supply (my Arduino is grounded to this supply as well), but this is only working on 5 V. On 3.3 V my card isn't detected. My wires to the SD card are about 15 inch. I don't know if it can affect it drastically, but this is the only 'weird' thing about this circuit. By the way I naively think my 3.3 V supply should handle that.
Here are my materials: - Arduino Duemilanove
- For the SPI wiring I'm using pin 10 for SS.
- Using the Cardinfo from the Arduino library.