SD Card - Micro SD card reader Module

SKU: TP6005-1
Micro SD card reader module with 6-pin SPI header, level converter chip and 3.3 V regulator, top view
Micro SD card reader module dimensions: 42 mm long by 24 mm wide, with 6-pin header

SD Card - Micro SD card reader Module

SKU: TP6005-1
Regular price $3.99
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $100.00 more for free shipping

Tax included. Shipping calculated at checkout.

10+ in stock

You'll also need

Choose a quantity and add it to your cart.

Breadboard 400 holes
$4.4910+ in stock
Breadboard Jumper Wire - 140pcs
$11.9910+ in stock

A Micro SD card reader module with an SPI interface, a 3.3 V regulator and a level converter chip, for adding removable storage to Arduino, ESP32 and Raspberry Pi Pico projects.

This module has a Micro SD card slot and a six-pin SPI header (GND, VCC, MISO, MOSI, SCK, CS). It supports Micro SD and Micro SDHC cards and is powered from 5 V, so you can log sensor data, store files or load content from a card with a few wires.

Interface
SPI, 6 pins
Supply
5 V
Cards
Micro SD / SDHC
Size
42 × 24 mm

Why choose it

  • Works with 5 V and 3.3 V boards — a level converter chip changes the signal levels, so the module can be wired to a UNO, an ESP32 or a Pico (VCC still needs 5 V).
  • Card power is handled for you — an on-board LDO regulator makes the 3.3 V that the Micro SD card needs.
  • Standard SPI — works with the Arduino SD library and the MicroPython sdcard driver, with six pins to wire.

Specifications

Core
Card types Micro SD, Micro SDHC
Interface SPI
Control pins 6 (GND, VCC, MISO, MOSI, SCK, CS)
File system (Arduino SD library) FAT16 or FAT32
Power and signals
Supply voltage (VCC) 5 V
On-board regulator 3.3 V LDO, powers the Micro SD card
Level conversion 74LVC125A level converter IC on the signal lines; MISO is output at 3.3 V
Physical
Dimensions 42 × 24 mm
Card slot Micro SD connector for easy card insertion and removal

Compatibility

Platform Works Notes
Arduino UNO / Nano / Mega (5 V) ✓ Yes VCC to 5 V. Built-in SD library. UNO pins: D10 (CS), D11 (MOSI), D12 (MISO), D13 (SCK).
ESP32 (3.3 V) ✓ Yes VCC to the 5 V pin; signals are shifted by the module. Default SPI pins GPIO5 (CS), GPIO23 (MOSI), GPIO19 (MISO), GPIO18 (SCK).
Raspberry Pi Pico (3.3 V) ✓ Yes VCC to VBUS (5 V). MicroPython with the sdcard driver.
Software Arduino IDE / MicroPython SD library (Arduino IDE) · sdcard.py (micropython-lib)

In the box

Included
  • 1 × Micro SD card reader module (SPI, with level converter chip)

Applications

  • Data logging: save sensor readings to a text or CSV file
  • Storing settings, text or other files on a removable card
  • Adding removable storage to an Arduino, ESP32 or Pico project

Tutorial

What you'll build: write a line of text to a file on a Micro SD card and read it back, so you know your wiring and card work. · About 20 minutes.

Choose your board

Board Logic voltage Pins used Language Best for
Arduino UNO 5 V D10, D11, D12, D13 C++ (Arduino IDE) First-timers: the SD library is built in
ESP32 3.3 V GPIO5, GPIO18, GPIO19, GPIO23 C++ (Arduino IDE) Projects that also need Wi-Fi
Raspberry Pi Pico 3.3 V GP8, GP9, GP10, GP11 MicroPython (Thonny) Learning Python

New to this? Start with the Arduino UNO.

How it works

The module talks to your board over SPI. Think of it as four wires with different jobs. A card needs a little more care than most modules, so here are the terms you will see:

  • GND — the return path. Every GND must be joined.
  • MOSI / MISO — one wire carries data from the board to the card (MOSI), the other carries data back (MISO).
  • SCK — the clock wire. It sets the pace of the conversation.
  • CS (chip select) — tells the card "I am talking to you now".
  • Level converter — a chip on the module that makes the signals suit the 3.3 V card, so the module can sit on a 5 V or a 3.3 V board.
Arduino UNO Tutorial

You need: Arduino UNO R3, USB cable (a data cable, not charge-only), 6 jumper wires, a Micro SD card formatted as FAT16 or FAT32.

Wiring diagram: Micro SD module to Arduino UNO Arduino UNOMicro SD module5VVCCGNDGNDD12MISOD11MOSID13SCKD10CSModule VCC on 5 V. Signals are shifted down to 3.3 V on the module.

