I'm trying to learn Arduino and decided to make a simple thermometer with a seven-segment display and a button to change from temperature to humidity and vice versa.
About the 4 digits 7 segment display, the one I used has 12 pins (A to G pin, DP pin and the Digit pins). In the schematic:
the top row, in order from left to right: DG1, A, F, DG2, DG3, B
the bottom row, in order from left to right: E, D, DP, C, G, DG4
EXPANDED TECHNICAL DETAILS
Standard Environmental Monitoring
The foundational project for understanding climate data acquisition.
- DHT11/DHT22 Interfacing: Uses the standard One-Wire protocol to fetch a 40-bit data packet. The DHT22 is recommended for this build due to its higher accuracy (+/- 0.5°C) and expanded range.
- Data Parsing: The Arduino library handles the timing-critical pulses, separating the humidity integer and temperature decimal parts.
UI Presentation
- I2C LCD Display: Results are shown in real-time on a blue-backlit 16x2 character display.
- Unit Conversion: Included code allows the user to toggle between Celsius and Fahrenheit by pressing a simple momentary tactile switch connected to a digital input.
ข้อมูล Frontmatter ดั้งเดิม
title: "Simple Temperature and Humidity Sensor!"
description: "Find how hot or cold is your room with this simple temperature and humidity sensor with a DHT11!"
author: "sgongo"
category: ""
tags:
- "monitoring"
views: 5367
likes: 2
price: 699
difficulty: "Easy"
components:
- "1x Pushbutton"
- "1x Breadboard (generic)"
- "1x DHT11 Temperature & Humidity Sensor (4 pins)"
- "1x 4 digit 7 segment display"
- "1x Arduino Mega 2560"
- "1x Resistor 220 ohm"
- "1x Jumper wires (generic)"
tools: []
apps:
- "1x Arduino IDE"
downloadableFiles:
- "https://projects.arduinocontent.cc/c0f64a2c-fa74-423a-a0d6-8fb629eaaaa4.ino"
documentationLinks: []
passwordHash: "f4d20c1373465171c6e370eb0043a5a74a82027abfd6354741b178d4c10b1866"
encryptedPayload: "U2FsdGVkX19weHZrHment6KpS98xi8o5669OxF5XszycGsQ3CW3rDXyAErIUIym3pDad/sOyjjwsyRq4dI9bJT0+vtC8UXHhJA0vwOUAXgc="
seoDescription: "Build a simple Temperature and Humidity Sensor using DHT11 and Arduino to monitor your room's climate easily."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/simple-temperature-and-humidity-sensor-dd1b3a_cover.jpg"
lang: "en"