Stufin
Home Quick Cart Profile

4Pin KY-026 Flame Sensor Module

Buy Now

Component Name

4Pin KY-026 Flame Sensor Module

Overview

The 4Pin KY-026 Flame Sensor Module is a digital flame sensor designed to detect flames and fires. It is a compact, easy-to-use module that provides a reliable and accurate way to sense flames, making it suitable for a wide range of applications, including fire alarm systems, industrial automation, and robotics.

Functionality

The KY-026 Flame Sensor Module uses a specialized photodiode sensor to detect infrared (IR) radiation emitted by flames. When a flame is present, the sensor detects the IR radiation and sends an electrical signal to the output pin. The module then amplifies and processes the signal, providing a digital output that indicates the presence or absence of a flame.

Key Features

  • High Sensitivity: The module features a high-sensitivity photodiode sensor that can detect small flames from a distance of up to 1 meter.
  • Digital Output: The module provides a digital output (0V or 5V) that indicates the presence or absence of a flame, making it easy to interface with microcontrollers and other digital devices.
  • Low Power Consumption: The module operates at a low power consumption of <20mA, making it suitable for battery-powered applications.
  • Compact Design: The module has a compact design with a small footprint, making it easy to integrate into a wide range of applications.
  • Easy to Use: The module requires minimal setup and calibration, making it easy to use for both technical professionals and hobbyists.
  • Operating Voltage: The module can operate at a wide range of voltages (5V to 24V) making it suitable for a variety of applications.
  • Output Signal: The module provides a strong output signal that can be easily read by most microcontrollers and digital devices.

Pinout

  • VCC: Power input (5V to 24V)
  • GND: Ground input
  • OUT: Digital output (0V or 5V)
  • EN: Enable input (active low, optional)
The KY-026 Flame Sensor Module has 4 pins

Applications

  • Fire Alarm Systems: The KY-026 Flame Sensor Module is suitable for use in fire alarm systems, where it can detect flames and trigger an alarm or notification.
  • Industrial Automation: The module can be used in industrial automation applications to detect flames and shut off machinery or equipment.
  • Robotics: The module can be used in robotics applications to detect flames and trigger an emergency response.
  • Home Automation: The module can be used in home automation applications to detect flames and trigger an alarm or notification.

Precautions

  • Avoid Direct Exposure to Flames: The module should not be exposed directly to flames, as it may be damaged or destroyed.
  • Use in Well-Ventilated Areas: The module should be used in well-ventilated areas to prevent the accumulation of combustible gases.
  • Follow Safety Guidelines: The module should be used in accordance with local safety guidelines and regulations.

