Home / Tutorials / Arduino Tutorial / Creating a Simple Arduino Fire Detector
arduino fire detector

Creating a Simple Arduino Fire Detector

A fire or flame sensor is simply an infrared LED with an amplifier circuit. Flame radiates infrared signal, which triggers the LED to produce current. This current is converted to voltage for an analog to digital converter to read. Let's see how we can build an arduino fire detector using this sensor.

Flame Sensor Module

For this tutorial, I’ll be using the flame sensor module:

arduino flame sensor

This module has four outputs as shown: VCC, GND, D0 and A0. It also has two LEDs, one is for power indication and one is directly tied to D0. A trimmer is also present which is used to adjust the sensitivity of this flame sensor.

Basically, the D0 pin goes high when a flame intensity threshold is reached. The threshold can be varied by turning the trimmer. The A0 pin produces voltage representing the measured flame intensity.

There are two ways to use the fire detector with arduino. One is to use the D0 pin and check whenever the pin goes high. A simple sketch such as this can be used:

If you want to use the A0 pin, just connect it to any analog pin. However, you need to manually check which values provided by the ADC means there’s a fire.

Let’s say you’ve done the test and determined that a value less than 100 indicates there’s a fire. You can now use this sketch:

Now you have a simple arduino fire detector! Also, using this flame sensor with a smoke detector plus buzzers gives you a simple fire alarm system!

Check Also

Sensor attached to Arduino UNO

Using a Fingerprint Sensor

Fingerprint sensors are old technology but it wasn’t readily available to makers until it was …

Leave a Reply

Your email address will not be published. Required fields are marked *