Complete guide to flame detection using infrared sensors
IR flame sensors detect fire or other light sources in the infrared spectrum, typically between 760nm to 1100nm wavelength, which is the range where most flames emit significant radiation.
| Parameter | Standard IR | 5-Channel IR | UV/IR Combo |
|---|---|---|---|
| Detection Range | 0.8m-1.5m | Up to 3m | Up to 10m |
| Field of View | 60° | 5x 30° channels | 90° |
| Response Time | 100ms | 50ms | 30ms |
| False Alarm Rate | Medium | Low | Very Low |
| Price Range | $1-$5 | $10-$20 | $50-$200 |
// Basic Flame Sensor Example
#define FLAME_DIGITAL 2
#define FLAME_ANALOG A0
void setup() {
Serial.begin(9600);
pinMode(FLAME_DIGITAL, INPUT);
}
void loop() {
int digitalVal = digitalRead(FLAME_DIGITAL);
int analogVal = analogRead(FLAME_ANALOG);
Serial.print("Digital: "); Serial.print(digitalVal);
Serial.print(" | Analog: "); Serial.println(analogVal);
if(digitalVal == LOW) {
Serial.println("FLAME DETECTED!");
// Trigger alarm or other actions
}
delay(200);
}
// Flame flicker detection example
#define FLAME_ANALOG A0
#define SAMPLE_SIZE 100
#define FLICKER_THRESHOLD 50
int samples[SAMPLE_SIZE];
int sampleIndex = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
samples[sampleIndex] = analogRead(FLAME_ANALOG);
sampleIndex = (sampleIndex + 1) % SAMPLE_SIZE;
if(sampleIndex == 0) {
int flickerCount = 0;
for(int i = 1; i < SAMPLE_SIZE; i++) {
if(abs(samples[i] - samples[i-1]) > FLICKER_THRESHOLD) {
flickerCount++;
}
}
if(flickerCount > SAMPLE_SIZE/4) {
Serial.println("Flame flicker detected - real fire!");
}
}
delay(10);
}
Combine flame sensor with buzzer, LED, and WiFi module for remote alerts.
Autonomous robot that detects and extinguishes small fires.
Monitor furnace flames with multiple sensors and data logging.
Portable device that monitors campfire safety and alerts if fire spreads.
Kitchen monitor that detects unattended stove flames and shuts off gas.
Pan-tilt camera mount that automatically points toward detected flames.
// Components needed:
- Flame Sensor Array
- ESP32-CAM
- GPS Module
- Brushless Motors
- Flight Controller
- Telemetry Radio
- LiPo Battery
// Features:
1. Autonomous flight pattern
2. Real-time flame detection
3. GPS location tagging
4. Live video feed
5. Automatic return-to-home
6. Fire size estimation
// Implementation Tips:
- Use Pixhawk or similar flight controller
- Implement computer vision for flame verification
- Create heatmap of fire locations
- Integrate with emergency services API
- Implement failsafe mechanisms
- Optimize battery life for maximum flight time
| Mistake | Consequence | Solution |
|---|---|---|
| Improper sensitivity | False alarms or missed detections | Calibrate in actual operating environment |
| Poor placement | Reduced detection capability | Mount at flame height with clear view |
| Ignoring ambient IR | False positives | Account for sunlight, heaters, etc. |
| No signal processing | Unstable readings | Implement filtering and flicker analysis |
| Single point of failure | System vulnerability | Use multiple sensors in critical applications |