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

Arduino UNO Controlled Gas Detection and Alert System with Servomotor and Buzzer

Image of Arduino UNO Controlled Gas Detection and Alert System with Servomotor and Buzzer

Circuit Documentation

Summary of the Circuit

This circuit integrates an Arduino UNO microcontroller with a Servomotor SG90, an MQ-2 gas sensor, and a buzzer. The Arduino UNO serves as the central processing unit, controlling the servomotor and monitoring the gas sensor's output. The servomotor is powered by the 3.3V output from the Arduino, while the MQ-2 sensor is powered by the 5V output. The buzzer is connected to a digital pin on the Arduino and shares a common ground with the other components. The circuit is designed to perform tasks such as gas detection and alerting through the buzzer, as well as actuating the servomotor based on the program loaded into the Arduino.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Purpose: Acts as the central controller for the circuit, interfacing with the sensor, buzzer, and servomotor.

Servomotor SG90

  • Description: A small and lightweight servo motor capable of precise control.
  • Purpose: Receives control signals from the Arduino to adjust its position.

MQ-2 SENSOR

  • Description: A gas sensor capable of detecting a variety of gases including LPG, smoke, and alcohol.
  • Purpose: Monitors the environment for the presence of gases and provides analog and digital signals.

Buzzer

  • Description: An electromechanical component that emits sound when powered.
  • Purpose: Provides an audible alert when triggered by the Arduino.

Wiring Details

Arduino UNO

  • 3.3V: Powers the Servomotor SG90.
  • 5V: Powers the MQ-2 gas sensor.
  • GND: Common ground for the Servomotor SG90, MQ-2 sensor, and buzzer.
  • A0: Receives the analog output from the MQ-2 sensor.
  • D9: Sends control signals to the Servomotor SG90.
  • D8: Controls the buzzer.

Servomotor SG90

  • SIG: Receives control signals from the Arduino UNO (D9).
  • VCC: Powered by the 3.3V output from the Arduino UNO.
  • GND: Connected to the common ground on the Arduino UNO.

MQ-2 SENSOR

  • VCC: Powered by the 5V output from the Arduino UNO.
  • GND: Connected to the common ground on the Arduino UNO.
  • A0: Sends the analog output to the Arduino UNO (A0).

Buzzer

  • PIN: Controlled by the Arduino UNO (D8).
  • GND: Connected to the common ground on the Arduino UNO.

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 include specific functionality. It should be populated with the logic required to read the sensor data, control the servomotor, and activate the buzzer based on certain conditions.