+21622886281
DC Motor DHT11 ESP32 Project

Cooling system with ESP32 board

Objective of this project:

In this project we will realize a cooling system with the ESP32 card. It mainly uses DTH11 temperature sensor, fan and LCD display.

When the ESP32 board detects a temperature> 26 ° C, the fan starts running until the temperature becomes <26 ° C.

Necessary components

  • ESP32
  • SSD1306 display
  • DTH11 sensor
  • small 5V fan

  • Relay
  • Connecting wires

  • 4 batteries of 1.5V

  • Test plate

Mounting

To perform the assembly, you can connect:

  For relay:

  • pin S to pin D18 of the ESP32 board

  • pin (+) to pin 3.3V of the ESP32 board

  • the pin (-) to the GND pin of the ESP32 board

  • the ON pin to the fan terminal

For fan:

  • the (+) pin to the COM pin of the relay

  • the pin (-) to the GND terminal of the ESP32 board

For DHT11 sensor:

  • the DATA pin to pin D23 of the ESP32 board

  • the VCC pin to the 3.3V pin of the ESP32 board

  • the GND pin to the GND pin of the ESP32 board

SSD1306 display:

  • the SDA pin to the D21 pin of the ESP32 board

  • the SCL pin to pin D22 of the ESP32 board

  • the GND pin to the GND pin of the ESP32 board

  • the VCC pin to the 3.3V pin of the ESP32 board

Micropython program

Here is the program of the cooling system.

 

Note: the following library must be imported: ssd1306




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top