Shop OBEX P1 Docs P2 Docs Learn Events
SD Card Adapter — Parallax Forums

SD Card Adapter

VaatiVaati Posts: 712
edited 2009-06-19 04:28 in General Discussion
I have an SD card socket, and I want to make an SD card module.... Does anyone have·a pinout of the card slot?· All the ones I've seen don't have all the pins shown, just the ones that are connected....

Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!

Post Edited (Vaati) : 6/19/2009 4:04:56 AM GMT
«1

Comments

  • James LongJames Long Posts: 1,181
    edited 2009-05-30 00:48
    Vaati,

    Go to spark fun (www.sparkfun.com) and they sell a sd card breakout board which has the needed connections. They also show the schematic on their site.

    James L

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    James L
    Partner/Designer

    Lil Brother SMT Assembly Services

    Please note: Due to economic conditions the light at the end of the tunnel will be turned off until further notice. Thanks for your understanding.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-05-30 01:13
    Check the Propeller Cookbook on this page:
    www.warrantyvoid.us/tiki-index.php?page=Tutorial

    Is has the reference you need to get your own SD connection running with what
    you have. Based on what I saw at the Library, you'll be up and running tonight.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • PhilldapillPhilldapill Posts: 1,283
    edited 2009-05-30 01:26
    If all else fails, I've got a PCB that should fit. The only needed pins are out front.
  • VaatiVaati Posts: 712
    edited 2009-05-30 01:28
    They don't have a pinout of the card slot itself, though.... That's what I really need....

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-05-30 01:57
    The Cookbook has both a pinout of the card itself and the socket you have.
    You *should* be in business. ?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • PhilldapillPhilldapill Posts: 1,283
    edited 2009-05-30 02:40
    Vaati, what are you trying to do? Are you trying to make our own SD Card Socket adapter board? Like OBC said, his cookbook has the pinout of an SD Card, and shows what pins you need for what purposes. MOST SD Sockets pull the pins straight off of the SD Card, so you should be able to figure out which pin on the SD Card goes to what pad on the socket fairly easily.
  • VaatiVaati Posts: 712
    edited 2009-05-30 03:21
    OBC-- You read my mind! I found the diagram I needed within moments on your site!! Sadly, I am RE-ing on my palmpilot and it's almost midnight, so I don't think I should whip out my soldering iron just right now. smile.gif I'll be able to get that down on a Gadget Gangster halfboard and include it in a project.

    Thanks for the help and links!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-05-30 04:30
    Well, I was just wondering.... I am indeed trying to get all the parts on the pcb tonight, or as I should say, this morning, and I want to make my SD card connector a bit fancy. How would I hook up Tx/Rx LED(s)? A bi-color would look professional, but I would still need a schematic....

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • PhilldapillPhilldapill Posts: 1,283
    edited 2009-05-30 05:25
    There wouldn't really be any purpose to a TX/RX LED pair. There are not distinct TX and RX lines. You might try an LED indicator on the Chip Select(CS) line. This way, you might be able to see when "something" is going on with the card.

    The SD Card interface isn't like the Prop Plug interface at all, which I think is what you may have been thinking about.

    You COULD, however, put an LED on the "Card Inserted" switch/tab. This way, the LED lights when a Card is properly inserted.
  • VaatiVaati Posts: 712
    edited 2009-05-30 05:32
    Okay, could you post a schematic for the CS line LED? That sounds like what I have in mind....

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • SRLMSRLM Posts: 5,045
    edited 2009-05-30 06:04
    It should just be an LED and a resistor (as high as you can get to limit current drain).
  • VaatiVaati Posts: 712
    edited 2009-05-30 16:48
    Uhhhhh.... So, where do I connect the LED and resistor? I figured I'd need both of those, but I don't know how to connect them...

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • PhilldapillPhilldapill Posts: 1,283
    edited 2009-05-30 18:41
    Vaati, this should help clear things up. This is just a simple diagram I made in Eagle with one of my SD Card Footprints.
  • VaatiVaati Posts: 712
    edited 2009-05-30 18:45
    Thanks! I will be sure to examine that to get my project correct.

    So, how would I connect an LED that lights up when data is being transmitted to and from the SD card? I know I need an LED and resistor, but a schematic, picture, or some other graphic is just what I need....

    Thanks again.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-05-31 02:02
    Ah.... I am trying to get this project done tonight, so if anyone knows whether it is indeed possible to have any sort of indicator LED with an SD card, please post ASAP....

    Thanks

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • SRLMSRLM Posts: 5,045
    edited 2009-05-31 04:04
    Why not just connect the resistor/LED to the clk line? Since the Propeller is sourcing it I'd think is should be fine as long as the LED doesn't draw too much current.
  • VaatiVaati Posts: 712
    edited 2009-05-31 12:40
    So, what value should I put for the resistor? You said that it should be as high as possible, and I have a 10M.....

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • PhilldapillPhilldapill Posts: 1,283
    edited 2009-05-31 15:05
    Vaati, if your resistor is TOO high, the LED won't even turn on... Too low, and you'll burn out your LED and maybe your propeller. A 1k resistor should be just fine. The LED won't be super bright, but should light up. If it's too dim, try a 680 ohm.
  • SRLMSRLM Posts: 5,045
    edited 2009-05-31 15:33
    This is the perfect chance to play around with breadboarding. Try resistors (from high to low) until it gets as bright as you think is necessary. Just be sure not to go too high, or you'll burn out the LED. Also, you should try it from VDD to VSS, not an I/O pin.
  • VaatiVaati Posts: 712
    edited 2009-05-31 15:37
    One last note-- I know that in all of the schematics, it shows the use of 10k resistors. Strangely, I ran out of 10k's!! I have a lot of 100k's... Could I use those as pull-up/down resistors instead?

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-05-31 15:59
    Hmmm... What if I had the resistor/LED connected to the data in? Would that make it light up when data is being transmitted to the SD?

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • SRLMSRLM Posts: 5,045
    edited 2009-05-31 20:06
    You could probably put one on each line that the Propeller sources, but I'd avoid putting it on any of the lines from the SD card. My guess is that it can't source a whole lot of current.

    BTW, this is a good chance to experiment. Try something, see if it works. Let stuff blow up and learn from it.
  • VaatiVaati Posts: 712
    edited 2009-06-18 16:02
    Wait-- I just found this:

    http://www.kingmax.com/material/download/3/sd.pdf

    There's a schematic on page eight, and I was wondering what those caps are for. Does anyone know? Also, would that circuit for the prop?


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-18 22:53
    WOOHOO!! It's connected!! I ran PropDOS on my demoboard with the SD card socket soldered to a circuit board and connected to a breadboard via jumper wires that go through the circuit board holes and connect to the breadboard, making the SD card socket into a sort of deranged breakout board.

    I just left the keyboard unplugged when I ran PropDOS, so after connecting with the brand new SD card, it would abort so as to prevent what could occur when it wants to open files when there are none to be opened.

    Well, I am going to make my deranged SD breakout board into a proper module tonight, which means I have about... 2 hours. Could someone PLEASE tell me how to have an LED that goes on when power is given to the SD card on the proper pins (Vdd, Vss1, Vss2) and when the SD card is in the slot. i.e.; if either power or the card is removed, the LED would go off.

    Any ideas, documents, .pdfs, etc that would show/explain how to do that...?



    Thanks for a place to put my ideas on paper, or rather, a url. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • mikedivmikediv Posts: 825
    edited 2009-06-18 23:24
    Vaati I tried to make a homemade SD card for my proto board following the diagram in the cookbook but it shows you to use P0-P4 for the SD card connect
    but when I run Femtobasic nothing , I have the card formatted and everything but then I looked in the Femtobasic PDF and it states to use P8-P11 for the prop proto board does anyone know what gives?? What pins from the prop should be connected to the SD card?
    If you are using the Parallax Prop Proto board ???
    Thanks
  • VaatiVaati Posts: 712
    edited 2009-06-18 23:37
    Mikediv, did you change the pins that the SD card is on in the FemtoBasic program? I would check to see that they correspond with the pins of the SD card.

    Well, you will be able to buy my little SD Card Adapter very soon-- perhaps by Teusday. I figured out how to connect the Card Insterted LED: just put the SD card and the LED in SERIES!! I put *everything* in parallel so there isn't any drop in voltage. I actually had to ask my older brother, who knows only what I have told him about electronics and circuits. smile.gif

    I will be putting a link to my SD Card Adapter in my signature by Monday, and it will hopefully be up on Instructables by then as well.


    Thanks for the forum space. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • VaatiVaati Posts: 712
    edited 2009-06-19 04:01
    Okay, I got it about halfway done.· Here are some pictures of the setup and how it fits on the demo board.· It's really awesome--the pins don't stick out enough for the board to lie vertically on the breadboard, but it can fit perfectly in the slot.

    So, could you give some feedback on the outlook on this project?· Will it sell?· Will you buy one?? (no pressure smurf.gif)


    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
    3264 x 2448 - 1M
    3264 x 2448 - 2M
    3264 x 2448 - 1M
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-19 04:06
    will people buy? depends on price. ucontroler.com and propmodule.com both have sd or usd adapters for $15 or less.

    Very clean looking. Pretty big.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.

    Post Edited (mctrivia) : 6/19/2009 4:11:44 AM GMT
  • VaatiVaati Posts: 712
    edited 2009-06-19 04:08
    Well, the price is forecasted to be a meager $9 to $12! That's a very good price for an SD Card Adapter that includes an LED for card inserted...

    I don't think even ucontroller could get their price that low... smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • mctriviamctrivia Posts: 3,772
    edited 2009-06-19 04:14
    yes it is a very good price. I can only compete as full system. $34 for prop, crystal, eeprom, uSD card reader.

    I am sure you will find buyers.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are now in stock. Only $30. PCB available for $5

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.

    Post Edited (mctrivia) : 6/19/2009 4:21:13 AM GMT
Sign In or Register to comment.