กลับไปหน้ารวมไฟล์
exhaust-fan-control-c46e56-en.md

This project involves the development of a smart environmental monitoring and control system that integrates various sensors and actuators to ensure optimal environmental conditions. The system utilizes a DHT11 sensor for temperature and humidity monitoring, an MQ2 sensor for gas detection, and an LCD for real-time data display. It also includes a relay-controlled fan for ventilation and a red LED for visual alerts. The system is designed to operate both automatically and manually, providing flexibility and enhanced safety.

In the current era, where safety in residential areas and industrial factories is paramount, the development of a "Smart Environmental Monitoring and Control System" is a solution that addresses both safety maintenance and the creation of suitable environmental conditions. This project integrates embedded systems with high-performance sensors to monitor for unseen dangers.

Project Overview

This project is an automated control system that operates in Real-time, relying on processing from an Arduino microcontroller to measure temperature, humidity, and gas concentration in the air. When the system detects abnormalities, such as a gas leak or excessively high temperature, it will immediately activate the fan driver unit (Fan) to ventilate the area. It also displays the status via an LCD screen and a visual alert to promptly inform users of the situation.


Components & Engineering

The core of the system consists of key components that work together systematically, as follows:

1. DHT11 (Temperature & Humidity Sensor)

A digital temperature and humidity sensor that uses single-bus data transmission. It internally comprises an NTC (Negative Temperature Coefficient) thermistor for temperature measurement and a capacitive humidity sensing element for humidity. This provides sufficient accuracy for indoor monitoring.

2. MQ2 (Gas & Smoke Sensor)

A Metal Oxide Semiconductor (MOS) gas sensor sensitive to LPG, propane, hydrogen, and smoke. It operates on the principle of changing resistance in its semiconductor material (SnO2) when exposed to reactive gases. The system uses the resulting analog voltage value to calculate the gas density in the air.

3. Relay Module & Ventilation Fan

Since fans typically require higher current and voltage than what Arduino can supply directly, we use a Relay as an electronic switch to isolate the control section (Low Voltage) from the power section (High Voltage), enabling safe control of the ventilation fan.

4. LCD Display & Visual LED

  • LCD (Liquid Crystal Display): Acts as a User Interface, displaying temperature, humidity, and gas levels in Real-time.
  • Red LED: Serves as a critical alert indicator to be noticeable from a distance.

System Logic & Algorithm

The program is designed to operate as a State Machine and uses Threshold Monitoring, with the following operational steps:

  1. Data Acquisition: The system reads values from the DHT11 and MQ2 sensors at defined intervals (Sampling Rate).
  2. Processing & Comparison:
    • Compares the read gas value with the Threshold (critical point) set in the Code.
    • Compares the temperature value with the defined range to assess the risk of heat accumulation.
  3. Action Logic:
    • Automatic Mode: If the gas value exceeds the standard or the temperature is too high, the system sends a High signal to the Relay to turn on the fan, and commands the red LED to blink or stay solid.
    • Manual Override: Users can manually turn the ventilation system on or off via a switch or a designed interface (if additional connections are made).
  4. Feedback Loop: Displays the current results on the LCD screen, allowing users to know the various parameters at all times.
// Basic Control Logic Example (Conceptual Code)
if (gasValue > gasThreshold || tempValue > tempThreshold) {
    digitalWrite(RELAY_PIN, HIGH); // Turn on fan
    digitalWrite(LED_PIN, HIGH);   // Turn on warning light
} else {
    digitalWrite(RELAY_PIN, LOW);  // Turn off fan
    digitalWrite(LED_PIN, LOW);    // Turn off warning light
}

Key Features

  • Dual-Safety System: Protects against both temperature issues (preventing overheating) and gas leak problems within a single system.
  • Real-time Visualization: Environmental values are known instantly via the screen, no guesswork needed.
  • Autonomous Response: The system responds to dangers autonomously without human intervention, reducing the risk of accidents.
  • Expandability: Can be further developed to connect with IoT systems (e.g., ESP32 or Blynk) to send notifications to smartphones in the future.

Downloads & Resources

You can download the full circuit diagram (Schematic) and source code from the links below:

[Download Source Code]
[Download Circuit Diagram]


We hope this project serves as a useful guideline for engineers and those interested in building Smart Home or Industrial Monitoring systems!

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

apps:
  - "1x Arduino IDE"
author: "jiiroo19"
category: "Sensors & Environment"
components:
  - "1x Digital Temperature and Relative Humidity Sensor DHT11 DHT22 AM2302B AM2301 AM2320 Humidity Sensor Module For Arduino AM2302"
  - "1x MQ2(gas sensor)"
  - "1x Arduino Uno R3"
  - "2x Resistor 10k"
  - "1x 16x2 LCD display with I²C interface"
  - "2x Push Button"
  - "1x Red LED 625nm 1.8v 2..5mA"
  - "1x SSR-40 DA"
  - "1x Resistor 220 ohm"
description: "A Control System that integrates temperature, humidity, and gas sensors with an LCD display, relay-controlled fan, and visual alerts to automatically and manually ensure optimal and safe environmental conditions."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/2ccc3ca2-53d3-4c79-8938-a53a36151fb4.ino"
encryptedPayload: "U2FsdGVkX1985uyYMoJyBJgwNftAKZcxqUoRbTsmmXV9hMrRnhEyKp4WRFmZ3w2bhl4FYkASMYbWX93yTeJWZD2+1MhIvC70BPkx8Sye5lc="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/exhaust-fan-control-c46e56_cover.png"
lang: "en"
likes: 0
passwordHash: "45db93c0024480c465d9bcc28bf5b16ff7b39e04cd1cac17bb6fdc853157d6c7"
price: 1120
seoDescription: "Exhaust Fan Control system using temperature, humidity, and gas sensors with LCD display and relay for automated environmental safety."
tags:
  - "Environmental Sensing"
  - "Home Automation"
title: "Exhaust Fan Control"
tools: []
videoLinks: []
views: 1327