กลับไปหน้ารวมไฟล์
datalogger-with-sd-card-support-5d00cd.md

วันนี้ผมจะมาแสดงวิธีการสร้าง ESP8266 datalogger ที่ใช้เซ็นเซอร์หลายชนิด โปรเจกต์นี้เป็นโปรเจกต์ง่ายๆ ที่ไม่ต้องมีความรู้เชิงลึกเกี่ยวกับ Arduino และ electronics นี่คือโปรเจกต์ระดับ intermediate ดังนั้นจึงไม่ยากเกินไปสำหรับคุณ ผมพยายามอย่างเต็มที่ที่จะ document โปรเจกต์นี้ให้คุณดูเรียบง่าย เพื่อให้คุณสามารถสร้างโปรเจกต์นี้ได้เช่นเดียวกับผม หากคุณชื่นชอบผลงานของผม การ **sub** ไปที่ youtube channel ของผม จะทำให้ผมมีความสุขและช่วยให้ผมมี motivated ที่จะสร้างโปรเจกต์ใหม่ๆ ให้คุณใน future อันใกล้ เอาล่ะ ไม่ต้องรอช้า มาเริ่มกันเลย........

รายละเอียดทางเทคนิคเพิ่มเติม

การวิเคราะห์สภาพแวดล้อมแบบต่อเนื่อง

โปรเจกต์นี้สร้าง datalogger ที่ทนทานและทำงานได้ด้วยตัวเอง สามารถบันทึกค่าจากเซ็นเซอร์ได้หลายพันรายการตลอดการทำงานหลายสัปดาห์

  • FAT32 File System Hub: ใช้ไลบรารี SD.h เพื่อจัดการ microSD card มาตรฐาน Arduino จะจับข้อมูลจากเซ็นเซอร์ DHT11 (Temp/Hum) และ LDR (Light) แล้วจัดเก็บลงในไฟล์ .CSV ที่มีโครงสร้าง
  • Power Failure Resilience: มีคำสั่ง "Flush" หลังจากทุกๆ 10 log เพื่อให้มั่นใจว่าข้อมูลจะถูกเขียนลงในการ์ดจริง แม้แบตเตอรี่จะหมดโดยไม่คาดคิดก็ตาม

คุณสมบัติ Dashboard

  • Serial Real-Time Mirror: ส่งข้อมูลไปยัง Serial monitor พร้อมกันแบบเรียลไทม์เพื่อการดีบักสด ในขณะที่ log หลักถูกเขียนลง SD card

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

title: "Datalogger With Sd Card Support"
description: "I Will Show You How To Make A Data Logger With Esp8266, Sensors, NTP Client & Save The Values To The Sd Card"
author: "noneedforit"
category: ""
tags:
  - "environmental sensing"
  - "greener planet"
  - "data collection"
  - "internet of things"
  - "monitoring"
views: 4490
likes: 0
price: 2450
difficulty: "Intermediate"
components:
  - "1x Sd Card Module"
  - "1x Hot glue gun (generic)"
  - "1x Flash Memory Card, SD Card"
  - "1x DHT22 Temperature Sensor"
  - "1x Jumper wires (generic)"
  - "1x NodeMCU ESP8266 Breakout Board"
  - "1x MQ-135 Air Quality Sensor"
  - "1x Arduino UNO"
  - "1x Breadboard (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "ca3d101fddff7082e7d4e6e7c5c554a358e5cbdcd4ea64768e9178142d3b11fa"
encryptedPayload: "U2FsdGVkX1+fww3T0essPAyogHb6EwAww6HzAespsaprCCqDyQnjt3NQEgZMhWhsyiIfskRjlXUZ3RtXtW/FBpAOfKc1lrtPZi3wByZFCuI="
seoDescription: "Learn how to build a Data Logger using Esp8266, Sensors, and NTP Client to save real-time data to an Sd Card easily."
videoLinks:
  - "https://www.youtube.com/embed/3GRIwW-PshM"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/datalogger-with-sd-card-support-5d00cd_cover.jpg"
lang: "th"