A flame detection system is a device or system that is used to detect the presence of a flame and provide an alert in the event of a fire. The most common type of flame detectors use one of the following technologies:
Once a flame is detected, the system can trigger an alarm or send a signal to a fire suppression system to extinguish the fire. Flame detection systems are widely used in industrial, commercial, and residential settings, particularly in areas where there is a risk of fire such as oil and gas production facilities, industrial processing plants, and power generation facilities.
An intelligent flame detection system is a type of flame detection system that uses advanced algorithms and sensors to detect and analyze flames. These systems typically use a combination of technologies, such as infrared and ultraviolet sensors, to detect the presence of a flame. They also use image processing algorithms to analyze the shape, size, and color of the flame, allowing them to differentiate between real fires and false alarms.
An intelligent flame detection system can provide a higher level of accuracy and reliability compared to traditional flame detection systems. These systems can also be integrated with other fire detection and suppression systems, such as fire alarms and sprinkler systems, to provide a comprehensive fire protection solution.
Some of the features that an intelligent flame detection system can have:
An intelligent flame detection system with ESP32 is a type of flame detection system that uses an ESP32 microcontroller to process and analyze data from sensors, and to communicate with other devices using Wi-Fi. The ESP32 can be used to connect the system to a network, allowing it to be remotely monitored and controlled.
To create an intelligent flame detection system with ESP32, you will need to:
In this project we will realize an intelligent fire detection system with the ESP32 card connected to the Internet network.
It mainly uses KY-026 flame sensor and buzzer.
When the flame sensor detects a flame, the ESP32 card gives the order for the buzzer to sound and sends an alert email via WIFI.
ESP32 is a series of low-cost, low-power system-on-a-chip microcontrollers with integrated Wi-Fi and dual-mode Bluetooth. The ESP32 series of microcontrollers is developed by Espressif Systems, a Chinese company based in Shanghai.
The ESP32 is designed for use in a wide range of applications, including Internet of Things (IoT) devices, home automation systems, and wearable electronics. It features a dual-core processor, 4MB of flash memory, and 520KB of SRAM. It also includes a number of peripheral interfaces, such as SPI, I2C, UART, and PWM, as well as a built-in touch sensor and Hall effect sensor.
The ESP32 also supports a range of wireless connectivity options, including Wi-Fi (IEEE 802.11b/g/n), Bluetooth 4.2 and 5.0, and Bluetooth Low Energy (BLE). The Wi-Fi module supports both station and access point modes, making it easy to connect to existing networks or create your own.
The ESP32 can be programmed using the Arduino IDE, the ESP-IDF, or the MicroPython firmware. It also supports OTA(over the air) firmware updates, making it easy to update the device’s firmware without having to physically access it.
Overall, the ESP32 is a powerful, low-cost, and versatile microcontroller that can be used for a wide range of applications.
KY-026 flame detector
The KY-026 flame sensor is a low-cost flame sensor module that can be used to detect the presence of a flame. It is commonly used in DIY projects such as home automation and fire alarms.
The KY-026 sensor consists of a flame sensor and a comparator circuit. The flame sensor detects the infrared radiation emitted by a flame and outputs a digital signal to the comparator circuit. The comparator circuit compares the input signal with a reference voltage, and outputs a digital signal that indicates whether a flame is present or not.
The sensor has three pins: Vcc, Gnd, and Out. The Vcc pin should be connected to a 3-5V power source, the Gnd pin should be connected to ground, and the Out pin should be connected to a digital input pin on a microcontroller such as the ESP32. The sensor output is a digital signal, which can be directly connected to a microcontroller’s digital input pin.
The sensor is sensitive to visible and invisible light, it can be triggered by other sources of light such as the sun, incandescent lamps, and UV lamps. It’s important to place the sensor in a proper location where it can detect the flame but not be affected by other sources of light.
A buzzer is an electronic device that generates an audible sound. They are commonly used in electronic devices such as alarms, timers, and warning systems.
Buzzers can be divided into two main categories:
To use a buzzer with an ESP32, you would connect the buzzer’s positive lead to one of the ESP32’s digital output pins and the negative lead to a ground pin. Then, using code, you can configure the output pin to be high or low to turn the buzzer on or off.
Connecting wires refers to the process of physically connecting wires or cables to a device or circuit in order to establish an electrical connection. This can be done by using various connectors such as plugs, sockets, or terminal blocks. The wires are typically color-coded to indicate their function, such as red for power, black for ground, and yellow for signals.
A test plate is a type of circuit board that is used to test electronic components. It typically consists of a flat board made of a non-conductive material, such as plastic or fiberglass, with a number of holes or pads that are used to connect electronic components. The test plate allows you to connect electronic components and test them easily.
To perform the assembly, you can connect
the buzzer terminal (+) to pin D4 of the ESP32 board
the buzzer terminal (-) to the GND pin of the ESP32 board
the VCC pin of the flame sensor to the 3.3V pin of the ESP32 board
the GND pin of the flame sensor to the GND pin of the ESP32 board
Here is the program of the intelligent fire detection system connected to the Internet:
print('RUN : main.py')
import umail from machine
import Pin, ADC from time
ConnectWifi.connect() #connect to the Internet network by wifi
flamme = ADC(Pin(34))
flamme.atten(ADC.ATTN_11DB) #Full range: 3.3v
flamme_value = flamme.read()
if (flamme_value<4095): #flame detection
buzzer.value(1) # the buzzer starts ringing
smtp = umail.SMTP('smtp.gmail.com', 587,
smtp.to('email@example.com') smtp.send("Fire alarm") # Send an alert email
buzzer.value(0) #the buzzer stops ringing