New Tutorial: SD cards
Nick McClick
Posts: 1,003
Just put up a new tutorial on using SD cards with the Prop - you can read it here.
While I've written the previous tutorials, this one was contributed by OBC (Jeff Ledger). The focus is on data logging, but the same principles apply however you use fsrw.
I hope you find it useful. If you have any questions / comments or spot any errors, let me know!
While I've written the previous tutorials, this one was contributed by OBC (Jeff Ledger). The focus is on data logging, but the same principles apply however you use fsrw.
I hope you find it useful. If you have any questions / comments or spot any errors, let me know!
Comments
Clean, clear and right to the point!
KK
Bill
I take no credit - this is Jeff's work. I did a little light copyediting, but that was about it.
I have been working on a Control flow tutorial for a few weeks to fit between the blinky light tutorial & the Object tutorial, but I'm still not done. It's turning into a novel, but the topic is pretty core to programming & I figure it's worth the extended treatment.
However, I don't have a Gadget Gangster board now, so I temporarily used the bent headers as the SD card socket which I felt that it didn't work (well, tested, and didn't) so I am now purchasing some SD card slots too.
By the way, any pinout diagrams for the SD card and the connections too?
Thanks.
@Nick, Could you make the sources available or shall I post it here?
@John, Sorry about that. I should have included that information
in the document. You can find it here on page 5 of the Propeller Cookbook.
OBC
No worries OBC. The SD card test just works great on the Kingston 2GB SD-card w/FAT32 inside! I had to temporarily use the self-fabricated bent header pins bonded with some crazy glue as a SD-card connector while waiting for the real ones to arrive.
What else I could do with it? Hmm... the possibilities of a music box? Data logger? MP3 Player? Wow! :idea:
Jonathan
Easy to Understand.
Nice job on the tutorial. It gave me the kick I needed to get started with the SD card. The examples were easy to understand, and they worked great.
@anyone:
I have a question though. The last example in the tutorial demonstrates data logging. It writes text strings to the SD card in a format that can be opened later with a spreadsheet set up to read comma delimited files. Although it works fine as presented, I don't see how this would be useful because in practice the data would be stored as variables with values obtained from sensors, rather than as text strings. Does anyone know how to mod the example program so that variables can be written to the SD card? Or, am I missing something?
Lev
Am I missing something here? Is this conceptual only or is there a link to relevant downloads to test the examples within this tutorial so we can follow along on the same page?
The download given in the tutorial does not match content.
$0
I do have one question though. By writing in FAT16 mode rather than pure SPI interface, does that assure that the SDcards will be long life?
This seems to be a key issue that should always be mentioned in an introduction. I have been rather wary of playing with SDcards because their useful life can be shortened substantially by the wrong software code.
However, I still can't get it to play wave files. Any tutorials on that as well? It'll make an awesome music player too!
What thread? Did you mean this one?
http://forums.parallax.com/showpost.php?p=921863&postcount=2
... Tim
-- http://forums.parallax.com/showthread.php?t=123900