Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Smart Fire and Gas Detection System with GSM and OLED Display

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Fire and Gas Detection System with GSM and OLED Display

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

  1. 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.
  2. KY-026 Flame Sensor

    • Pins: A0, GND, VCC, D0
    • Description: Flame detection sensor.
    • Purpose: To detect the presence of flame or fire.
  3. 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.
  4. OLED 1.3"

    • Pins: GND, VCC, SCL, SDA
    • Description: OLED display module.
    • Purpose: To display sensor readings and other information.
  5. 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.
  6. rtc MODULE

    • Pins: 32k, SQW, SCL, SDA, VCC, GND
    • Description: Real-Time Clock (RTC) module.
    • Purpose: To keep track of the current time.
  7. 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.
  8. DFrobot DHT22 Temperature & Humidity Sensor V2

    • Pins: Signal, VCC, GND
    • Description: Temperature and humidity sensor.
    • Purpose: To measure temperature and humidity levels.
  9. 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

KY-026 Flame Sensor (Instance 1)

KY-026 Flame Sensor (Instance 2)

KY-026 Flame Sensor (Instance 3)

KY-026 Flame Sensor (Instance 4)

RELAY MODULE

OLED 1.3"

ESP32 38 PINS

rtc MODULE

MQ2

DFrobot DHT22 Temperature & Humidity Sensor V2

SIM800L GSM Module

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.