Skip to content

DrA1ex/temp-monitor-esp32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature and Humidity Monitor for ESP32

This project provides a solution for monitoring temperature and humidity using an ESP32 microcontroller. It can be used in conjunction with co2-temp-monitor for comprehensive environmental monitoring.

Schematic

To use this project, you will need to build a circuit based on the pin configuration provided in the /src/hardware.h file. If you prefer to use custom pins, you can make the necessary modifications in this file.

The following image showcases the Temperature Humidity Monitor:

Temperature Humidity Monitor

For improved accuracy in measuring CO2 levels, the MQ-135 sensor has been replaced with the MHZ-19B sensor. Also, to improve temperature and humidity accuracy I switched off to BME280, you can find code with DHT in previous commit. Additionally, a DC-DC converter is used to power both the controller and the fan from a single DC-Adapter.

Keep in mind that depending on your specific setup, you may require additional components such as diodes, capacitors, transistors, and resistors.

You also have the option to replicate the scheme and circuit that I used. The following images provide details:

EasyEDA Circuit 1 Circuit 2

If you require the Gerber file for this project, you can download it from here.

Note: The linear stabilizer (7805) may require passive or active cooling. If desired, you can replace it with any impulse converter. In my implementation, I used this module.

Build

This project is designed to be developed using PlatformIO. If you don't have it installed yet, you'll need to install it first.

Configuration

  1. SSL Certificate

    • Place your SSL CA certificate in /src/certs/api.pem.
  2. Credentials

    • Configure your specific credentials in /src/credentials.h.
      • API_URL: Should contain the URL to the receiver's POST method, for example: https://example.com/receiver/sensor.
      • API_KEY: This key will be sent in the API-Key header and can be used by the receiver to verify the sender.
  3. Hardware Configuration

    • Adjust pin configurations in /src/hardware.h to match your hardware setup.

Web UI

To configure monitor visit Web UI at adress http://<YOUR-ESP32-IP>/

UI