Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use KY-026 Flame Sensor: Examples, Pinouts, and Specs

Image of KY-026 Flame Sensor
Cirkit Designer LogoDesign with KY-026 Flame Sensor in Cirkit Designer

Introduction

The KY-026 Flame Sensor module is an electronic device capable of detecting fire or other light sources that emit wavelengths primarily in the range of 760nm to 1100nm. It is commonly used in safety systems for fire detection and can also serve in robotics and DIY projects where flame sensing is required. The module is sensitive to flame and other sources of infrared light, and it outputs a digital signal when a flame is detected.

Explore Projects Built with KY-026 Flame Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32 and KY-026 Flame Sensor Fire Detection System
Image of flame sensor testing: A project utilizing KY-026 Flame Sensor in a practical application
This circuit consists of an ESP32 microcontroller connected to a KY-026 Flame Sensor. The ESP32 provides power to the flame sensor and reads the digital output signal from the sensor to detect the presence of a flame.
Cirkit Designer LogoOpen Project in Cirkit Designer
Flame Sensor Activated Water Pump and Buzzer System with LED Indicator
Image of soil sensor: A project utilizing KY-026 Flame Sensor in a practical application
This circuit is a flame detection and response system. When the KY-026 Flame Sensor detects a flame, it activates a PNP transistor, which in turn powers a water pump and a buzzer to alert and extinguish the flame. Additionally, an LED indicator is used to show the system's status, and a rocker switch controls the power supply from a 5V battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Flame Detection System with LED and Piezo Speaker Alert
Image of MQ2 LED: A project utilizing KY-026 Flame Sensor in a practical application
This circuit uses an Arduino UNO to monitor a KY-026 flame sensor. When a flame is detected, the Arduino activates a piezo speaker and a red LED as indicators.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Flame Detection System
Image of flame_wiring: A project utilizing KY-026 Flame Sensor in a practical application
This circuit connects an Arduino UNO to a KY-026 Flame Sensor for detecting the presence of a flame. The Arduino is powered by its 5V pin, and it monitors the digital output (DO) from the flame sensor on its digital pin D6. The code provided for the Arduino is currently a template without specific functionality, indicating that the user is expected to implement the flame detection logic in the loop function.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with KY-026 Flame Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of flame sensor testing: A project utilizing KY-026 Flame Sensor in a practical application
ESP32 and KY-026 Flame Sensor Fire Detection System
This circuit consists of an ESP32 microcontroller connected to a KY-026 Flame Sensor. The ESP32 provides power to the flame sensor and reads the digital output signal from the sensor to detect the presence of a flame.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of soil sensor: A project utilizing KY-026 Flame Sensor in a practical application
Flame Sensor Activated Water Pump and Buzzer System with LED Indicator
This circuit is a flame detection and response system. When the KY-026 Flame Sensor detects a flame, it activates a PNP transistor, which in turn powers a water pump and a buzzer to alert and extinguish the flame. Additionally, an LED indicator is used to show the system's status, and a rocker switch controls the power supply from a 5V battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MQ2 LED: A project utilizing KY-026 Flame Sensor in a practical application
Arduino UNO Flame Detection System with LED and Piezo Speaker Alert
This circuit uses an Arduino UNO to monitor a KY-026 flame sensor. When a flame is detected, the Arduino activates a piezo speaker and a red LED as indicators.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of flame_wiring: A project utilizing KY-026 Flame Sensor in a practical application
Arduino UNO Based Flame Detection System
This circuit connects an Arduino UNO to a KY-026 Flame Sensor for detecting the presence of a flame. The Arduino is powered by its 5V pin, and it monitors the digital output (DO) from the flame sensor on its digital pin D6. The code provided for the Arduino is currently a template without specific functionality, indicating that the user is expected to implement the flame detection logic in the loop function.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Fire alarm systems
  • Firefighting robots
  • Flame proximity detection
  • Safety switches in industrial settings

Technical Specifications

Key Technical Details

  • Operating Voltage: 3.3V to 5V
  • Detection Wavelength: 760nm to 1100nm
  • Digital Output: High when flame is detected (0V - Low, Vcc - High)
  • Analog Output: Higher voltage as the flame intensity increases
  • Detection Angle: Approximately 60 degrees
  • Sensitivity: Adjustable via onboard potentiometer

Pin Configuration and Descriptions

Pin Description
A0 Analog output pin. Provides an analog voltage proportional to flame intensity.
D0 Digital output pin. Outputs HIGH when flame is detected based on the threshold set by the potentiometer.
GND Ground pin. Connects to the ground of the power supply.
Vcc Power supply pin. Accepts 3.3V to 5V from an external power source.

Usage Instructions

How to Use the Component in a Circuit

  1. Connect the Vcc pin to the 5V output on the Arduino UNO or the power supply.
  2. Connect the GND pin to the ground on the Arduino UNO or the power supply.
  3. Connect the A0 pin to an analog input on the Arduino UNO if you wish to measure the intensity of the flame.
  4. Connect the D0 pin to a digital input on the Arduino UNO if you wish to detect the presence of a flame.

Important Considerations and Best Practices

  • Avoid exposing the sensor to bright lights or sunlight as it may trigger false alarms.
  • Adjust the onboard potentiometer to set the threshold for the digital output.
  • Use a pull-up or pull-down resistor on the digital output if necessary.
  • Keep the sensor at a safe distance from flames to avoid damage.
  • Test the sensor in the intended environment to calibrate and adjust sensitivity.

Example Code for Arduino UNO

// KY-026 Flame Sensor Example Code
int flamePin = 2;    // Flame sensor digital output connected to digital pin 2
int flameDetected = LOW; // Variable to hold the flame detection status

void setup() {
  pinMode(flamePin, INPUT); // Set the flame sensor pin as input
  Serial.begin(9600);      // Start serial communication at 9600 baud rate
}

void loop() {
  flameDetected = digitalRead(flamePin); // Read the flame sensor output
  if (flameDetected == HIGH) {
    Serial.println("Flame detected!"); // If HIGH, flame is detected
  } else {
    Serial.println("No flame detected."); // If LOW, no flame is detected
  }
  delay(1000); // Wait for 1 second before the next read
}

Troubleshooting and FAQs

Common Issues Users Might Face

  • False Alarms: Adjust the sensitivity potentiometer to reduce false positives.
  • No Response: Ensure the sensor is connected properly and receiving power.
  • Inconsistent Readings: Avoid placing the sensor in environments with rapid temperature changes.

Solutions and Tips for Troubleshooting

  • If the sensor is not detecting flame, try decreasing the threshold by turning the potentiometer.
  • Ensure there are no obstructions in front of the sensor that could block its view.
  • Check all connections and ensure that the sensor is not damaged.

FAQs

Q: Can the KY-026 Flame Sensor detect smoke? A: No, the KY-026 is designed to detect flames and infrared light, not smoke.

Q: What is the range of detection for the KY-026 Flame Sensor? A: The sensor can detect flames within approximately 60 degrees of its field of view.

Q: How do I adjust the sensitivity of the sensor? A: Turn the onboard potentiometer clockwise to increase sensitivity and counterclockwise to decrease it.

Q: Can the sensor differentiate between different light sources? A: The sensor is designed to detect infrared light and may not differentiate between different IR light sources.

This documentation provides a comprehensive guide to using the KY-026 Flame Sensor module with an Arduino UNO. For further assistance, consult the manufacturer's datasheet or contact technical support.