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

Arduino UNO Flame Detection and Automatic Fan Control System

View and Edit Project In Cirkit DesignerImage of Arduino UNO Flame Detection and Automatic Fan Control System

Circuit Documentation

Summary

This circuit is designed to detect the presence of a flame using a KY-026 Flame Sensor and control a 220V fan through a 1-Channel Relay. The Arduino UNO microcontroller reads the flame sensor's output and activates the relay to turn on the fan if a flame is detected.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • 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
  2. 1-Channel Relay (5V 10A)

    • Description: A relay module that allows a microcontroller to control high voltage devices.
    • Pins: NC, signal, C, power, NO, ground
  3. KY-026 Flame Sensor

    • Description: A sensor module that detects the presence of a flame.
    • Pins: A0, GND, VCC, D0
  4. 220V Fan

    • Description: A fan that operates on 220V AC.
    • Pins: N, L
  5. Power 220V

    • Description: A 220V AC power source.
    • Pins: hot wire, neutral wire

Wiring Details

Arduino UNO

1-Channel Relay (5V 10A)

KY-026 Flame Sensor

220V Fan

Power 220V

Code Documentation

Arduino UNO Code

#define FLAME 2 
#define FAN 4 

void setup() { 
    pinMode(FLAME, INPUT); 
    pinMode(FAN, OUTPUT); 
}

void loop() { 
    delay(200); 
    int flame = digitalRead(FLAME); 
    if(flame == 1) { 
        digitalWrite(FAN, HIGH); 
    } else { 
        digitalWrite(FAN, LOW); 
    } 
}