Pin Configuration

  • 4Pin KY-026 Flame Sensor Module Documentation
  • Overview
  • The KY-026 Flame Sensor Module is a digital flame sensor module designed to detect flames or fires. It is a popular component in IoT projects, robotics, and automation systems. This module has a 4-pin connector, making it easy to integrate into various applications.
  • Pin Description
  • Here is a detailed explanation of each pin on the KY-026 Flame Sensor Module:
  • Pin 1: VCC (Power Supply)
  • Function: Provides power to the module
  • Voltage: 5V (recommended), but can operate between 3.3V to 5.5V
  • Description: Connect to a 5V power source, such as an Arduino board or a breadboard power supply.
  • Pin 2: GND (Ground)
  • Function: Ground connection for the module
  • Description: Connect to a ground pin on your microcontroller board or breadboard.
  • Pin 3: DO (Digital Output)
  • Function: Provides a digital signal indicating the presence or absence of flame
  • Signal: HIGH (3.3V to 5V) when flame is detected, LOW (0V) when no flame is detected
  • Description: Connect to a digital input pin on your microcontroller board, such as Arduino's digital pins.
  • Pin 4: AO (Analog Output)
  • Function: Provides an analog signal representing the intensity of the detected flame
  • Signal: 0V to 5V, with higher voltage indicating a more intense flame
  • Description: Connect to an analog input pin on your microcontroller board, such as Arduino's analog input pins (A0-A5).
  • Connection Structure
  • To connect the KY-026 Flame Sensor Module to your microcontroller board or breadboard:
  • 1. VCC (Pin 1) Connect to 5V power supply (e.g., Arduino's 5V pin or breadboard power supply)
  • 2. GND (Pin 2) Connect to ground (e.g., Arduino's GND pin or breadboard ground)
  • 3. DO (Pin 3) Connect to a digital input pin on your microcontroller board (e.g., Arduino's digital pin 2-13)
  • 4. AO (Pin 4) Connect to an analog input pin on your microcontroller board (e.g., Arduino's analog input pin A0-A5)
  • Important Notes
  • Ensure the power supply voltage is within the recommended range (3.3V to 5.5V) to avoid damaging the module.
  • The module may have a small delay between flame detection and the output signal. This delay is typically around 10-50ms.
  • The AO pin provides an analog signal, which may require calibration or threshold setting in your code to accurately detect flames.
  • By following these connections and considering the notes, you can successfully integrate the KY-026 Flame Sensor Module into your IoT project or robotics application.

Code Examples

4Pin KY-026 Flame Sensor Module Documentation
Overview
The KY-026 Flame Sensor Module is a digital flame sensor designed to detect flames or fires. It is commonly used in IoT-based fire detection and alarm systems. This module is equipped with a 4-pin interface and can be easily integrated with microcontrollers like Arduino, Raspberry Pi, and ESP32.
Pinout
| Pin | Description |
| --- | --- |
| VCC | Power supply (typically 5V) |
| GND | Ground connection |
| D0 | Digital output (HIGH when flame is detected) |
| A0 | Analog output (output voltage proportional to flame intensity) |
Hardware Requirements
Microcontroller (e.g., Arduino Uno, Arduino Nano, Raspberry Pi, ESP32)
 Breadboard and jumper wires
 Power supply (5V)
Code Examples
### Example 1: Basic Flame Detection with Arduino
This example demonstrates how to use the KY-026 Flame Sensor Module to detect flames and trigger an alarm using an Arduino Uno.
```c++
const int flamePin = 2;  // Connect D0 to digital pin 2
void setup() {
  pinMode(flamePin, INPUT);
  Serial.begin(9600);
}
void loop() {
  int flameState = digitalRead(flamePin);
  if (flameState == HIGH) {
    Serial.println(" Flame detected!");
    // Trigger alarm or take appropriate action
  } else {
    Serial.println(" No flame detected.");
  }
  delay(500);
}
```
### Example 2: Flame Intensity Measurement with ESP32
This example shows how to use the KY-026 Flame Sensor Module to measure flame intensity using the analog output (A0) with an ESP32 board.
```c++
const int analogPin = 32;  // Connect A0 to analog pin 32
void setup() {
  Serial.begin(115200);
}
void loop() {
  int flameIntensity = analogRead(analogPin);
  float voltage = flameIntensity  (3.3 / 4095.0);
  Serial.print("Flame intensity: ");
  Serial.print(voltage);
  Serial.println(" V");
  delay(500);
}
```
### Example 3: Flame Detection with Raspberry Pi (Python)
This example demonstrates how to use the KY-026 Flame Sensor Module to detect flames using a Raspberry Pi with Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
flamePin = 17  # Connect D0 to GPIO pin 17
GPIO.setup(flamePin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
while True:
    flameState = GPIO.input(flamePin)
    if flameState:
        print("Flame detected!")
        # Trigger alarm or take appropriate action
    else:
        print("No flame detected.")
    time.sleep(0.5)
```
Important Notes
Ensure the KY-026 Flame Sensor Module is powered with a stable 5V power supply.
 Keep the flame sensor module away from direct sunlight and moisture to ensure accurate readings.
 The analog output (A0) can be used to measure flame intensity, but it may require calibration depending on the specific application.
 When using the digital output (D0), ensure that the microcontroller's GPIO pin is set as an input to avoid any potential damage to the sensor module.