Home / Snippets / Interfacing SD Card with Arduino using SD Card Module

Interfacing SD Card with Arduino using SD Card Module

Interfacing SD Card with Arduino Uno and Arduino Mega 2560 using SD Card Module

To use an SD card with Arduino, the SD Library and Program are available in Arduino Software v1.05, you just need to connect the CS pin of SD module and Change SD pin in programming to which it is connected.

In the program, we have connected the CS pin of the Module with D53 (SS) and just set 53 on two places in the program. Check out Video for More details.

SD Card module with Arduino

 

Interfacing SD Card Module with Arduino:

interfacing arduino with sd card module

Bluetooth HC-05 & HC-06 have different pin numbers of LEDs only, power and Serial Communication pins are same.

SD Card ModuleArduino Mega 2560Arduino Uno
1 – GndGNDGND
2 – MISOD50 (MISO)D12 (MISO)
3 – SCKD52 (SCK)D13 (SCK)
4 – MOSID51 (MOSI)D11 (MOSI)
5 – CSD53 (SS)D10 (SS)
6 – +5+5V+5V
7 – +3.3N.CN.C
8 – GNDN.CN.C

N.C = Not Connected

Code for Arduino Uno and Arduino Mega:

The Code below is used to connect Arduino with SD Card Module and List all the files and Directories within it.

 

Output / Results:

sd card module arduino

 

Video on Interfacing SD with Arduino Uno and Arduino Mega 2560:

Downloads:

Related Links:

Check Also

Interfacing ADXL345 Accelerometer with Arduino UNO/ Mega

Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega

Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega Accelerometer ADXL345 is a 3-dimensional accelerometer, that …

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: