Interface Flame Sensor with Arduino
Arduino

Flame IR Sensor


Description

In this article, we will cover Flame IR Sensors, including their types and how to connect them with Arduino.


Sensor Details

A Flame Sensor module or Fire Sensor module is a small size electronics device that can detect a fire source or any other bright light sources. This sensor basically detects IR (Infrared) light wavelength between 760 nm – 1100 nm that is emitted from the fire flame or light source. The flame sensor comes with a YG1006 Phototransistor sensor which is a high speed and high sensitivity. Two types of IR Infrared Flame Sensor Module available in the market one having three pins (D0, Gnd, Vcc) and another one having four pins (A0, D0, Gnd, Vcc) both are can be easily used with Arduino and other microcontroller boards.

Two types of flame sensors available in the market both types are consist of the same components. Also, the parameters of both sensors like Operating Voltage, Current Comparator chip, Sensor type, Spectrum range, Detection angle, and Detection range everything is similar.

But, these modules have a major difference, that is one module is consists of 3 pins(D0, Gnd, Vcc), and it’s can able to provides only Digital Output. Another module is consists of 4 pins((A0, D0, Gnd, Vcc) and it’s can able to provide Digital Output and Analog Output.

3 pins Flame Sensor Module

Pin Number Pin Name Description
1 VCC +5 v power supply
2 GND Ground (-) power supply
3 OUT

Digital Output (0 or 1)

 

 4 pin Flame Sensor Module

Pin Number Pin Name Description
1 VCC +5 v power supply
2 GND Ground (-) power supply
3 OUT 1 (DO) Digital Output (0 or 1)
4 OUT 2 (AO) Analog Output

 

Sensor Specifications

Parameter Value
Operating Voltage 3.3V – 5V
Operating Current  15 mA
Comparator chip LM393
Sensor type YG1006 Photo Transistor
Sensitivity Adjustable via potentiometer
Output type Digital output / Digital and Analog output
LED lights indicators Power (red) and Output (green)
Spectrum range 760nm ~ 1100nm
Detection angle 0 – 60 degree
Operating temperature -25℃ ~ 85℃
PCB Size 3cm X 1.6cm

 


Wiring Details

Sensor GND to Arduino GND

Sensor A0 to Arduino PIN A0

Sensor Vcc+ to Arduino +5V

Sensor D0 to No Connection


Circuit Image
Circuit Code
                                        
                                            

 

const int flamePin = 2; // Pin connected to the OUT pin of the flame sensor
void setup()

{

Serial.begin(9600); // Initialize serial communication at 9600 bps
pinMode(flamePin, INPUT); // Set flamePin as input
}
void loop() {
int flameValue = digitalRead(flamePin); // Read the flame sensor value
if (flameValue == HIGH) {
Serial.println("Flame detected!"); // Print a message if flame is detected
}

else{

Serial.println("No flame detected."); // Print a message if no flame is detected
}

delay(1000); // Delay for 1 second
}