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 design that includes various sensors, a microcontroller, a display, and other components. The circuit is designed to interface with an ESP32 microcontroller, which collects data from sensors, drives a display, and controls other peripherals.
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, -
Adafruit SGP30
- Description: A gas sensor for measuring air quality.
- Pins: VCC, 3.3V, GND, SCL, SDA
HX711 Weighing Sensor Module
- Description: A precision 24-bit analog-to-digital converter (ADC) designed for weigh scales.
- Pins: B-, B+, A-, A+, E-, E+, VCC, CK/TX, DO/RX, GND
DS18B20
- Description: A digital thermometer.
- 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 support.
- Pins: LITE, MISO, SCLK, MOSI, TFTCS, CARDCS, TFTDC, RESET, +5V, GND
Fan
- Description: A cooling fan.
- Pins: GND, 5V
Adafruit MiCS-5524 Gas Sensor
- Description: A gas sensor for detecting various gases.
- Pins: 5.0V, GND, AOUT, ENABLE
LM2596
- Description: A DC-DC buck converter.
- Pins: IN, OUT
MW LRS-350-24
- Description: A 24V power supply.
- Pins: +24V Output, -24V Output, GND, N, L
NEMA 23
- Description: A stepper motor.
- Pins: B2 Red, B1 Blue, A2 Black, A1 Green
Wiring Details
ESP32 38 PINS
- GND: Connected to GND of HX711 Weighing Sensor Module, Adafruit TFT 1.8 inch 160x128 w microSD, Adafruit SGP30, Fan, Adafruit MiCS-5524 Gas Sensor, DS18B20, Buzzer, DHT22, LM2596
- 23: Connected to MOSI of Adafruit TFT 1.8 inch 160x128 w microSD
- 22/SCL: Connected to SCL of Adafruit SGP30
- 21/SDA: Connected to SDA of Adafruit SGP30
- 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 CK/TX of HX711 Weighing Sensor Module
- 16/RX2: Connected to 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 HX711 Weighing Sensor Module, VCC 3.3V-5V DC of DS18B20, LITE of Adafruit TFT 1.8 inch 160x128 w microSD, ENA+ (+5V) of TB660 Stepper Motor Driver, + of DHT22, VCC of Adafruit SGP30
- 34: Connected to AOUT of Adafruit MiCS-5524 Gas Sensor
- 25: Connected to ENABLE of Adafruit MiCS-5524 Gas Sensor
- 14: Connected to Out of DHT22
- 13: Connected to PIN of Buzzer
- 5V/VIN: Connected to 5V of Fan, 5.0V of Adafruit MiCS-5524 Gas Sensor, OUT of LM2596
DHT22
- +: Connected to 3V3 of ESP32 38 PINS
- Out: Connected to 14 of ESP32 38 PINS
- -: Connected to GND of ESP32 38 PINS
Adafruit SGP30
- VCC: Connected to 3V3 of ESP32 38 PINS
- GND: Connected to GND of ESP32 38 PINS
- SCL: Connected to 22/SCL of ESP32 38 PINS
- SDA: Connected to 21/SDA of ESP32 38 PINS
HX711 Weighing Sensor Module
- GND: Connected to GND of ESP32 38 PINS
- CK/TX: Connected to 17/TX2 of ESP32 38 PINS
- DO/RX: Connected to 16/RX2 of ESP32 38 PINS
- VCC: Connected to 3V3 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
- VCC: Connected to +24V Output of MW LRS-350-24
- GND: Connected to -24V Output of MW LRS-350-24
- A+: Connected to A1 Green of NEMA 23
- A-: Connected to A2 Black of NEMA 23
- B+: Connected to B1 Blue of NEMA 23
- B-: Connected to B2 Red of NEMA 23
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
Adafruit MiCS-5524 Gas Sensor
- 5.0V: Connected to 5V/VIN of ESP