Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP32-Based Flame and Gas Detection System with Buzzer and LCD Display

Image of ESP32-Based Flame and Gas Detection System with Buzzer and LCD Display

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, a buzzer, a 16x2 I2C LCD, a KY-026 Flame Sensor, and an MQ-2 gas sensor. The circuit is designed to detect flame and gas presence and provide visual and auditory alerts.

Component List

  1. ESP32 (30 pin)

    • Description: A powerful microcontroller with built-in Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
  2. Buzzer

    • Description: An audio signaling device.
    • Pins: PIN, GND
  3. 16x2 I2C LCD

    • Description: A 16x2 character LCD with I2C interface.
    • Pins: GND, VCC, SDA, SCL
  4. KY-026 Flame Sensor

    • Description: A sensor module for detecting flame.
    • Pins: AO, GND, VCC, DO
  5. MQ-2

    • Description: A gas sensor module for detecting various gases.
    • Pins: GND, VCC, ANALOG, Digital

Wiring Details

ESP32 (30 pin)

  • GND is connected to:

    • KY-026 Flame Sensor (GND)
    • MQ-2 (GND)
    • Buzzer (GND)
    • 16x2 I2C LCD (GND)
  • 3V3 is connected to:

    • KY-026 Flame Sensor (VCC)
    • MQ-2 (VCC)
  • D34 is connected to:

    • KY-026 Flame Sensor (DO)
  • D23 is connected to:

    • Buzzer (PIN)
  • D35 is connected to:

    • MQ-2 (Digital)
  • Vin is connected to:

    • 16x2 I2C LCD (VCC)
  • D22 is connected to:

    • 16x2 I2C LCD (SCL)
  • D21 is connected to:

    • 16x2 I2C LCD (SDA)

Buzzer

  • PIN is connected to:

    • ESP32 (D23)
  • GND is connected to:

    • ESP32 (GND)
    • 16x2 I2C LCD (GND)

16x2 I2C LCD

  • GND is connected to:

    • ESP32 (GND)
    • Buzzer (GND)
  • VCC is connected to:

    • ESP32 (Vin)
  • SDA is connected to:

    • ESP32 (D21)
  • SCL is connected to:

    • ESP32 (D22)

KY-026 Flame Sensor

  • GND is connected to:

    • ESP32 (GND)
  • VCC is connected to:

    • ESP32 (3V3)
  • DO is connected to:

    • ESP32 (D34)

MQ-2

  • GND is connected to:

    • ESP32 (GND)
  • VCC is connected to:

    • ESP32 (3V3)
  • Digital is connected to:

    • ESP32 (D35)

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 documentation. The wiring details section ensures that each component's connections are clearly outlined, facilitating easy assembly and troubleshooting.