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

Battery-Powered Gas Leak Detector with Alarm Using MQ-2 Sensor and Relay

View and Edit Project In Cirkit DesignerImage of Battery-Powered Gas Leak Detector with Alarm Using MQ-2 Sensor and Relay

Circuit Documentation

Summary

This document provides a detailed description of a circuit that includes a gas sensor (MQ-2), a power supply (2x 18650 batteries), a rocker switch, a voltage regulator (7805), a 1-channel relay, and a piezo buzzer. The circuit is designed to detect gas and trigger an alarm using the piezo buzzer when gas is detected.

Component List

  1. MQ-2 Gas Sensor

    • Pins: GND, VCC, ANALOG, Digital
    • Description: A gas sensor used to detect the presence of gases such as LPG, i-butane, propane, methane, alcohol, hydrogen, and smoke.
    • Purpose in Circuit: Detects gas and sends a digital signal to the relay.
  2. 2x 18650 Batteries

    • Pins: vcc, gnd
    • Description: A pair of 18650 lithium-ion batteries used as the power source for the circuit.
    • Purpose in Circuit: Provides power to the entire circuit.
  3. Rocker Switch

    • Pins: 1, 2
    • Description: A switch used to control the power supply to the circuit.
    • Purpose in Circuit: Turns the circuit on and off.
  4. 7805 Voltage Regulator

    • Pins: Vin, Gnd, Vout
    • Description: A voltage regulator that converts the battery voltage to a stable 5V output.
    • Purpose in Circuit: Provides a stable 5V power supply to the components.
  5. 1 Channel Relay 5V

    • Pins: VCC, GND, IN, NC, COM, NO
    • Description: A relay module used to control the piezo buzzer.
    • Purpose in Circuit: Activates the piezo buzzer when gas is detected.
  6. Piezo Buzzer

    • Pins: pin 1, pin 2
    • Description: A buzzer used to produce an audible alarm.
    • Purpose in Circuit: Sounds an alarm when gas is detected.

Wiring Details

MQ-2 Gas Sensor

2x 18650 Batteries

Rocker Switch

7805 Voltage Regulator

1 Channel Relay 5V

Piezo Buzzer

Code

There is no code provided for this circuit.