ESP32-Based Smart Environmental Monitoring System with Wi-Fi Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, various sensors, a display module, a stepper motor driver, a buzzer, and a fan. The circuit is designed to interface with multiple sensors and output devices, providing a comprehensive system for data acquisition and display.
Component List
ESP32 38 PINS
- Description: A versatile microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: GND, 23, 22/SCL, 1, 2, 21/SDA, 19, 18, 5, 17/TX2, 16/RX2, 4, 0, 15, D1, D0, CLK, 3V3, EN, VP, VN, 34, 35, 32, 33, 25, 26, 27, 14, 12, 13, D2, D3, 11, 5V/VIN
DHT22
- Description: A digital temperature and humidity sensor.
- Pins: +, Out, -
HX711 Weighing Sensor Module
- Description: A precision 24-bit analog-to-digital converter (ADC) designed for weigh scales and industrial control applications.
- Pins: B-, B+, A-, A+, E-, E+, VCC, CK/TX, DO/RX, GND
DS18B20
- Description: A digital thermometer providing 9-bit to 12-bit Celsius temperature measurements.
- Pins: OUTPUT, VCC 3.3V-5V DC, GND
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
TB660 Stepper Motor Driver
- Description: A driver for controlling stepper motors.
- Pins: ENA - (ENA), ENA+ (+5V), DIR - (DIR), DIR+ (+5V), PUL - (PUL), VCC, GND, A+, A-, B+, B-, PUL+ (+5V)
Adafruit TFT 1.8 inch 160x128 w microSD
- Description: A small TFT display with microSD card slot.
- Pins: LITE, MISO, SCLK, MOSI, TFTCS, CARDCS, TFTDC, RESET, +5V, GND
Fan
- Description: A cooling fan.
- Pins: GND, 5V
MH-Z19B
- Description: A CO2 sensor.
- Pins: HD, TX, RX, V0, PWM, GND, Vin
Power Supply 24 VDC
- Description: A power supply unit providing 24V DC.
- Pins: L, N, E, V+, V-
Wiring Details
ESP32 38 PINS
- GND: Connected to GND of MH-Z19B, HX711 Weighing Sensor Module, Adafruit TFT 1.8 inch 160x128 w microSD, DS18B20, Buzzer, Fan, and DHT22.
- 23: Connected to MOSI of Adafruit TFT 1.8 inch 160x128 w microSD.
- 19: Connected to MISO of Adafruit TFT 1.8 inch 160x128 w microSD.
- 18: Connected to SCLK of Adafruit TFT 1.8 inch 160x128 w microSD.
- 5: Connected to TFTCS of Adafruit TFT 1.8 inch 160x128 w microSD.
- 17/TX2: Connected to RX of MH-Z19B and CK/TX of HX711 Weighing Sensor Module.
- 16/RX2: Connected to TX of MH-Z19B and DO/RX of HX711 Weighing Sensor Module.
- 4: Connected to CARDCS of Adafruit TFT 1.8 inch 160x128 w microSD.
- 0: Connected to RESET of Adafruit TFT 1.8 inch 160x128 w microSD.
- 2: Connected to TFTDC of Adafruit TFT 1.8 inch 160x128 w microSD.
- 15: Connected to OUTPUT of DS18B20.
- 3V3: Connected to VCC of DS18B20, ENA+ of TB660 Stepper Motor Driver, VCC of HX711 Weighing Sensor Module, + of DHT22, and LITE of Adafruit TFT 1.8 inch 160x128 w microSD.
- VN: Connected to Vin of MH-Z19B.
- 14: Connected to PWM of MH-Z19B and Out of DHT22.
- 13: Connected to PIN of Buzzer.
- 5V/VIN: Connected to 5V of Fan.
DHT22
- +: Connected to 3V3 of ESP32 38 PINS.
- Out: Connected to 14 of ESP32 38 PINS.
- -: Connected to GND of ESP32 38 PINS.
HX711 Weighing Sensor Module
- GND: Connected to GND of ESP32 38 PINS.
- VCC: Connected to 3V3 of ESP32 38 PINS.
- CK/TX: Connected to 17/TX2 of ESP32 38 PINS.
- DO/RX: Connected to 16/RX2 of ESP32 38 PINS.
DS18B20
- OUTPUT: Connected to 15 of ESP32 38 PINS.
- VCC 3.3V-5V DC: Connected to 3V3 of ESP32 38 PINS.
- GND: Connected to GND of ESP32 38 PINS.
Buzzer
- PIN: Connected to 13 of ESP32 38 PINS.
- GND: Connected to GND of ESP32 38 PINS.
TB660 Stepper Motor Driver
- ENA+ (+5V): Connected to 3V3 of ESP32 38 PINS.
Adafruit TFT 1.8 inch 160x128 w microSD
- GND: Connected to GND of ESP32 38 PINS.
- MOSI: Connected to 23 of ESP32 38 PINS.
- MISO: Connected to 19 of ESP32 38 PINS.
- SCLK: Connected to 18 of ESP32 38 PINS.
- TFTCS: Connected to 5 of ESP32 38 PINS.
- CARDCS: Connected to 4 of ESP32 38 PINS.
- TFTDC: Connected to 2 of ESP32 38 PINS.
- RESET: Connected to 0 of ESP32 38 PINS.
- LITE: Connected to 3V3 of ESP32 38 PINS.
Fan
- GND: Connected to GND of ESP32 38 PINS.
- 5V: Connected to 5V/VIN of ESP32 38 PINS.
MH-Z19B
- GND: Connected to GND of ESP32 38 PINS.
- RX: Connected to 17/TX2 of ESP32 38 PINS.
- TX: Connected to 16/RX2 of ESP32 38 PINS.
- Vin: Connected to VN of ESP32 38 PINS.
- PWM: Connected to 14 of ESP32 38 PINS.
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a detailed list of components and their wiring connections. This should serve as a useful reference for understanding and replicating the circuit.