Arduino Modules - Flame Sensor

130,939

275

45

Posted in TechnologyArduino

Introduction: Arduino Modules - Flame Sensor

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

The model in the example is a single sensor module from my store, you can find it at Cipher Computer and Robotics.

(The instructable for the Rain Sensor is now available!)

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

Dimensions:

1.18 in x 0.59 in x 0.20 in (3.0 cm x 1.5 cm x 0.5 cm)

Weight:

0.28 oz (8 g)

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:

  • Attached due to formatting.

Share

Recommendations

  • Make it Move Contest

    Make it Move Contest
  • Microcontroller Contest

    Microcontroller Contest
  • Woodworking Contest

    Woodworking Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

hi, Sir/Mam, this is Venu Madhav from Andharapradesh I am doing my BTech. In the 6th sem, I am doing a project based on IoT flame sensing using IoT, please send me some code to get that alert SMS to the phone please help me I am getting a lot of errors in my code.

45 Comments

i purchased a sensor with no analog pin , it only has D0 , anyway that i can make it work????

2 replies

a bit late, but maybe someone else is helped with it. Look here under wiring diagram

http://learn.linksprite.com/arduino/advanced-learning-kit-for-arduino/experiment-13-detect-fire/

You could try plugging that pin into A0. Maybe that works.

Hi Reichenstein7,

I building an outdoor project using this type of sensor on a propane burner. Looks like this sensor is very sensitive to daylight which impairs its ability to distinguish between daylight with and without a flame in front of it. Any ideas for a flame sensor which would not be daylight impaired? I thought about using a thermocouple, but a LPG propane burner flame is around 3500 deg F and most thermocouples won't be able to deal. I thought about maybe a laser type sensor, but not sure what happens to a laser when it's pointed through a "blue" (400-500 nm) flame, vs not. Or are there other flame sensors that would be better suited to detect a flame in daylight?

Any advice you have would be much appreciated....

3 replies

try a gas and smoke sensor. They work well an d are independent of daylight.

I was about to embark on a similar project. I was thinking of placing the sensor inside a tube, maybe some iron pipe and have the pipe be directed at the flame drastically cutting down ambient light false readings. I am curious if you solved your problem.

Excuse me. But i don't have module like this. I have the sensor itself with two legs (short and long). Please can anybody help how to wire it to arduino uno. Thanks.

Say i would want my robot to stop 30cm before the fire when it is detected. Can it be done by using an additional flame sensor? thanks.

2 replies

Yes that should be possible, when it reads a certain value it would stop.. all you need to do is see at what value the sensor is when you hold it 30 cm infront a fire and set that value in the "if" statement.

Actually you could use the built in potentiometer to set a max range for the sensor to your desired 30cm. Basically 30cm would trigger the sensor to read from low to high and give you a signal.

** These sensors are not very good at reading distance so you will not get a reliable signal that varies in centimeters. Its much more reliable for reading either ON (Fire) or OFF (No Fire).

hey can you help me how to make it more accurate, how to edit the values so it detects a little better? I have a light sensor but it works the same way

1 reply

okay I found out if you use sensormin around 800-900 it responds better to changes

i have bought 5 channel flame sensor, but i don't have any idea how to connect and program it.i didn't found any tutorial regarding this flame sensor..kindly help me out!!

2 replies

Your sensor should be about the same. Instead of reading the value from one sensor, you can read a value from 5 sensors. For instance if you read the value one at a time, you could use your sensor to figure out which direction a flame is in (at a short distance, depending on the sensor).

If you can send me a link to yours I can take a look at it.

Have a look at the sensor, i was asking about http://www.ewallpk.com/index.php?id_product=95&controller=product&search_query=flame+sensor&results=7

Can this type of flame sensor only detect up to 2-3 feet?

How can We improve its efficiency?

can you please explain?

my mail id: mariammalmanju@gmail.com

1 reply

This sensor was only designed for very close ranges, such as detecting a pilot light (USE AT YOUR OWN DISCRETION).