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

Arduino UNO Flame Detection System with LED Indicators and Buzzer Alert

View and Edit Project In Cirkit DesignerImage of Arduino UNO Flame Detection System with LED Indicators and Buzzer Alert

Circuit Documentation

Summary

This circuit is designed to detect the presence of a flame using a KY-026 Flame Sensor. When a flame is detected, a red LED and a buzzer are activated. If no flame is detected, a green LED is turned on. The circuit is controlled by an Arduino UNO microcontroller.

Component List

  1. LED: Two Pin (red)

    • Description: A red LED used to indicate the presence of a flame.
    • Pins: Cathode, Anode
  2. KY-026 Flame Sensor

    • Description: A sensor used to detect the presence of a flame.
    • Pins: A0, GND, VCC, D0
  3. Arduino UNO

    • Description: A microcontroller used to control the circuit.
    • 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
  4. LED: Two Pin (green)

    • Description: A green LED used to indicate the absence of a flame.
    • Pins: Cathode, Anode
  5. Buzzer

    • Description: A buzzer used to provide an audible alert when a flame is detected.
    • Pins: PIN, GND
  6. Resistor (200 Ohms)

    • Description: A resistor used to limit the current through the LEDs and buzzer.
    • Pins: Pin1, Pin2

Wiring Details

LED: Two Pin (red)

KY-026 Flame Sensor

Arduino UNO

LED: Two Pin (green)

Buzzer

Code Documentation

const int buzzerPin = 12;
const int flamePin = 11;
int Flame = HIGH;
int redled = 5;
int greenled = 6;

void setup() 
{
  pinMode(buzzerPin, OUTPUT);
  pinMode(redled, OUTPUT);
  pinMode(greenled, OUTPUT);
  pinMode(flamePin, INPUT);
  Serial.begin(9600);
}

void loop() 
{
  Flame = digitalRead(flamePin);
  if (Flame == LOW)
  {
    digitalWrite(buzzerPin, HIGH);
    digitalWrite(redled, HIGH);
    digitalWrite(greenled, LOW);
  }
  else
  {
    digitalWrite(buzzerPin, LOW);
    digitalWrite(greenled, HIGH);
    digitalWrite(redled, LOW);
  }
}

Code Explanation