DHT แสดงวิธีการใช้งานมากมาย โดยแจ้งให้เราทราบผ่าน Serial Monitor แต่มีน้อยโปรเจกต์ที่แสดงผลด้วย LCD I2C และนั่นคือเหตุผลที่ในบทช่วยสอนนี้ ผมจะสอนวิธีการทำสิ่งนี้
ผมจะอธิบาย DHT ที่นี่
VCC ไปยังขั้วบวก
GND ไปยังขั้วลบ
DATA ไปยัง PIN 2
นี่คือสำหรับ DHT แบบ 3 PIN
รายละเอียดทางเทคนิคเพิ่มเติม
แดชบอร์ดสำหรับตรวจสอบสภาพแวดล้อม
โปรเจกต์ภาคปฏิบัตินี้ให้การแสดงผลอุณหภูมิและความชื้นในห้องแบบเรียลไทม์ ซึ่งจำเป็นสำหรับการควบคุมสภาพอากาศและการตรวจสอบในห้องปฏิบัติการ
- 1-Wire Digital Protocol: Arduino สื่อสารกับ DHT11 sensor โดยใช้พัลส์เวลาแบบสายเดี่ยวที่ออกแบบมาโดยเฉพาะ เฟิร์มแวร์จะถอดรหัสรูปแบบความกว้างพัลส์ให้เป็นข้อมูลความชื้นและอุณหภูมิขนาด 40 บิต
- Refreshed-UI Data Update: Arduino จะอัปเดต 16x2 LCD ทุก 2 วินาที เฟิร์มแวร์มีตัวบ่งชี้ "Safe Range" (ช่วงปลอดภัย) หากความชื้นเกิน 70% จอ LCD จะแสดงคำเตือน "HUMID"
การสร้างต้นแบบ
- Web Editor validated: ตรรกะการจับเวลาที่ซับซ้อนของเซ็นเซอร์ได้รับการปรับให้เหมาะสมใน Cloud Editor เพื่อให้ข้อมูลที่เสถียรและแม่นยำ โดยไม่มีข้อผิดพลาดของ CRC เลย
ข้อมูล Frontmatter ดั้งเดิม
title: "Dht 11 with LCD"
description: "Dht communicating by lcd dht comunícandonos por lcd"
author: "newproject"
category: ""
tags:
- "weather"
- "lights"
views: 14781
likes: 3
price: 1120
difficulty: "Intermediate"
components:
- "1x Breadboard (generic)"
- "1x Male/Female Jumper Wires"
- "1x Arduino UNO"
- "1x Jumper wires (generic)"
- "1x DHT11 Temperature & Humidity Sensor (3 pins)"
- "1x I2C 16x2 Arduino LCD Display Module"
tools: []
apps:
- "1x Arduino Web Editor"
downloadableFiles: []
documentationLinks: []
passwordHash: "67bed9b03c1d45765ed04ba1472ece7310d40fc3fd4fe8f64cd91f1c64bd832a"
encryptedPayload: "U2FsdGVkX1/nYRD66iWzV4uKE6eZSxdRTraPs6p1coE11mW4yRQYwjkz7YWYqe3vFIw60mdHwB2G6lC2z28igRqZ+z2KpsmHmPExMyK9pOM="
seoDescription: "Learn how to display DHT 11 Sensor data on an LCD screen using Arduino. Monitor temperature and humidity in real-time."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/dht-11-with-lcd-cf568a_cover.jpg"
lang: "th"