Skip to content

CodreanuDan/Humidity_Sensor_Arduino

Repository files navigation

Humidity Sensor Arduino Project 🌡️

Welcome to the Humidity Sensor Arduino Project! This project involves creating a digital humidity sensor using analog components, primarily a capacitor from a DHT11 sensor, and interfacing it with an Arduino board. The setup allows you to compare the performance of a custom-made sensor with the standard DHT11 sensor.

Project Overview 📊

Hardware Components 🛠️

  • Arduino Board: Interfaces with both the capacitor and the DHT11 sensor.
  • Capacitor: Acts as a part of the custom humidity sensor.
  • DHT11 Sensor: A standard digital sensor for humidity and temperature.

Software Components 💻

  1. Arduino Code:

    • Reads data from both the capacitor and the DHT11 sensor.
    • Charges and discharges the capacitor cyclically to measure capacitance.
    • Converts capacitance to numerical values for humidity measurement.
    • Includes a watchdog timer to reset the board and prevent overloading.
  2. Python Code:

    • Reads data from the Arduino via serial communication.
    • Calibrates capacitance values and converts them to humidity percentages.
    • Stores data in CSV and JSON files for further use.
    • Synchronizes JSON data with app.py for web visualization.
  3. Web Interface:

    • Flask Application: Uses the Flask library to connect to an HTML page.
    • HTML Page: Visualizes data from the sensors and updates regularly.

Hardware Setup 📐

Hardware Setup

Figure 1: Hardware Setup - Arduino board, capacitor connected (TinkerCAD Simulation)

Software Architecture 🖥️

Circuit Diagram

Figure 2: Software Architecture - Integration of Arduino, Python, and web interface

Web Interface Functionality 🌐

Web Interface Functionality

Figure 3: Web Interface Functionality - Data visualization and real-time updates

Python Code Functionality 🐍

Python Code Functionality

Figure 4: Python Code Flow - Data reading, calibration, and storage

Components 📏🔬

DHT11 Sensor Capacitor Component
DHT11 Sensor Capacitor

Figure 5: DHT11 Sensor and Capacitor Component used for Humidity Measurement

Capacitor_Charge-Discharge

Figure 6: Capacitor Charge-Discharge Cycle for Humidity Measurement

Value_DHTvsCapacitor

Figure 7: Comparison of Humidity Values between DHT11 Sensor and Capacitor

Conclusion 🎯

This project effectively demonstrates the integration of analog and digital components to create a functional humidity sensor system. The combination of Arduino, Python, and web technologies provides a comprehensive solution for environmental monitoring.

Feel free to explore the project and contribute to its development!

About

Creating a smart sensor from a capacitor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •