Flame Detection Module
The Flame Detection Module is a specialized sensor designed to detect the presence of flames or fire within its proximity. This module is highly sensitive to the wavelengths of light produced by flames, typically in the range of 760nm to 1100nm, allowing it to distinguish fire from other light sources.
Specifications
- Operating Voltage: 3.3V ~ 5V
- Detection Angle: 60 degrees
- Sensing Distance: Up to 17cm ~ 18cm
- Detection Wavelength: 760nm ~ 1100nm
Connection
The circuit used in the example code below.
An LED can be replaced with another module or omitted entirely.
Resistor | Flame Detection Module | LED | Arduino | |||
VCC | 5V | |||||
GND | - | GND | ||||
Connection | + | |||||
DO | D8 | |||||
Connection | D7 |
Example Code
// Code to turn on the LED when a flame is detected.
#define led 7
#define fire 8
int state = 0;
void setup() {
pinMode(fire, INPUT);
pinMode(led, OUTPUT);
digitalWrite(led, LOW);
}
void loop() {
state = digitalRead(fire);
if (state == 0) digitalWrite(led, HIGH); // Flame detection outputs 0
else digitalWrite(led, LOW);
}