FAT32/SDHC library for Wave and other shields

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
adumas
 
Posts: 29
Joined: Mon Mar 16, 2009 6:59 pm

Re: FAT32/SDHC library for Wave and other shields

Post by adumas »

Hi.... I'm currently doing a project using the datalogger and the SDFat library with bitlash... I'm thinking there is an incompatability of the the bitlash library...

So, I was wondering if I could use your SD library instead of the SDFat library?

My need is to read a file on an SD drive and extract the contents from the file...

Is there a quick example for doing the initialization of the sd card and the reading of a file?

I'm using the SdFatRead example and it works fine...

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: FAT32/SDHC library for Wave and other shields

Post by fat16lib »

SdFat was derived from WaveHC so it is not likely to work better with Bitlash. SdFat works in the standard Arduino environment.

You should contact the the author of Bitlash if you have problems using Bitlash with Arduino libraries.

rawore
 
Posts: 1
Joined: Sun Jul 18, 2010 9:26 pm

Re: FAT32/SDHC library for Wave and other shields

Post by rawore »

re: replacement of resistor divider with 74LCX245

I'm seeing surface mount parts (at digikey, for instance) but not a lot of dip parts.

can you suggest a supplier for several chip quantities?

or an equivalent part.

just got a 1.1 kit, and then found this thread.

thanks for any help.

regards
bob

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: FAT32/SDHC library for Wave and other shields

Post by fat16lib »

I have used 74HC4050N and 74AHC125N DIP parts for level shifters. Adafruit uses 74AHC125N for some shields. I use http://www.findchips.com/ to find stock.

AndrewNC
 
Posts: 1
Joined: Sat May 07, 2011 4:43 pm

Re: FAT32/SDHC library for Wave and other shields

Post by AndrewNC »

I discovered an issue with the latest shipping SD cards from adafruit, and found a solution:
http://code.google.com/p/wavehc/issues/detail?id=1

Those "works the first time, then fails" type of issues are always the most fun to track down, but I learned a lot along the way. I wonder if cards that otherwise didn't work at all before will now play nice?

User avatar
miax
 
Posts: 157
Joined: Tue Apr 05, 2011 11:41 am

Re: FAT32/SDHC library for Wave and other shields

Post by miax »

fat16lib,

First let me say THANK YOU for all the time you and code you donate to the community! Your WaveHC library and FatReader/Fat16 libs are Very nice.

I have run into the situation that another user had in which I have a Wave shield and a PN532 break-out board configured on a Mega 2560 with an LCD. It all works Great until I got to the point of actually logging the responses on the RFID reader so that a server can scoup the data via the web at intervals. This time I read and researched before posting, and have noted in this thread that your working on a version of your library that will include write capability...

First question I have is; is that out? Or is it still far-ish in the future?

Secondly - assuming that its not done/soon, what would you recommend I use in the interim as the Smallest SD/Fat library that I can read/write with?

Thanks!!

Kris

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: FAT32/SDHC library for Wave and other shields

Post by fat16lib »

There is a second library, WaveRP, that uses SdFat and can play and record wav files.

It is here http://code.google.com/p/waverp/

There has not been much interest in this library.

Since it uses SdFat, you can write files.

User avatar
miax
 
Posts: 157
Joined: Tue Apr 05, 2011 11:41 am

Re: FAT32/SDHC library for Wave and other shields

Post by miax »

Awesome! Thanks for the link. :D

I'm downloading it now and will work toward integrating it tonight. I'll report back with how it goes.

---Update:

This is a very neat library. :) Just reading through the WaveRP.cpp file has taught me a little more about coding on the Arduino and for that alone I am grateful!

However, the library is rather large (~23k at compile time), and I'm just not good-enough at coding to hack out stuff that I won't use and not break things (hehe).

Unfortunately its too big for my project - I'm drivinging a PN532 NFC board, a ST7656 LCD, the Wave shield, Ethernet shield, a Rotary encoder and a Chrono-dot - which means my memory is already very limited. Using WaveHC, my compile size is 31.4k and that leaves me with about 600 bytes of free ram on the Mega during run-time. So the size of WaveHC is Perfect, but writing to an SD card may be impossible with this rig.

Thanks for the suggestion, it was fun working with it!

Cheers,

Kris

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”