The Adafruit SDIO microSD Breakout is a versatile and compact breakout board designed for interfacing microSD cards with microcontrollers and other digital devices using the SD Input/Output (SDIO) protocol. This breakout board is particularly useful for applications requiring high-speed data logging, multimedia storage, or extending the storage capabilities of a device.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | 3V3 | 3.3V power supply input |
3 | CLK | Clock signal for SDIO communication |
4 | CMD | Command line for SDIO communication |
5 | DAT0 | Data line 0 for SDIO communication |
6 | DAT1 | Data line 1 for SDIO communication (optional) |
7 | DAT2 | Data line 2 for SDIO communication (optional) |
8 | DAT3 | Data line 3 for SDIO communication (optional) |
9 | CD | Card Detect (optional use) |
#include <SPI.h>
#include <SD.h>
// Pin configuration for the Adafruit SDIO microSD Breakout
const int chipSelect = 10; // Chip select pin for the SD card
void setup() {
Serial.begin(9600);
while (!Serial) {
; // Wait for serial port to connect.
}
Serial.print("Initializing SD card...");
// Note: The following line is for compatibility with default SPI pins
if (!SD.begin(chipSelect)) {
Serial.println("initialization failed!");
return;
}
Serial.println("initialization done.");
// Rest of the setup code
}
void loop() {
// Main code to read/write from/to the SD card
}
Note: This example assumes that the SD library is compatible with the Adafruit SDIO microSD Breakout and that the breakout board is wired to the SPI pins of the Arduino UNO. The chip select pin can be connected to any available digital pin, but pin 10 is commonly used for this purpose.