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

Arduino UNO and MQ-5 Gas Sensor Alert System with Buzzer

Image of Arduino UNO and MQ-5 Gas Sensor Alert System with Buzzer

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller, an MQ-5 gas sensor, and a buzzer. The Arduino UNO is used as the central processing unit to read the analog output from the MQ-5 sensor and control the buzzer based on the sensor's readings. The MQ-5 sensor is designed to detect various gases such as LPG, natural gas, and coal gas. The buzzer serves as an audible alert device that can be activated by the Arduino when certain conditions are met, such as the detection of gas concentrations above a predefined threshold.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.

MQ-5 Gas Sensor

  • Description: A gas sensor for detecting LPG, natural gas, and coal gas.
  • Pins: VCC, GND, Digi Out, Analog out.

Buzzer

  • Description: An electromechanical component that produces an audible tone when powered.
  • Pins: POSITIVE, NEGATIVE.

Wiring Details

Arduino UNO

  • 5V connected to MQ-5 VCC.
  • GND connected to MQ-5 GND and Buzzer NEGATIVE.
  • A0 connected to MQ-5 Analog out.
  • D8 connected to Buzzer POSITIVE.

MQ-5 Gas Sensor

  • VCC connected to Arduino UNO 5V.
  • GND connected to Arduino UNO GND.
  • Analog out connected to Arduino UNO A0.

Buzzer

  • POSITIVE connected to Arduino UNO D8.
  • NEGATIVE connected to Arduino UNO GND.

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:

}

Note: The provided code is a template and does not contain any functional logic to interact with the MQ-5 sensor or the buzzer. To complete the circuit's functionality, the code needs to be written to read the analog value from the MQ-5 sensor and activate the buzzer under certain conditions.