■ Power ■ GND ■ SPI signals (MISO, MOSI, SCK) ■ Chip select (CS)

# Arduino UNO pin Module pin Wire colour Notes
1 5V VCC Red Power. The module makes its own 3.3 V for the card.
2 GND GND Black Return path
3 D12 MISO Blue Data from the card to the board
4 D11 MOSI Blue Data from the board to the card
5 D13 SCK Blue SPI clock
6 D10 CS Green Chip select

Watch out: Unplug the USB cable before you move any wire. Never swap VCC and GND.

1
Install the Arduino IDE
Download and install the Arduino IDE, then plug the UNO into your computer.
2
Pick the board and port
Choose Tools → Board → Arduino AVR Boards → Arduino Uno, then Tools → Port and pick the port that appears when you plug the board in. If no port appears, use a data USB cable and install the USB driver for your board.
3
Insert the card
Push the Micro SD card into the slot with the contacts facing the board, until it clicks into place.
4
Upload the example
Paste the sketch below into a new sketch and press Upload. The built-in SD library is already included with the IDE, so you do not need to install anything.
▸ Example 1 — Write a line to a file and read it back
// Wiring: VCC->5V, GND->GND, MISO->D12, MOSI->D11, SCK->D13, CS->D10
#include <SPI.h>
#include <SD.h>

const int CS_PIN = 10;   // chip select, same pin as in the wiring table

void setup() {
  Serial.begin(115200);  // Serial Monitor speed

  if (!SD.begin(CS_PIN)) {
    Serial.println("SD module or card not found - check wiring and card format");
    while (true) {}      // stop here
  }
  Serial.println("OK - epartners.co.nz test");

  // Add one line to test.txt (the file is created if it does not exist)
  File f = SD.open("test.txt", FILE_WRITE);
  if (!f) {
    Serial.println("Could not open test.txt for writing");
    while (true) {}
  }
  f.println("testing 1, 2, 3.");  // you can change this text
  f.close();
  Serial.println("File written");

  // Read the file back
  f = SD.open("test.txt");
  if (f) {
    Serial.println("File content:");
    while (f.available()) {
      Serial.write(f.read());
    }
    f.close();
  }
}

void loop() {
  // nothing to do here
}
5
Open the Serial Monitor
Open Tools → Serial Monitor and set the speed to 115200 baud (the speed the board uses to talk to your computer).

✓ Check: The Serial Monitor shows OK - epartners.co.nz test once, then File written and File content: followed by testing 1, 2, 3.. Each time you press reset, one more line is added to the file.

ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), USB cable (data cable), 6 jumper wires, a Micro SD card formatted as FAT16 or FAT32.

Wiring diagram: Micro SD module to ESP32 DevKitC ESP32 DevKitCMicro SD module5VVCCGNDGNDGPIO19MISOGPIO23MOSIGPIO18SCKGPIO5CSModule VCC on 5 V. ESP32 pins are 3.3 V only; the module shifts its signals.

■ Power ■ GND ■ SPI signals (MISO, MOSI, SCK) ■ Chip select (CS)

# ESP32 pin Module pin Wire colour Notes
1 5V (labelled 5V or VIN) VCC Red Power. Do not use the 3V3 pin for VCC.
2 GND GND Black Return path
3 GPIO19 MISO Blue Data from the card to the board
4 GPIO23 MOSI Blue Data from the board to the card
5 GPIO18 SCK Blue SPI clock
6 GPIO5 CS Green Chip select

Watch out: ESP32 pins are 3.3 V only. Keep VCC on the 5 V pin and never feed a 5 V signal into a GPIO pin. The module’s MISO output is at 3.3 V, so it is safe for the ESP32.

1
Install the Arduino IDE
Download and install the Arduino IDE.
2
Add the ESP32 boards
Open File → Preferences and paste https://espressif.github.io/arduino-esp32/package_esp32_index.json into Additional boards manager URLs. Then open Tools → Board → Boards Manager, search for esp32 by Espressif Systems and click Install (official install guide).
3
Pick the board and port
Choose Tools → Board → esp32 → ESP32 Dev Module, then Tools → Port. If no port appears, use a data USB cable and install the USB driver for your board.
4
Insert the card and upload
Push the card into the slot, paste the sketch below and press Upload. If the upload fails, open Tools → Upload Speed, choose 115200, and upload again. The SD library comes with the ESP32 board package.
▸ Example 1 — Write a line to a file and read it back
// Wiring: VCC->5V, GND->GND, MOSI->GPIO23, MISO->GPIO19, SCK->GPIO18, CS->GPIO5
#include <FS.h>
#include <SD.h>
#include <SPI.h>

