How to add an SD card
lardom
Posts: 1,659
Someone please tell me how to begin. I want to add an SD card to my project so that·users can configure the machine to their preference. I want to add a setup mode. I want to use the PST to debug but I will adapt it to an LCD. Should I buy a VGA adapter to start?
Comments
Adding an SD card is easy, even if you do breadboard it but a pcb is preferred. The SD card only requires 4 I/O. The setup mode is entirely up to you how you do it but usually small LCD displays and tiny keypads make it that little bit harder sometimes. SD, LCD, VGA we all know, but I have to scratch my head when someone says PST and the like, they are not common acronyms and perhaps something more generic should be used such as "serial terminal" perhaps.
Some questions then:
1) Why do you want SD, is it so you can remove it? Otherwise EEPROM holds config data fine.
2) Why do you want VGA? What are you going to use it for?
3) Why do you want (just repeating myself)
BTW, it is super easy to put a few resistors on the board for VGA. You don't even need the standard VGA connector as that is easily handled off the board by an adapter lead. This is something I do quite often.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
www.sparkfun.com/commerce/product_info.php?products_id=204
Parallax also sells a kit:
www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/611/Default.aspx?txtSearch=sd+card
and
www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/597/Default.aspx?txtSearch=sd+card
but I can't vouch for those Parallax products because I've never tried them yet.
hope that helps,
Mark
·· The SD card will preserve settings. The user won't even see it.
···Most demo's I've seen use a VGA display. I would adapt it to the Parallax serial terminal because it·doen't require additional hardware.
·· Peter, Are you saying there is a way to store configuration settings without an SD card? How? That would be the best choice.
···How do you·put resistors on the board for VGA. I bought the connectors thinking I would wire them up. But simple is better.
·· ElectricAye, programming the card is my biggest anxiety. I will check out Sparkfun.
www.rayslogic.com/propeller/Programming/SD_Card/SD_Card.htm
Check out the object in the OBEX for working with the SD cards. It's outstanding.
obex.parallax.com/objects/92/
i2cobject.eewr(@variablename,variablename)
I think eewr is one of the methods in there but either way that's what I do. What happens is that EEPROM holds the image for all the spin code and PASM code etc but of course there are the memory addresses which correspond to the variables. By writing to this address in EEPROM as it is the same address mirrored in EEPROM and RAM, you will have updated the contents of the variable so that next time it reboots or powers-up it will automatically load in the updated contents that you last wrote. So you only need to write this sometime maybe right after you update it, the loading back in again is an automatic process.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
Post Edited (Leon) : 3/15/2010 10:41:35 PM GMT
.