ESP32-Based Smart Fire and Gas Detection System with GSM and OLED Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various sensors, a relay module, an OLED display, an RTC module, and an ESP32 microcontroller. The circuit is designed to monitor environmental conditions such as gas levels, flame detection, temperature, and humidity, and it can communicate via a GSM module. The ESP32 microcontroller serves as the central processing unit, interfacing with all the sensors and modules.
Component List
MQ-7 Breakout
- Pins: VCC, GND, DO, AO
- Description: Carbon Monoxide (CO) gas sensor.
- Purpose: To detect the presence of CO gas in the environment.
KY-026 Flame Sensor
- Pins: A0, GND, VCC, D0
- Description: Flame detection sensor.
- Purpose: To detect the presence of flame or fire.
RELAY MODULE
- Pins: NC, COM, INPUT, GND, VCC
- Description: Relay module for switching high-power devices.
- Purpose: To control high-power devices based on sensor inputs.
OLED 1.3"
- Pins: GND, VCC, SCL, SDA
- Description: OLED display module.
- Purpose: To display sensor readings and other information.
ESP32 38 PINS
- 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
- Description: ESP32 microcontroller with 38 pins.
- Purpose: To serve as the central processing unit for the circuit.
rtc MODULE
- Pins: 32k, SQW, SCL, SDA, VCC, GND
- Description: Real-Time Clock (RTC) module.
- Purpose: To keep track of the current time.
MQ2
- Pins: VCC, GND, AOUT, DOUT
- Description: Gas sensor for detecting various gases.
- Purpose: To detect the presence of gases like LPG, smoke, alcohol, propane, hydrogen, methane, and carbon monoxide.
DFrobot DHT22 Temperature & Humidity Sensor V2
- Pins: Signal, VCC, GND
- Description: Temperature and humidity sensor.
- Purpose: To measure temperature and humidity levels.
SIM800L GSM Module
- Pins: 5V, GND, VDD, SIM_TXD, SIM_RXD, RST
- Description: GSM module for cellular communication.
- Purpose: To enable cellular communication for sending data.
Wiring Details
MQ-7 Breakout
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- AO: Connected to ESP32 pin 35
KY-026 Flame Sensor (Instance 1)
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- D0: Connected to ESP32 pin 33
KY-026 Flame Sensor (Instance 2)
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- D0: Connected to ESP32 pin 25
KY-026 Flame Sensor (Instance 3)
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- D0: Connected to ESP32 pin 26
KY-026 Flame Sensor (Instance 4)
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- D0: Connected to ESP32 pin 32
RELAY MODULE
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- INPUT: Connected to ESP32 pin 27
OLED 1.3"
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- SCL: Connected to ESP32 pin 22/SCL
- SDA: Connected to ESP32 pin 21/SDA
ESP32 38 PINS
- GND: Connected to all GND pins of other components
- 5V/VIN: Connected to all VCC pins of other components
- 22/SCL: Connected to SCL pins of RTC module and OLED display
- 21/SDA: Connected to SDA pins of RTC module and OLED display
- 17/TX2: Connected to SIM800L GSM Module SIM_RXD
- 16/RX2: Connected to SIM800L GSM Module SIM_TXD
- 15: Connected to DFrobot DHT22 Temperature & Humidity Sensor V2 Signal
- 34: Connected to MQ2 AOUT
- 35: Connected to MQ-7 Breakout AO
- 32: Connected to KY-026 Flame Sensor (Instance 4) D0
- 33: Connected to KY-026 Flame Sensor (Instance 1) D0
- 25: Connected to KY-026 Flame Sensor (Instance 2) D0
- 26: Connected to KY-026 Flame Sensor (Instance 3) D0
- 27: Connected to RELAY MODULE INPUT
rtc MODULE
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- SCL: Connected to ESP32 pin 22/SCL
- SDA: Connected to ESP32 pin 21/SDA
MQ2
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- AOUT: Connected to ESP32 pin 34
DFrobot DHT22 Temperature & Humidity Sensor V2
- VCC: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- Signal: Connected to ESP32 pin 15
SIM800L GSM Module
- VDD: Connected to ESP32 5V/VIN
- GND: Connected to ESP32 GND
- SIM_TXD: Connected to ESP32 pin 16/RX2
- SIM_RXD: Connected to ESP32 pin 17/TX2
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code (if any). Each component is described in detail, and the wiring connections are clearly specified to ensure proper assembly and functionality of the circuit.