Do you have a project that needs an interface to mass storage, but don't have the resources to build a breakout board for a standard socket?

In this Instructable, you will learn how to make an SD card socket that plugs right into a breadboard for less than two dollars in parts (depending on how you get them of course). I show you how to use a simple straight pin header and modify it so you can plug in an SD card and attach it directly to a breadboard for data logging and prototyping. This is quick and easy so you don't have to wait for a socket in the mail, or build/buy the SMD breakout board for it either.

Basic soldering skills and common tools are required.

I will cover how to make vertical and right angle sockets. Either 7 or 8 pin should work. 9 pin may require some modifications, I only used 7.

Step 1: Gather tools and materials

You will need:

Soldering Iron, I use 45 watt but this is more than enough
Needlenose pliers
a vise is very useful to keep from burning yourself
and at least 21 pins of straight male breakaway header pins

I got the header pins from my local electronics parts shop. Radioshack doesn't carry them as far as I know, but they can be ordered from various places around the internet for very cheap. It was 2 dollars for 40 pins at my local shop.

Here is the digikey part, it's a bit more that 2 dollars. http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=A26513-40-ND
Same thing from Sparkfun

These are straight male breakaway header pins.

You could theoretically use right angle as well, but I used straight pins.
Had this adapter around and decided to make this header. Turns out I don't need all 9 pins but it's possible.
hey man I really like your tutorial and want to do make this for a project im doing. <br>I have 2 questions tho. <br>1. My project uses an arduino UNO and I need save data on a usb or sd card (I've got both). What library is the best library that will work with your configuration. I know there's an SD card library but will it work your configuration? <br> <br>2. In your tutorial you said the arduino uses SPI mode with 7 pins. <br>I am using an Freetronics Ethernet shield and a Sparkfun SM5100B Cellular Shield &amp; wifly RN-XV module. <br> <br>They use pins: <br>Ethernet + wifly - (13,12,9,10) + (9,8) <br>Sparkfun SM5100B Cellular Shield - either pair (1,2)OR(2,3): Might be able to change this with sofware serial, doubt it tho. <br>+1 pin for keypad <br> <br>Is it possible I can connect the 3Vs to arduino 3V and all grounds to arduino ground (analog OR digital) and somehow change the other pins from 1&amp;2 to 3&amp;4 software serial? <br> <br>1 - Chip Select* ---SOFTWARE SERIAL TO --- 3 <br>2 - Data Input* ----- SOFTWARE SERIAL TO -- 4 <br>3 - Ground --- TO---- Arduino Grnd <br>4 - 3V3 ----TO---- Arduino 3V <br>5 - Clock* --- Leave this as it is --- <br>6 - Ground ----- To --- Arduino Ground <br>7 - Data Output* --- Leave this as it is ---------- <br>
The SD Card really needs all input signals to be level shifted. It is a 3V tolerant device. Use a hex buffer to do this. That can be powered by the 3V supply of the arduino, as can the card. The output (MISO) doesn't need to go through the buffer. <br> <br>As for the pinouts, the SPI pins must be the same as the arduino specifies, which I believe the ethernet shield uses too. BUT SPI is designed to work with multiple devices at the same time using the CS pin (Chip select). You can put this pin wherever you want, just be sure to specify the right one in the library you are using. <br> <br>As for the library, any Arduino SD Library should work. I have heard of problems with cards larger than about 2GB though. Double check with the library first. <br> <br>Good luck. <br> <br>
<p>Hi,</p><p>I need to read an SD card connected to Arduino via USB, I have usb reader to do so, but whenever the card is connected to the arduino, the USB doesn't connect to the PC, can u help me with the pins i need to cheange and how please.</p><p>Thanks</p>
Thank you. I've got a 16Gb and 512Mb i think. I'll check the library out. <br>
Hi I had a look this SD Card shield from cooking, <br>http://www.cooking-hacks.com/index.php/sd-card-shield-v2-1.html <br> <br>I love how it can attached to the In circuit serial programmer. Is there anyway we can implement the SD CARD Breakboard socket to work with ICSP on my arduino UNO? <br> <br>I understand it's a big personally i've never used the in circuit serial programmer.
The ICSP connector just uses the same pins for programming as the SPI bus, which we use to connect to the SD card here. They are connected in both places. You could connect this the same way just by looking at the pinout of the ICSP header.
thanks for all your comments so far. you're a legend
Great!Very Smart
If you solder this to sd to micro sd adapter than you have micro sd socket
Is it possible to use this to read pictures and video from my SD card. The casing for it snapped off and I can't get it to read when trying to insert the internal naked sd board into my pc adapter. I am wondering if this circuit would allow me to read all the contents off of it (pics and videos)?
That sounds like it may be a delicate operation. Depending on the thickness of the raw chip and the condition of the contacts you may be able to connect it with this method. <br> <br>If you don't care about using it afterwards, you might be able to solder to the pins and connect those to a usb card reader. I can't think of any better options.
I already have the chip out. i tried to put it into my card reader with no success. Either I toasted it :( or its not making good contact. Anyway, I could hook up to an Arduino and read off the contents even if slow? <br> <br>
Great! it was really useful to me, since I needed an SD socket and couldn't manage to find one! <br>Also, its real cheap!
great! Thanks for sharing
Thanks! I am learning how to use SD cards and prior to finding this I was just holding the card to some headers in the breadboard but it was introducing a lot of connection problems. This was easy and works perfectly! It makes a surprisingly good fit too.
Nice, now I just have to findout how to send commands and data in SPI mode and I can write data to a nice big storage.<br /> <br /> You would not hapend to know what the protocol to use?<br />
Kudos!<br />
Nice idea!<br />
Thanks! I'm thinking about using this in a prototype that I'm making too (brainstorming right now). As a solution to the pin 7&amp;8 possibly shorting out. you could paint over the unused one, OR&nbsp;since paint will eventually scrap off you could file off the pin altogether. It's just a prototype after all, and you can get new cards for &lt;$10.
Great idea, great Instructable!&nbsp; I just added a comment to my own Instructable (<a href="http://www.instructables.com/id/Digital-Window-Sticker-Arduino-Controlled/" rel="nofollow">http://www.instructables.com/id/Digital-Window-Sticker-Arduino-Controlled/</a>) recommending this as an alternative to the expensive SD Card breakout board I used!
Great! Can I turn it into a USB SD card reader?
I suppose you could pick up a USB driver IC and build an interface around it. I think it would save some trouble to just buy one, but it is however possible. It would probably use the SD mode, and as such, you would need pins on all 9 contacts. Good luck to you if you try this, I'd like to hear how it goes if you do.
I'm not good at electronic anyway. I really like the vertical socket, it's look so COOL!!!
Brilliant and fantastic!
Neat take on a simple project. Is there something more sturdy or ...suited for the backplate (non-data side) I wonder? The pins just seems like they want to be...not pins :D Looks great though!
**Good job on getting tagged on hackaday too!
Thanks for pointing that out, I never expected that. I don't visit hackaday very often, so i might have never seen that. On the subject of the backplate, I've been thinking of a way to use a PCB as the backing, in a more permanent setting. I'll make an update if I ever get around to doing that.
ooh, thats a wonderful idea - bend the header appropriate for a card laying flat against the pcb...then solder header on - I like it. It would take some custom drilling, but wouldn't need anything more than perf board.
Hey, you should check out step 8, new!
Nice one, I think that I am going to try to make a Parallel port to SD card adapter for my Atari ST and IBM PC.
Very nice dude; im gonna use this in my class
cool, what kind of class is it?
Advanced Digital; use of microcontrollers and and memory and stuff like that. I bet my teacher will flip when I whip this out.
use a microSD to SD adapter (comes with all/most micro SD cards) then you can swap cards with no soldering
FWIW a dual-row header works great for this. A couple tricks: I built mine with a dual-row header with roughly equal length pins so one side can grip the card while the other side is still long enough to plug deeply into a breadboard, also I bent the tips of the pins up first, then used a nail that just fit between the rows to make the "lower" bend, finally I slid a metal ruler in between to pry back open the gap so I now have a good - but not too tight - grip on the card. I found 8 or even 9 (x2) pins makes it easier to ensure that pin 7 doesn't get out of alignment. Thanks for bringing to my attention how easy it can be to use SD cards - I finally have a use for the 16MB(!) SD card that came with my camera so many (4) years ago.
Glad you had luck with a double row header. I thought it might be possible, I just didn't have any to try it out with. I might try that 8 and 9 pin adjustment too, sounds better than risking a short. Thanks for the suggestion! And glad you could use the 16MB, thats the same capacity I was using.
Great Stuff, Very MacGyver. Also you got posted to MAKE blog
Thanks! I hear those MacGyver comments a lot.
id just go out and get a cheap sd adapter then solder the pins to it so it would be more sturdy
I'm more of a mechanical than ah, an electronical guy. So could you clarify that you are soldering both rows of two row pins to the single row. It looks that way to me, but I'm not sure. If that is the case, is it a concern that accidental contact with the backside holding/bracing pins could have a tragic influence on the CD card/arduino board? Just asking as a casual observer. Fin A bit of electrical tape folded over the pins or some other type of insulator to cover the backside holding pins could be cheap insurance against stray voltage, etc.
A small tweak would be to solder to a Mini-SD card adapter then you would be able to use it with Mini-SD's without having to solder to them.
This Instructable is an adapter - not soldered. The cards are removable.
You were ahead of me! :-)
<strong>Brilliant in its simplicity!</strong><br/><br/>You are right to hold the pins in a metal vice in step 5, so that the excess heat from the soldering operation can be dissipated, lest the plastic melts into a gloopy mess. (Past, failed experiences have taught me this!)<br/>
totally agree with u there just sucks when u try to desolder a header and then the heat makes the pins fall out...
Very nice I must say! Just curious, but what is this circuit you use it on? I'd love to do this but I don't know what I'd use it for, or how to make it.
I'm using it as storage for a large file for datalogging. The Arduino can log data through the SPI interface with an SD card. I'm very new to this and am a little lost (im making my way through), but there are a bunch of projects with the arduino that use an SD card for mass storage. There's an mp3 player, a GPS that logs position, all sorts of stuff. Mine logs aceelerometer data, and then I can graph it in excel.
Very nice, do you have plans to make one into an Instructable? I'd love to see it.

About This Instructable


179 favorites


More by Kroden: Quick DIY XBOX 360 battery pack Cheap DIY SD card breadboard socket
Add instructable to: