AED 6.30
Description
The KY 026 module is a device made for the Arduino or any MCU to detect any sign of flame or fire in the surroundings where the sensor is installed. some other elements can even be added to create a fully functional fire alarm. The KY-026 Flame Sensor Module is a sensor for flame wavelengths between 760 nm to 1100 nm infrared is most sensitive 60-degree detection sensor Two outputs mode: AO: analog output- real-time output voltage signal on the thermal resistance; DO: when the temperature reaches a certain threshold- the output high and low signal threshold adjustable via potentiometer
How to make Flame or Fire Detector with KY 026 and Arduino module
we will Make a fire detector with 3 levels, the first stage will indicate that there is no fire, the second will indicate that there is fire but it is very distant from the sensor, the third will be a danger message because the fire is already very close.
This practice was done with an Arduino Uno board, although any of the Arduino boards that currently exist can also be used, the programming can be used on any board.
This time the serial monitor of the Arduino board was used, however, the temperature result can be printed on any LCD Display, only its connections and extra programming must be taken into account, in addition you can add extra elements such as a speaker to trigger an audible alarm and another temperature sensor to make a comparison between the two and have the best possible precision
The objective of this practice is to know how to connect and use the KY-026 module.
Material list separately :
Arduino Uno board
Breadboard
1 set of male to male jumper cables
1 KY 026 Sensor Fire
const int sensorMin = 0; // Minimum sensor range const int sensorMax = 1024; // maximum range void setup () { Serial.begin (9600); } void loop () { int sensorReading = analogRead; int range = map (sensorReading, sensorMin, sensorMax, 0, 3); // Value of the range: switch (range) { case 0: Serial.println ("** Danger, Close Fire **"); break; case 1: Serial.println ("** Distant Fire **"); break; case 2: Serial.println ("Fire not detected"); break; } delay (1200); // Amount of time that Arduino took the sensor reading }
Assembly and testing of the IR Flame Sensor Module KY-026 project:
the circuit was built step by step
STEP 1: We place all the jumpers to the Arduino board since there are only 3 connections, it is not necessary to bridge the breadboard so that both rails are powers.
The connections made as it described below:
- A0 of Arduino with A0 of the module
- Arduino 5v with + module
- Arduino GND with module GND.
STEP 2: Identify the module connections in order not to incorrectly connect the pins.
STEP 3: Make the electrical connections, as we already mentioned this circuit assembly is very simple.
you will see the representation on the serial monitor of the Arduino Software
note that when you approach the lighter the program responds appropriately, if there is no fire then it sends the message of undetected fire, if the fire is Remote sends the message of distant fire and if it is very close sends a message of danger