Interfacing KY-026 Flame Sensor module with Arduino

Introduction

Interfacing KY-026 Flame Sensor module with Arduino, The KY-026 Flame Sensor module is an essential component in fire detection and prevention systems. This module can detect the presence of a flame or fire source and trigger an alarm or warning signal to alert users to the danger. It is a highly reliable and accurate sensor that is widely used in various fields, such as home appliances, industrial automation, and aerospace.

This module is compatible with popular electronic platforms like Arduino, ESP32, Raspberry Pi, and other microcontrollers. which utilize an infrared receiver to detect the presence of a flame or fire source.

Hardware Required

You will require the following Hardware Components for interfacing the KY-026 Flame Sensor module with Arduino.

Components#Buy From Amazon
Arduino UNO1Buy Now
KY-026 Flame Sensor module1Buy Now
LED 5mm1Buy Now
Jumper WiresBuy Now
Breadboard1Buy Now

What is the KY-026 Flame Sensor module?

The KY-026 Flame Sensor module is an electronic component that uses an infrared receiver to detect the presence of a flame or fire source. It is composed of an infrared receiver, a potentiometer, and a comparator IC. When a flame is present, the infrared receiver will receive a signal, which will be compared to the threshold set by the potentiometer. If the signal exceeds the threshold, the comparator IC will trigger an output signal.

KY-026-Flame-Sensor-module-with-Arduino

Specifications

The module is composed of several components including a 5mm infra-red receiver LED, an LM393 dual differential comparator, a 3296W trimmer potentiometer, six resistors, two indicator LEDs, and four male header pins. The board features a digital and analog output.

Operating Voltage3.3V ~ 5.5V
Maximum Current Consumption20mA
Output SignalDigital (High/Low)
Infrared Wavelength Detection760nm ~ 1100nm
Detection Distanceup to 1m
Sensor Detection Angle60°
Board Dimensions1.5cm x 3.6cm [0.6in x 1.4in]

Features

  1. High sensitivity to flames and fire sources
  2. Quick response time
  3. Adjustable detection threshold
  4. Low power consumption
  5. Easy to integrate with other electronic components

Pinout

KY-026-Flame-Sensor-module-Pinout

Pin Configuration

Pin NamePin Type
VCCPositive supply Pin
GGround Pin
A0Analog Pin
D0Digital Pin

Circuit Diagram

The following circuit shows you the connection of the KY-026 Flame Sensor module with Arduino Please make the connection carefully

KY-026-Flame-Sensor-module-Interfacing-with-Arduino-Circuit

Circuit Connections

ArduinoModule
+5VVCC Pin
GNDGND Pin
A0A0
Pin 3D0

Installing Arduino IDE Software

First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow

Code

//For more Projects: www.arduinocircuit.com
int led = 13; // define the LED pin
int digitalPin = 2; // KY-026 digital interface
int analogPin = A0; // KY-026 analog interface
int digitalVal; // digital readings
int analogVal; //analog readings
void setup()
{
  pinMode(led, OUTPUT);
  pinMode(digitalPin, INPUT);
  //pinMode(analogPin, OUTPUT);
  Serial.begin(9600);
}
void loop()
{
  // Read the digital interface
  digitalVal = digitalRead(digitalPin); 
  if(digitalVal == HIGH) // if flame is detected
  {
    digitalWrite(led, HIGH); // turn ON Arduino's LED
  }
  else
  {
    digitalWrite(led, LOW); // turn OFF Arduino's LED
  }
  // Read the analog interface
  analogVal = analogRead(analogPin); 
  Serial.println(analogVal); // print analog value to serial
  delay(100);
}

Applications

  1. Fire detection and prevention systems
  2. Home appliances, such as gas stoves and water heaters
  3. Industrial automation, such as furnace monitoring
  4. Aerospace, such as flame detection in rockets and spacecraft
  5. Robotics, such as flame detection in industrial robots

Conclusion

The KY-026 Flame Sensor module is an essential component in fire detection and prevention systems. With its high sensitivity and accuracy, quick response time, and adjustable detection threshold, it is a highly reliable and effective sensor that is widely used in various fields, such as home appliances, industrial automation, and aerospace. Whether you are working on a fire detection system for your home or a spacecraft, the KY-026 Flame Sensor module is a must-have component for ensuring safety and preventing potential disasters.

Leave a Comment


error: