Home / Tutorials / Arduino Tutorial / Using the MicroSD Breakout Board with Arduino

Using the MicroSD Breakout Board with Arduino

Microcontrollers usually don’t have enough memory to store data like images, database or even large text files. EEPROMs are tasked for this, but the portability of a memory card gives it a big advantage. This tutorial shows how easy to use a microSD card with the Arduino microcontroller.


There are a lot of SD card modules available but this is the one that I got:

microSD card breakout board for Arduino - front

[the_ad id=”3059″]

Don’t worry if your module doesn’t look the same as mine; as long as the correct connections are made, sketches in this tutorial will work since there is only one way to interface an Arduino with a micro SD card.

As shown, the module has six pins. The names of the pins are visible on the other side of the board:

microSD card breakout board for Arduino - back

The pins are: CS (chip select), SCK (clock), MOSI (master out, slave in), MISO (master in, slave out), VCC (+5V), GND.

There are other ICs on the board which serve special purposes.

microSD card breakout board contains level converters

[the_ad id=”3059″]

These are necessary because the SD card uses 3.3V. Going beyond this voltage level will obviously destroy your card.

Arduino Wiring Diagram

The pin names on the module follow standard SPI pins names which means we need to connect this module to the Arduino UNO’s SPI pins (11, 12, 13). Here is a wiring diagram to follow:

microSD card and Arduino wiring diagram

The Arduino IDE has a built-in “SD” library which we can use to interface with this microSD card module. Go to File > Examples > SD to view the example sketches.

Example Sketch

Now let’s say I wanted to save my temperature data from my thermistor tutorial. I could modify the Datalogger example from the SD library to fit my need. Here it is:

The temperature data will now be on the datalog.txt file inside the SD card!

[the_ad id=”3059″]

Check Also

MAX30102 black board

MAX30102: An Improved Heart Rate Sensor for Arduino

Have you read the MAX30100 tutorial and are still having trouble making that chip work? …

Leave a Reply

Your email address will not be published.