const int CS_PIN = 5;    // chip select, same pin as in the wiring table

void setup() {
  Serial.begin(115200);  // Serial Monitor speed

  if (!SD.begin(CS_PIN) || SD.cardType() == CARD_NONE) {
    Serial.println("SD module or card not found - check wiring and card format");
    while (true) {}      // stop here
  }
  Serial.println("OK - epartners.co.nz test");
  Serial.printf("Card size: %llu MB\n", SD.cardSize() / (1024 * 1024));

  // Add one line to test.txt (the file is created if it does not exist)
  File f = SD.open("/test.txt", FILE_APPEND);
  if (!f) {
    Serial.println("Could not open test.txt for writing");
    while (true) {}
  }
  f.println("testing 1, 2, 3.");  // you can change this text
  f.close();
  Serial.println("File written");

  // Read the file back
  f = SD.open("/test.txt");
  if (f) {
    Serial.println("File content:");
    while (f.available()) {
      Serial.write(f.read());
    }
    f.close();
  }
}

void loop() {
  // nothing to do here
}
5
Open the Serial Monitor
Open Tools → Serial Monitor and set the speed to 115200 baud (the speed the board uses to talk to your computer).

✓ Check: The Serial Monitor shows OK - epartners.co.nz test once, the card size, then File written and File content: followed by testing 1, 2, 3.. Each time you press EN (reset), one more line is added.

Raspberry Pi Pico Tutorial

You need: Raspberry Pi Pico (with header pins), micro-USB cable (data cable), 6 jumper wires, a Micro SD card formatted as FAT16 or FAT32.

Wiring diagram: Micro SD module to Raspberry Pi Pico Raspberry Pi PicoMicro SD moduleVBUS (pin 40)VCCGND (pin 13)GNDGP8 (pin 11)MISOGP11 (pin 15)MOSIGP10 (pin 14)SCKGP9 (pin 12)CSModule VCC on VBUS (USB 5 V). Pico pins are 3.3 V only; the module shifts its signals.

■ Power ■ GND ■ SPI signals (MISO, MOSI, SCK) ■ Chip select (CS)

# Raspberry Pi Pico pin Module pin Wire colour Notes
1 VBUS (pin 40) VCC Red USB 5 V. Do not use 3V3(OUT) for VCC.
2 GND (pin 13) GND Black Return path
3 GP8 (pin 11) MISO Blue Data from the card to the Pico
4 GP11 (pin 15) MOSI Blue Data from the Pico to the card
5 GP10 (pin 14) SCK Blue SPI clock
6 GP9 (pin 12) CS Green Chip select

Watch out: Pico pins are 3.3 V only and do not tolerate 5 V signals. Power the module from VBUS (pin 40), and use the module’s MISO output, which is at 3.3 V. Unplug USB before moving wires.

1
Install Thonny and MicroPython
Install Thonny. Hold the BOOTSEL button while you plug the Pico into USB, then install MicroPython from Thonny or from micropython.org. In the bottom-right corner choose the interpreter MicroPython (Raspberry Pi Pico).
2
Insert the card
Push the Micro SD card into the slot with the contacts facing the board, until it clicks into place.
3
Save the sdcard driver on the Pico
Open the sdcard.py driver, copy all of it into a new Thonny file, choose File → Save as → Raspberry Pi Pico, make a folder called lib, and save the file there as sdcard.py.
4
Run the example
Paste the code below into a new Thonny file and press Run (the green button). Press Stop to end it. To run it every time the Pico gets power, save it on the Pico as main.py.
▸ Example 1 — Write a line to a file and read it back
# Wiring: VCC->VBUS (pin 40), GND->GND (pin 13), MISO->GP8, CS->GP9, SCK->GP10, MOSI->GP11
import machine
import os
import sdcard            # sdcard.py must be saved on the Pico (see step 3)

MISO_PIN = 8             # pin numbers match the wiring table
CS_PIN = 9
SCK_PIN = 10
MOSI_PIN = 11

cs = machine.Pin(CS_PIN, machine.Pin.OUT)
spi = machine.SPI(1, baudrate=1000000, polarity=0, phase=0, bits=8,
                  firstbit=machine.SPI.MSB,
                  sck=machine.Pin(SCK_PIN), mosi=machine.Pin(MOSI_PIN),
                  miso=machine.Pin(MISO_PIN))

try:
    sd = sdcard.SDCard(spi, cs)
    os.mount(os.VfsFat(sd), "/sd")   # the card now appears as the folder /sd
except OSError:
    print("SD module or card not found - check wiring and card format")
    raise SystemExit

