{"product_id":"breakout-board-for-microsd-card","title":"Breakout Board for microSD Card","description":"\u003cp\u003eThis simple board breaks out the pins of a microSD card connector to a 0.1″ pin spacing that is compatible with standard perfboards, solderless breadboards, and 0.1\" connectors.\u003c\/p\u003e\n\u003cp\u003eMicroSD memory cards (originally known as TransFlash) provide a compact and inexpensive way to add gigabytes of non-volatile storage to a project. All SD cards support communication over the SPI (Serial Peripheral Interface) bus, making it straightforward to interface one of these cards with an SPI-capable microcontroller.\u003c\/p\u003e\n\u003cp\u003eThis carrier board makes it easy to connect to a microSD card by breaking out all of the contacts from a microSD card socket into two rows of 0.1″-spaced pins. The board measures only 0.8″ × 0.7″, and a set of breakaway 0.1″ male header strips (one 1×7 and one 1×4) is included, which can be soldered in to use the board with breadboards, perfboards, or 0.1″ female connectors. (The headers might ship as a single 1×11 piece that can be broken in two).\u003c\/p\u003e\n\u003ch2\u003eUsing the breakout board\u003c\/h2\u003e\n\u003cp\u003eSince many microcontrollers have built-in SPI interfaces, most hobbyist projects communicate with Secure Digital cards in SPI bus mode. (The alternative SD bus mode is proprietary, and a license from the SD Association is required for access to the full specifications.) Where applicable, the pins on this board are labeled according to their functions in SPI mode.\u003c\/p\u003e\n\u003cp\u003eAll of the microSD card’s power pins and all of the signal pins necessary to interface with the card through SPI are available along the right side of the board. The left side of the board exposes duplicate power pins, along with two additional signal lines (DAT1 and DAT2) that are not needed for SPI communication but are used in 4-bit SD bus mode. The DAT1 pin also serves as an interrupt pin (IRQ) in SDIO devices. (Note that if you are using this module in a breadboard, you might want to solder header pins into both sides of the board for added stability even if you only plan to use the SPI pins.)\u003c\/p\u003e\n\u003cp\u003eThe following tables describe the function of each pin on the breakout board in SPI and SD mode:\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth colspan=\"3\"\u003eDescription\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eGND\u003cbr\u003e(VSS)\u003c\/td\u003e\n\u003ctd colspan=\"3\"\u003ePower and logic ground\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eVDD\u003c\/td\u003e\n\u003ctd colspan=\"3\"\u003eSupply voltage (2.7 V to 3.6 V for standard microSD cards)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCD\u003c\/td\u003e\n\u003ctd colspan=\"3\"\u003eCard detect. When a card is inserted, this pin is floating; when no card is inserted, it is shorted to ground. A pull-up resistor can be used to pull the line high when a card is present.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth colspan=\"2\"\u003eSPI mode\u003c\/th\u003e\n\u003cth colspan=\"2\"\u003eSD mode\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDI\u003c\/td\u003e\n\u003ctd\u003eData in (MOSI)\u003c\/td\u003e\n\u003ctd\u003eCMD\u003c\/td\u003e\n\u003ctd\u003eCommand\/response\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDO\u003c\/td\u003e\n\u003ctd\u003eData out (MISO)\u003c\/td\u003e\n\u003ctd\u003eDAT0\u003c\/td\u003e\n\u003ctd\u003eData (bit 0)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSCLK\u003c\/td\u003e\n\u003ctd\u003eClock\u003c\/td\u003e\n\u003ctd\u003eCLK\u003c\/td\u003e\n\u003ctd\u003eClock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCS\u003c\/td\u003e\n\u003ctd\u003eChip select (active low)\u003c\/td\u003e\n\u003ctd\u003eDAT3\u003c\/td\u003e\n\u003ctd\u003eData (bit 3)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e—\u003cbr\u003eIRQ\u003c\/td\u003e\n\u003ctd\u003eReserved\u003cbr\u003eInterrupt (active low; SDIO devices only)\u003c\/td\u003e\n\u003ctd\u003eDAT1\u003cbr\u003eIRQ\u003c\/td\u003e\n\u003ctd\u003eData (bit 1)\u003cbr\u003eInterrupt (active low; SDIO devices only)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e—\u003c\/td\u003e\n\u003ctd\u003eReserved\u003c\/td\u003e\n\u003ctd\u003eDAT2\u003c\/td\u003e\n\u003ctd\u003eData (bit 2)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eWarning:\u003c\/strong\u003e Standard microSD cards use 3.3 V logic level signals, so level shifters or voltage dividers are required when connecting one to a 5 V system.\u003c\/p\u003e\n\u003ch2\u003eCommunicating with a microSD card\u003c\/h2\u003e\n\u003cp\u003eThe SD Association publishes a set of \u003ca href=\"https:\/\/www.sdcard.org\/downloads\/pls\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003esimplified specifications\u003c\/a\u003e for SD cards containing information on interfacing with them. However, there are a number of ways to get started without understanding the specifications or writing your own code from scratch, since many microcontroller development platforms provide libraries for communicating with SD cards. For example:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eThe \u003ca href=\"http:\/\/arduino.cc\/en\/Reference\/SD\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cstrong\u003eSD library\u003c\/strong\u003e\u003c\/a\u003e for \u003ca href=\"\/en-eu\/collections\/arduino\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eArduino\u003c\/a\u003e provides functions for accessing files and directories on an SD card.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cli\u003eThe \u003ca href=\"https:\/\/mbed.org\/cookbook\/SD-Card-File-System\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cstrong\u003eSD Card File System library\u003c\/strong\u003e\u003c\/a\u003e for mbed allows similar filesystem access.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Pololu","offers":[{"title":"Default Title","offer_id":31488692518995,"sku":"POL-2597","price":3.95,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/0J5759.1200.jpg?v=1580988240","url":"https:\/\/shop.pimoroni.com\/en-eu\/products\/breakout-board-for-microsd-card","provider":"Pimoroni Ltd","version":"1.0","type":"link"}