recommended SD Card reader for FAT32?
Posted: Sat Sep 28, 2013 10:12 am
Hi,
I got an SD Card reader module a while ago and just now got around to play with it. Sourced an old SanDisk 512MB SD card and formatted it to FAT16.
There was basically no documentation for the card reader module (this one: http://www.elecfreaks.com/store/sdmmc-c ... p-448.html ) and all it says on their website is "The module can work with 5V power supply" and "Note:If you use 3.3V power supply, please switch to 3.3V side" but what on earth is "3.3V side" ? there are no sides to this reader.
Anyway, it isn't working with my PIC18F4550 no matter what I do. I have tried 5V logic level, 3.3V logic level, hardware SPI, software SPI, set prescaler to 64 (instead of 16), tried all sorts of different clock speeds on the PIC itself.
Granted I might have binned it by using 5V logic levels to begin with. All I get is 0xFF when I try to initialize the FAT component. If I insert the card while the program is running it resets the PIC and again display "Waiting for Card" on the LCD (I used the code from the FAT example files) In the loop where it waits for init_FAT to reply 0x00 the LCD displays the retval value instead of "Waiting for Card" so that is how I know it is resetting the PIC when the card is inserted into the reader.
So, what SD Card reader do you recommend I buy? The objective is to find a good reader that works with any and all SD cards. The bigger the better. It will ultimately end up paired to a dsPIC33EP for data logging of many many data sources so speed and capacity is important. One data source will provide GPS data at 10Hz.
I hope to be able to stream data to an SD card using a file format like CSV or similar to simplify post processing of the data. Any thoughts on that?
I appreciate any and all help I can get.
/Daniel
I got an SD Card reader module a while ago and just now got around to play with it. Sourced an old SanDisk 512MB SD card and formatted it to FAT16.
There was basically no documentation for the card reader module (this one: http://www.elecfreaks.com/store/sdmmc-c ... p-448.html ) and all it says on their website is "The module can work with 5V power supply" and "Note:If you use 3.3V power supply, please switch to 3.3V side" but what on earth is "3.3V side" ? there are no sides to this reader.
Anyway, it isn't working with my PIC18F4550 no matter what I do. I have tried 5V logic level, 3.3V logic level, hardware SPI, software SPI, set prescaler to 64 (instead of 16), tried all sorts of different clock speeds on the PIC itself.
Granted I might have binned it by using 5V logic levels to begin with. All I get is 0xFF when I try to initialize the FAT component. If I insert the card while the program is running it resets the PIC and again display "Waiting for Card" on the LCD (I used the code from the FAT example files) In the loop where it waits for init_FAT to reply 0x00 the LCD displays the retval value instead of "Waiting for Card" so that is how I know it is resetting the PIC when the card is inserted into the reader.
So, what SD Card reader do you recommend I buy? The objective is to find a good reader that works with any and all SD cards. The bigger the better. It will ultimately end up paired to a dsPIC33EP for data logging of many many data sources so speed and capacity is important. One data source will provide GPS data at 10Hz.
I hope to be able to stream data to an SD card using a file format like CSV or similar to simplify post processing of the data. Any thoughts on that?
I appreciate any and all help I can get.
/Daniel