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

Arduino Mega 2560-Based Fire and Gas Detection System with Automated Water Pump

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560-Based Fire and Gas Detection System with Automated Water Pump

Circuit Documentation

Summary

This circuit is designed using an Arduino Mega 2560 microcontroller to interface with various sensors and actuators. The components include a flame sensor, gas sensor, temperature sensor, buzzer, LED, relay, water pump, and servo motor. The circuit is powered by a 12V power supply, and the Arduino Mega 2560 provides the necessary control signals to the connected components.

Component List

  1. Arduino Mega 2560

    • Description: A microcontroller board based on the ATmega2560.
    • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
  2. KY-026 Flame Sensor

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

    • Description: A sensor module for detecting gas.
    • Pins: GND, VCC, ANALOG, Digital
  4. MAX6675 Module

    • Description: A module for measuring temperature using a thermocouple.
    • Pins: GND, VCC, SCK, CS, SO, -, +
  5. Buzzer

    • Description: An electronic device that emits sound.
    • Pins: PIN, GND
  6. LED: Two Pin (red)

    • Description: A red LED with two pins.
    • Pins: cathode, anode
  7. 2ch Relay

    • Description: A two-channel relay module.
    • Pins: NC, COM, NO, VCC, IN2, IN1, GND
  8. 5V Mini Water Pump

    • Description: A small water pump operating at 5V.
    • Pins: positive pin, negative pin
  9. 12V Power Supply

    • Description: A power supply providing 12V.
    • Pins: +, -
  10. MG90S Servo Motor

    • Description: A small servo motor.
    • Pins: SIG, VCC, GND

Wiring Details

Arduino Mega 2560

KY-026 Flame Sensor

MQ-2 Gas Sensor

MAX6675 Module

Buzzer

LED: Two Pin (red)

2ch Relay

5V Mini Water Pump

12V Power Supply

MG90S Servo Motor

Documented Code

sketch.ino

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

}

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

}

documentation.txt