กลับไปหน้ารวมไฟล์
make-your-own-sd-shield-fa9708-en.md

While I was working on another project, I had the necessity to save some data into a SD card. Not having a shield I thought I could just figure out a way to connect the MicroSD card to my Arduino using what I had at my disposal.

In this project, you will need some basic soldering skills. This tutorial will also show you some basic instructions in order to transfer data to the SD card. Your data can be anything, it can be collected by some sensors or it can be the result of some operations you have done. For simplicity, I will use 3 buttons for digital I/O and one extra button to enable the reading (as if it was a clock signal). I have also set my Arduino to check for new data every 3 seconds. That can be changed according to how frequent you will need to collect your data.

in the video you will see how I generate the inputs and how they get saved while I look at the console. In the end, you will get a csv file which can be opened using any text editor or spreadsheet software (in the video, I open that first using Sublime Text and then using Numbers).

Small technical note: please don't be too scared by the amount of wires you see in the pictures. I didn't have any 3 Kohm resistance, so in the pictures you will see I joined 1x 1 kohm + 1x 2 kohm instead.

EXPANDED TECHNICAL DETAILS

DIY Non-Volatile Storage Hub

This project provides a technical blueprint for building a custom SD card interface for high-capacity data logging and file storage.

  • SPI Level Shifting: Since SD cards operate at 3.3V and many Arduinos at 5V, the shield includes a level-shifter (using resistors or a 4050 IC) to prevent damage to the storage media.
  • SPI Multi-Slave Bus: The Arduino uses the Serial Peripheral Interface to communicate with the SD card. The firmware manages "Slave Select" logic, allowing the SD card to coexist with other SPI sensors.

Reliability

  • FATFS File Management: Demonstrates the use of the SD.h library to initialize the card and manage a file system, enabling the creation and appending of CSV log files.

ข้อมูล Frontmatter ดั้งเดิม

title: "Make your own SD shield"
description: "Here is how I built my own \"SD shield\" for another project I was working on, using a solder iron and a MircoSD adapter."
author: "superturis"
category: ""
tags:
  - "communication"
  - "data collection"
  - "recycling"
views: 881
likes: 2
price: 1120
difficulty: "Intermediate"
components:
  - "1x Solder Wire, Lead Free"
  - "1x Soldering iron (generic)"
  - "1x Flash Memory Card, SD Card"
  - "4x Through Hole Resistor, 1 kohm"
  - "1x 5 mm LED: Green"
  - "1x Arduino UNO"
  - "3x Through Hole Resistor, 2 kohm"
  - "4x Tactile Switch, SPST-NO"
  - "3x 5 mm LED: Red"
  - "1x Jumper wires (generic)"
  - "1x Breadboard (generic)"
  - "3x Through Hole Resistor, 3 kohm"
  - "1x Through Hole Resistor, 10 kohm"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "2ad81503b6d655c21da68e407252bb4a9764093defa05267916d2d24ae54e6ec"
encryptedPayload: "U2FsdGVkX1+5KIlphPspf+Jq5FzHohBNTuaR0do3zPep7TxSK9g2hr63Vw5KFWfAgZmrp4b3qUJIpd/1lZ8JBatCG1mAM8NhhIZ1BRXlA7U="
seoDescription: "Build your own DIY SD shield for Arduino projects using a MicroSD adapter and a soldering iron. Simple and cost-effective guide."
videoLinks:
  - "https://www.youtube.com/embed/gpvjzGWqi6I"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/make-your-own-sd-shield-fa9708_cover.jpg"
lang: "en"