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

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

Image of KY-026 Sensor de Flama
Cirkit Designer LogoDesign with KY-026 Sensor de Flama in Cirkit Designer

Introduction

The KY-026 Flame Sensor is a compact and reliable device designed to detect the presence of flames or fire. It operates by sensing infrared (IR) radiation emitted by flames using a photodiode and a comparator circuit. The sensor provides both digital and analog outputs, making it versatile for various applications.

Explore Projects Built with KY-026 Sensor de Flama

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 Sensor de Flama 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
Arduino UNO and ESP32-CAM Based Smart Fire and Gas Detection System with Battery Power
Image of HANDAAAA: A project utilizing KY-026 Sensor de Flama in a practical application
This circuit is a multi-sensor monitoring system that uses an Arduino UNO to collect data from a KY-026 flame sensor, an MQ-2 gas sensor, and a DHT22 temperature and humidity sensor. The ESP32-CAM module is integrated for potential image or video capture, and the entire system is powered by two 18650 Li-ion batteries.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO-Based Fire Detection and Extinguishing Robot with Flame Sensors and Servo Control
Image of automatic fire fighting car: A project utilizing KY-026 Sensor de Flama in a practical application
This circuit is a fire-detecting robot that uses three KY-026 flame sensors to detect fire and control its movement via two hobby gearmotors driven by an L293D motor driver. An Arduino UNO processes the sensor data to navigate towards the fire and activates a servo motor to aim a fire extinguisher nozzle, controlled by a solenoid valve, to extinguish the fire.
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 Sensor de Flama 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

Explore Projects Built with KY-026 Sensor de Flama

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 Sensor de Flama 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 HANDAAAA: A project utilizing KY-026 Sensor de Flama in a practical application
Arduino UNO and ESP32-CAM Based Smart Fire and Gas Detection System with Battery Power
This circuit is a multi-sensor monitoring system that uses an Arduino UNO to collect data from a KY-026 flame sensor, an MQ-2 gas sensor, and a DHT22 temperature and humidity sensor. The ESP32-CAM module is integrated for potential image or video capture, and the entire system is powered by two 18650 Li-ion batteries.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of automatic fire fighting car: A project utilizing KY-026 Sensor de Flama in a practical application
Arduino UNO-Based Fire Detection and Extinguishing Robot with Flame Sensors and Servo Control
This circuit is a fire-detecting robot that uses three KY-026 flame sensors to detect fire and control its movement via two hobby gearmotors driven by an L293D motor driver. An Arduino UNO processes the sensor data to navigate towards the fire and activates a servo motor to aim a fire extinguisher nozzle, controlled by a solenoid valve, to extinguish the fire.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of soil sensor: A project utilizing KY-026 Sensor de Flama 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

Common Applications and Use Cases

  • Fire detection systems
  • Safety and alarm systems
  • Industrial flame monitoring
  • Robotics and automation projects
  • Educational and DIY electronics projects

Technical Specifications

The KY-026 Flame Sensor is designed for ease of use and integration into electronic systems. Below are its key technical details:

Parameter Specification
Operating Voltage 3.3V to 5V
Output Type Digital (D0) and Analog (A0)
Detection Range Up to 80 cm (depending on flame size)
Detection Angle 60°
Operating Temperature -25°C to 85°C
Dimensions 30mm x 15mm x 8mm

Pin Configuration and Descriptions

The KY-026 Flame Sensor has four pins, as described in the table below:

Pin Name Description
1 VCC Power supply pin. Connect to 3.3V or 5V.
2 GND Ground pin. Connect to the ground of the circuit.
3 D0 Digital output pin. Outputs HIGH (1) when a flame is detected, LOW (0) otherwise.
4 A0 Analog output pin. Provides a variable voltage proportional to the flame's intensity.

Usage Instructions

The KY-026 Flame Sensor is straightforward to use in a circuit. Follow the steps below to integrate it into your project:

Connecting the Sensor

  1. Power the Sensor: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to the ground.
  2. Digital Output (D0): Connect the D0 pin to a digital input pin on your microcontroller (e.g., Arduino) to detect the presence of a flame.
  3. Analog Output (A0): Optionally, connect the A0 pin to an analog input pin on your microcontroller to measure the flame's intensity.

Example Circuit with Arduino UNO

Below is an example of how to connect the KY-026 Flame Sensor to an Arduino UNO:

KY-026 Pin Arduino UNO Pin
VCC 5V
GND GND
D0 Digital Pin 2
A0 Analog Pin A0

Example Arduino Code

The following Arduino code demonstrates how to use the KY-026 Flame Sensor to detect flames and output the results via the Serial Monitor:

// Define pin connections
const int flameDigitalPin = 2; // Digital output pin (D0)
const int flameAnalogPin = A0; // Analog output pin (A0)

void setup() {
  pinMode(flameDigitalPin, INPUT); // Set D0 as input
  Serial.begin(9600); // Initialize serial communication
}

void loop() {
  // Read digital output
  int flameDetected = digitalRead(flameDigitalPin);
  
  // Read analog output
  int flameIntensity = analogRead(flameAnalogPin);
  
  // Print results to Serial Monitor
  if (flameDetected == HIGH) {
    Serial.println("Flame detected!");
  } else {
    Serial.println("No flame detected.");
  }
  
  Serial.print("Flame Intensity (Analog): ");
  Serial.println(flameIntensity);
  
  delay(500); // Wait for 500ms before next reading
}

Important Considerations and Best Practices

  • Adjust Sensitivity: The sensor includes a potentiometer to adjust the sensitivity of the digital output. Turn the potentiometer clockwise or counterclockwise to fine-tune the detection threshold.
  • Avoid False Positives: The sensor is sensitive to IR radiation, so avoid placing it near other IR sources (e.g., sunlight, IR LEDs) to prevent false detections.
  • Optimal Placement: Position the sensor within the specified detection range and angle for accurate results.
  • Power Supply: Ensure a stable power supply to avoid erratic behavior.

Troubleshooting and FAQs

Common Issues and Solutions

Issue Possible Cause Solution
Sensor not detecting flames Incorrect wiring or insufficient power Verify connections and ensure a stable 3.3V or 5V power supply.
False flame detection Interference from other IR sources Shield the sensor from external IR sources or adjust its placement.
Analog output not varying Flame is outside the detection range Ensure the flame is within the specified range and angle of the sensor.
Digital output always HIGH or LOW Sensitivity not properly adjusted Use the potentiometer to fine-tune the sensitivity of the digital output.

FAQs

  1. Can the KY-026 Flame Sensor detect flames through glass?
    No, the sensor cannot detect flames through glass as it blocks IR radiation.

  2. What is the maximum distance for flame detection?
    The sensor can detect flames up to 80 cm away, depending on the flame's size and intensity.

  3. Can I use the KY-026 Flame Sensor outdoors?
    While the sensor can operate in a wide temperature range, it is not waterproof. Use appropriate enclosures for outdoor applications.

  4. How do I know if the sensor is working?
    The onboard LED will light up when a flame is detected, providing a visual indication of its operation.

By following this documentation, you can effectively integrate the KY-026 Flame Sensor into your projects for reliable flame detection.