MicroSD Card Module
Provides access to removable memory using a module-dependent interface.
What is the MicroSD Card Module and what is it used for?
Provides access to removable memory using a module-dependent interface. Makers use it for record temperature readings.
Data logging
Interface modules bridge data or electrical signaling; verify individual module schematic and signal levels.
Key specifications
| Interface module spec | Value |
|---|---|
| Function | microSD card socket with level shifting |
| Supply voltage | 5 V (onboard 3.3 V regulator); some versions 3.3 V only |
| Interface | SPI |
| Rating | FAT16 or FAT32 cards, up to 32 GB works best |
| Logic level | 5 V tolerant via onboard buffer on most 5 V modules |
Pinout
How to use it
Format the card FAT32. Close or flush the file regularly, or a power cut can lose the last readings. Some cards share the SPI bus badly with other devices; add a 10 kΩ pull-up on CS.
#include <SD.h>
void setup() { Serial.begin(115200); if (!SD.begin(10)) Serial.println("no card"); }
void loop() { File f = SD.open("log.csv", FILE_WRITE); f.println(millis()); f.close(); delay(5000); }Applications
Builds that use it
Noise trend logger
Offline sensor recorder
Power cut logger
Room temperature and humidity logger with SD card
Seedling height tracker
Hall sensor door position logger
Soil temperature at three depths
Earthquake shake logger
Common questions
What is the MicroSD Card Module used for?
In products: data logging. In maker projects: record temperature readings.
How does the MicroSD Card Module work?
Interface modules bridge data or electrical signaling; verify individual module schematic and signal levels.
What voltage does the MicroSD Card Module need?
5 V (onboard 3.3 V regulator); some versions 3.3 V only.
How do I connect the MicroSD Card Module to an Arduino or ESP32?
SPI. Pins: VCC / GND (Power), MISO / MOSI / SCK (SPI), CS (Chip select (pin 10 on Uno, 5 on ESP32 examples)).
