Project tutorial
Arduino Modules - Flame Sensor

Arduino Modules - Flame Sensor © Apache-2.0

For DETECTING fire for about a small range of 3 feets

  • 8,011 views
  • 1 comment
  • 9 respects

Components and supplies

Apps and online services

About this project

Quick and simple start guide for using and exploring the Flame Sensor module with an Arduino.

Materials needed:

  • Flame Sensor (model with an analog out)
  • Male to Female jumper wires
  • An Arduino, any flavor.
  • Lighter or another flame source for testing.

Step 1: Getting to Know Your Flame Sensor:

Usage:These types of sensors are used for short range fire detection and can be used to monitor projects or as a safety precaution to cut devices off / on.

Range:I have found this unit is mostly accurate up to about 3 feet.

How it works:The flame sensor is very sensitive to IR wavelength at 760 nm ~ 1100 nm light.

Analog output (A0): Real-time output voltage signal on the thermal resistance.

Digital output (D0): When the temperature reaches a certain threshold, the output high and low signal threshold adjustable via potentiometer.

Pins:

VCC...... Positive voltage input: 5v for analog 3.3v for Digital.

A0.......... Analog output

D0......... Digital output

GND..... Ground

Step 2: Testing and Troubleshooting:

Testing: To test the Flame Sensor and ensure that it is working correctly connect the VCC to a 5v power source and GND. Move a flame source with in a foot of the front of the Ir sensor and the D0-LED should light up.

Troubleshooting:

If the D0-LED does not light up check the following:

  • Is the power source 5v?
  • Is the ground hooked up?
  • Is the flame with in 1 foot and in Line of Sight?

If none of the previous makes the D0-LED light up, your sensor may be defective.

Step 3: Wiring to an Arduino:

To wire the Flame Sensor to the Arduino simply connect the following as shown:

Flame sensor............... Arduino

VCC............................... 5v

GND...............................GND

A0.................................. Analog in 0

Step 4: Arduino Sketch Example:

The following code maps and reads the analog values given by the flame sensor (0-1024). The stock flame sensor will have the following reaction with this code:

If holding a flame within 1.5 feet in front of the sensor; "case 0" will be activated and " ** Close Fire ** " will be sent to the serial monitor. If holding a flame between 1.5 feet and 3 feet in front of the sensor; "case 1" will be activated and " **Distant Fire** " will be sent to the serial monitor. If no flame is detected in front of the sensor; "case 2" will be activated and " No Fire " will be sent to the serial monitor.

* To view the output, point a serial monitor such as Putty at your Arduino.

* This code is constantly updating in order to provide a real time feedback of the flame sensor.

Code

CODE FOR FLAME SENSORArduino
// lowest and highest sensor readings:
const int sensorMin = 0;     // sensor minimum
const int sensorMax = 1024;  // sensor maximum

void setup() {
  // initialize serial communication @ 9600 baud:
  Serial.begin(9600);  
}
void loop() {
  // read the sensor on analog A0:
	int sensorReading = analogRead(A0);
  // map the sensor range (four options):
  // ex: 'long int map(long int, long int, long int, long int, long int)'
	int range = map(sensorReading, sensorMin, sensorMax, 0, 3);
  
  // range value:
  switch (range) {
  case 0:    // A fire closer than 1.5 feet away.
    Serial.println("** Close Fire **");
    break;
  case 1:    // A fire between 1-3 feet away.
    Serial.println("** Distant Fire **");
    break;
  case 2:    // No fire detected.
    Serial.println("No Fire");
    break;
  }
  delay(1);  // delay between reads
}

Custom parts and enclosures

CONNECTIONS
12 xibqkmr3vr

Schematics

CONNECTIONS
12 oeddavyre4

Comments

Author

Default
SURYATEJA
  • 18 projects
  • 30 followers

Additional contributors

  • For easy understanding and security of the home and factories by S SAI SURYATEJA

Published on

June 5, 2018

Members who respect this project

HansdekleineAvatar fofgrbxpczDefault

and 6 others

See similar projects
you might like

Similar projects you might like

Touch Sensor and Sound Sensor Controlling AC/DC Lights

Project showcase by Anbumachi

  • 3,237 views
  • 2 comments
  • 7 respects

Arduino BME280 Sensor How To

by Dragos Iosub

  • 1,023 views
  • 0 comments
  • 2 respects

IOT - Smart Jar Using ESP8266, Arduino and Ultrasonic Sensor

Project tutorial by Team Smazee

  • 10,429 views
  • 5 comments
  • 15 respects

Interfacing FPM10A (50-DY) Optical Fingerprint Sensor

Project tutorial by SurtrTech

  • 7,069 views
  • 4 comments
  • 20 respects

HEARTBEAT SENSOR project

Project tutorial by SURYATEJA

  • 5,228 views
  • 0 comments
  • 0 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 45,651 views
  • 21 comments
  • 130 respects
Add projectSign up / Login