print("OK - epartners.co.nz test")

# Add one line to test.txt (the file is created if it does not exist)
with open("/sd/test.txt", "a") as f:
    f.write("testing 1, 2, 3.\n")   # you can change this text
print("File written")

# Read the file back
print("File content:")
with open("/sd/test.txt", "r") as f:
    print(f.read())

✓ Check: The Shell at the bottom of Thonny shows OK - epartners.co.nz test once, then File written and File content: followed by testing 1, 2, 3.. Each time you run it, one more line is added.

Troubleshooting

Board Problem Likely cause Fix
All "SD module or card not found" Wire in the wrong place, card not pushed in, or the card is not FAT16/FAT32 Check each wire against the table, push the card in until it clicks, and format the card as FAT32.
All Nothing works with the wires as drawn Pin order on your module differs from the diagram Read the labels printed on the module and connect by name (VCC, GND, MISO, MOSI, SCK, CS).
All Card works on a computer but not on the module Card is formatted as a different file system Reformat the card as FAT16 or FAT32 and try again.
ESP32 Stuck on "Connecting…" Board is not in upload mode Hold the BOOT button until uploading starts.
ESP32 Upload fails or stops part-way Upload speed too high for the USB cable or USB chip Tools → Upload Speed → 115200, then upload again.
Raspberry Pi Pico ImportError: no module named 'sdcard' sdcard.py is not saved on the Pico Save sdcard.py inside a lib folder on the Pico (step 3).
Raspberry Pi Pico Pico does not show up in Thonny Board not in MicroPython mode or a charge-only cable Hold BOOTSEL while plugging in, reinstall MicroPython, and use a data USB cable.

Try next: log a sensor reading to a file every second, or read a text file line by line and print it.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • Format the card as FAT16 or FAT32. The Arduino SD library uses short 8.3 file names (for example test.txt).
  • Power the module (VCC) from 5 V, even on 3.3 V boards. The regulator on the module gives the card its 3.3 V; a Micro SD card can be damaged by more than 3.6 V.

Video guide

Datasheet

Key figures from the manufacturer's datasheet for the 74LVC125A level converter chip on this module, which changes the signal levels between your board and the Micro SD card (Texas Instruments SN74LVC125A shown).

SN74LVC125A quad buffer
Function Quadruple bus buffer gate: four buffers, each with its own output enable
Supply voltage (VCC) 1.65 V to 3.6 V
Input voltage 0 V to 5.5 V (inputs accept 3.3 V or 5 V signals)
Output enable (OE) Active low: output is high-impedance when OE is high
Output current at VCC = 3 V ±24 mA (high and low level, recommended maximum)
Propagation delay, A to Y, VCC = 3.3 V ± 0.3 V 2.5 ns typical, 4.8 ns maximum (−40 °C to 85 °C)
Operating temperature Specified from −40 °C to 85 °C and −40 °C to 125 °C
Packages (14-pin) WQFN, SOIC, SSOP, SOP, TSSOP, VQFN

Download the 74LVC125A datasheet (PDF, 2.5 MB)

▸ Preview the datasheet

If the preview does not load on your device, use the download link above.

Source: Texas Instruments, SN74LVC125A Quadruple Bus Buffer Gate With 3-State Outputs, SCAS290T (revised September 2024).

Resources

Which one should I choose?

Product Key difference Best for
This product (Micro SD card reader module) Supply voltage 5 V, with an on-board 3.3 V regulator and a level converter chip Boards that have a 5 V pin: UNO, Mega, ESP32 and Pico (VBUS)
Micro SD card Reader Module (HA6001-1) Its listing gives the input voltage as 3.3 V Boards that supply 3.3 V to the module
SD Card Reader Module (MP0006) Its listing gives the input voltage as 3.3 V / 5 V Setups where a 3.3 V / 5 V input range suits your board

FAQ

▸ Does it work with 3.3 V boards like the ESP32 and Raspberry Pi Pico?

Yes. The level converter chip lets the signal pins connect to 3.3 V boards, but the module’s VCC pin still needs 5 V, so use the 5 V pin (VBUS on the Pico).

▸ Which cards and file systems can I use?

Micro SD and Micro SDHC cards. Format the card as FAT16 or FAT32 for the Arduino SD library.

▸ Is a Micro SD card included?

No. The package contains only the module.

▸ Which pins do I use on an Arduino UNO?

D10 for CS, D11 for MOSI, D12 for MISO and D13 for SCK, plus 5 V and GND.

▸ Can I use a different CS pin?

Yes. CS is a normal chip-select pin: change the CS_PIN number in the code and move the wire to match.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed