Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Using a flame detector with Arduino

By Usman ali Butt March 17, 2021

In this tutorial, we’ll learn how to detect fire or a flame using Arduino. Since fire generates heat, it’s possible to measure it via a sensor that tracks the temperature of the environment and converts it into data that can be monitored. However, a temperature sensor is not always a reliable solution for distinguishing fire from atmospheric heat.

Instead, studying the optical properties of fire can provide greater accuracy and detection capabilities. For example, fire emits infrared radiation (IR), which is stronger and easier to detect compared to the heat generated in other sources.

In the images below, the IR from different objects is visible. As you can see, the IR radiation from the lighter shows a dark red spot on the screen, which indicates fire. So clearly, IR detection is the ideal solution.

Most IR cameras for do-it-yourself (DIY) applications are expensive so choose wisely. There are now smaller IR sensors on the market, which are well-suited for this project. An IR detector is typically the most cost-effective and reliable choice.

The IR camera’s screen is made up of an array of LED, IR thermal sensors (or detectors) that create the image taken.

An infrared sensor LED

The electrical symbol of an IR sensor is similar to an NPN transistor except for the base. In an infrared sensor, the IR light source falls on the base, which is protected inside the plastic case.

The IR waves are divided into sub-categories and most of the IR sensors measure one particular sub-category. For instance, the IR detector shown above can measure 940nm wavelengths so it falls into the “short waves detector” sub-category.

As an example, a TV remote also works on IR transmission and uses IR LEDs.

A simple DIY IR circuit is below. An operational amplifier is a must in this case to raise the IR detector’s output. The IR detector LEDs’ forward voltage is 1.6v.

For this project, it’s possible to put together the above DIY IR circuit or use a pre-assembled IR module. The circuit diagram is below. We decided to use a pre-assembled IR module.

Circuit diagram
The Arduino IR detector module has two outputs: analog and digital. For the digital output, it’s necessary to set a threshold and, when the IR value goes above this threshold, the digital output pin is set to HIGH. Otherwise, it remains on LOW.

The threshold can be adjusted by rotating the variable resistor knob back and forth. The advantage of setting it is that you can ensure only activity that’s abnormal is detected and any typical surrounding IR is surpassed. The analog output detects the IR that’s usually present in the environment. In this mode, the sensor always outputs a value. Any spikes in output are recorded when the sensor is placed in front of a flame or fire.

We’re using the IR detector in analog mode. A buzzer is connected to Arduino’s pin#2. The buzzer’s alarm goes off anytime high spikes of IR are detected by the sensor.

Project code
First, we defined the Arduino pin (2), which is connected to the buzzer. In the setup function, we declared the pin as the output.

The main loop is where the sensor value is read. We mapped the sensor value against a range of 0-3. The Arduino ADC max reading is 1024. We, then, divided 1024 in the range of 0-1, 1-2, and 2-3. The buzzer will buzz when the IR detector value falls between 0 and 1.   

Where to purchase the parts?

  • Arduino: Mouser
  • Arduino IR detector: Digikey

Filed Under: Microcontroller Projects
Tagged With: Arduino
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Voltage mode pushpull is a nonsense SMPS?
  • Input impedance matching network
  • High Side current sensing
  • The comparison of different Tcl script checkers
  • Reducing "shoot-through" in offline Full Bridge SMPS?

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe