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

Arduino-Based Flame Detection and Automatic Fan Control System

View and Edit Project In Cirkit DesignerImage of Arduino-Based 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 is used to process the sensor input and control the relay, which in turn controls the fan.

Component List

  1. 1-Channel Relay (5V 10A)

    • Description: A relay module that allows a low voltage (5V) control signal to switch a high voltage (up to 10A) load.
    • Pins: NC, signal, C, power, NO, ground
  2. KY-026 Flame Sensor

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

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

    • Description: A power source providing 220V AC.
    • Pins: hot wire, neutral wire
  5. 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

Wiring Details

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); 
    } 
}

Explanation: