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

Arduino UNO and ESP32-Based Gas Detection and Alert System with GSM and LCD Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO and ESP32-Based Gas Detection and Alert System with GSM and LCD Display

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO, various sensors, relays, fans, a siren, a GSM module, and other components. The circuit is designed to monitor environmental conditions and control actuators based on sensor inputs. The Arduino UNO serves as the central microcontroller, interfacing with various components to perform the desired operations.

Component List

  1. Arduino UNO

    • Description: Microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. MQ-5

    • Description: Gas sensor for detecting LPG, natural gas, and coal gas.
    • Pins: VCC, GND, Digi Out, Analog out
  3. 120 Fan 12V

    • Description: 12V cooling fan.
    • Pins: 12V+, GND
  4. 12V 200Ah Battery

    • Description: High-capacity battery for power supply.
    • Pins: GND, 12V
  5. Siren

    • Description: Alarm siren for alerting.
    • Pins: Positive, Ground
  6. Relay 4 Channel 5V

    • Description: 4-channel relay module for switching high-power devices.
    • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
  7. Rocker Switch

    • Description: On/Off switch.
    • Pins: output, input
  8. GSM SIM900

    • Description: GSM module for communication.
    • Pins: A5, A4, A3, A2, A1, A0, 5V, GND, 3.3V, RESET, D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF
  9. 12V Pneumatic Solenoid Valve

    • Description: Solenoid valve for controlling air flow.
    • Pins: VCC, GND
  10. LCD Screen 16x2 I2C

    • Description: 16x2 character LCD with I2C interface.
    • Pins: SCL, SDA, VCC, GND
  11. 12V Power Supply

    • Description: Power supply unit providing 12V output.
    • Pins: +, -
  12. ESP32

    • Description: Wi-Fi and Bluetooth microcontroller.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
  13. 48V to 5V Converter

    • Description: Voltage converter from 48V to 5V.
    • Pins: out+, out--, in+, in--

Wiring Details

Arduino UNO

MQ-5

120 Fan 12V

12V 200Ah Battery

Siren

Relay 4 Channel 5V

Rocker Switch

GSM SIM900

12V Pneumatic Solenoid Valve

LCD Screen 16x2 I2C

ESP32

48V to 5V Converter

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Additional Documentation (documentation.txt)