|
|
Arduino_UNO_R3 |
x 1 | |
|
|
IR Flame Detector module |
x 1 | |
|
|
Water pump with hoses |
x 1 | |
|
|
5V Relay module |
x 1 | |
|
|
LED |
x 2 | |
|
|
Buzzer |
x 1 |
|
Soldering Iron Kit |
|
|
arduino IDEArduino
|
Arduino flame detector with alarms and automatic fire extinguishing
A flame detector is an electronic device designed to sense the presence of flames or fire. There are several types of flame detectors including ultraviolet, infrared, multispectrum detectors, and optical flame detectors. In the device described in this project, we will use an infrared type of flame detector which is widespread, inexpensive, and has satisfactory characteristics.

As the name itself tells us, this detector module consists of an Infrared receiving LED which is connected to an operational amplifier which processes the detected signal. Infrared LED has the ability to detect a light source in the infrared part of the spectrum. In the case of a flame, most of the spectrum that is emitted is in that infrared region.
In addition to the infrared sensor, we also use a microcontroller, which, when detecting a flame from the sensor, activates other processes, in this case a light and sound alarm, as well as a pump immersed in a water tank which at that moment begins to extinguish the flame to prevent its spread. Actually, I made this device together with one of my students and it is a high school graduation project.

This project is sponsored by PCBWay. This year, PCBWay is organizing the 11th badge design contest from March 3rd to April 31st. Follow the design requirements and Submit your designs in one of the given ways, and become the winner of one of the valuable prizes in cash and cupons. This contest is more than a competition—it’s a celebration of 11 years of innovation and a chance to dream about the boundless possibilities ahead with PCBWay.

The device is very simple to make and consists of only a few components.
- Arduino Uno microcontroller board,
- Infrared Flame detector module,
- Water pump with hoses
- 5V Relay module
- 2 Leds with apropriate current limiting resistors 470 Ohms.
- Buzzer
- and Battery (in my case 2 lithium cells in series with total 7.4V and 1 cell for Water pump)
Let's first analyze the hardware part. For the Flame detector I use a standard IR sensor module with transmitter and receiver LEDs, where we need to unsolder and remove the transparent transmitter LED.

The main part of the water pump is an electric motor, which requires a current of more than 100mA to operate. On the other hand, the Arduino outputs can only handle a current of up to 40mA. For this reason, the water pump is connected via an electromagnetic relay module, which consumes about 20mA. The pump also uses a separate power source because the motor brushes often reset the microcontroller because they were previously connected to the same source. LEDs are by definition current consumers, so they are connected to the Arduino outputs through current limiting resistors with a value of 470 ohms, so according to Ohm's law, a current of about 5mA will flow through them. The buzzer is a component that connects directly to the Arduino and is controlled by pulse width modulation(PWM).
As for the Arduino code, it can be seen that it is extremely simple and therefore reliable, which should be a basic feature for this type of device.

At the beginning, variables are defined and created, and then in void setup, the inputs and outputs are defined, as well as their starting values. Then in the loop function we use an if-else statement that allows you to make decisions depending on the value of a variable.
Now let's see how the device works in real conditions. First, I'll turn off the power to the water pump for practical reasons and test the rest of the device. First, we need to adjust the sensitivity of the IR detector using this small potentiometer. Now the sensor is adjusted and we can connect the pump.

If a flame appears in front of the sensor, an audible and visual alarm will be activated, and the water pump will start drawing water from the tank to extinguish the fire.
And finally, a short conclusion. This Arduino project is very simple to make and has a huge practical application and represents an excellent demonstration of controlling external devices (in this case a pump, siren and light signal) depending on some occurring condition detected by an appropriate sensor. Just to mention again that we created this project together with my students as a final high school exam.
//Arduino Flame Detector
int relayPin = 5;
int buzzerPin = 2;
int flamePin = 8;
int TONE1 = 900; // First tone frequency
int TONE2 = 1200; // Second tone frequency
int DURATION = 500; // Duration of each tone in milliseconds
int blueled = 3;
int redled = 4;
int Flame = HIGH;
void setup()
{
Serial.begin(9600);
pinMode(buzzerPin, OUTPUT);
pinMode(relayPin, OUTPUT);
pinMode(redled, OUTPUT);
pinMode(blueled, OUTPUT);
digitalWrite(redled, LOW);
digitalWrite(blueled, LOW);
digitalWrite(relayPin, LOW);
pinMode(flamePin, INPUT);
}
void loop()
{
Flame = digitalRead(flamePin);
if (Flame == LOW)
{
digitalWrite(buzzerPin, LOW);
digitalWrite(redled, LOW);
digitalWrite(blueled, LOW);
digitalWrite(relayPin, LOW);
noTone(buzzerPin);
}
else
{
digitalWrite(relayPin, HIGH);
tone(buzzerPin, TONE1);
digitalWrite(redled, HIGH);
digitalWrite(blueled, LOW);
delay(DURATION);
tone(buzzerPin, TONE2);
digitalWrite(redled, LOW);
digitalWrite(blueled, HIGH);
delay(DURATION);
}
}
Arduino flame detector with alarms and automatic fire extinguishing
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
-
Arduino 3D Printed self Balancing Cube
Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
Build simple Retro Style VFO (Variable frequency oscillator) with Crowoanel 1.28 inch Round Display
Today I received a shipment with a Small round LCD display from Elecrow. The device is packed in tw...
-
Human vs Robot – Rock Paper Scissors with MyCobot 280 M5Stack
Today I received a package containing the few Elephant Robotics products. The shipment is well pack...
-
How to Build a Simple Audio Spectrum Analyzer with Adjustable Settings
An audio spectrum analyzer is an electronic device or software tool that measures and visually disp...
-
How to Make a Digital Clock on a Vintage B&W TV using Arduino
These days I accidentally came across this small retro Black and White TV with a built-in Radio, so ...
-
Build a $10 Function Generator with Frequency Meter for Your Lab
A function generator is a piece of electronic test equipment used to generate various types of elec...
-
From Unboxing to Coding - Radar Clock on Elecrow’s 2.1 HMI Display
Today I received a shipment with a large round LCD display from Elecrow. The device is packed in two...
-
Making a Retro Analog NTP Clock with Unihiker K10 - Arduino IDE Tutorial
Some time ago I presented you a way to use standard Arduino libraries on the Unihiker k10 developme...
-
Build a Cheap & Easy HF Preselector - Antenna Tuner
HF antenna preselector is an electronic device connected between an HF radio antenna, and a radio r...
-
DIY Static Charge Monitor - Electrostatic Field Detector (Arduino & TL071)
A Static Charge Monitor also known as a Static Field Meter or Electrostatic Voltmeter is a device u...
-
XHDATA D-219 Radio Short Review with complete disassembly
Some time ago I received an offer from XHDATA to be one of the first test users of their new radio m...
-
How to make Simplest ever Oscilloscope Clock
An oscilloscope clock is a unique and creative way to display the time using an oscilloscope, which...
-
DIY Digital Barograph with BME280 and ESP32 - 24 Hour Pressure Trends
A barograph is a self-recording barometer that continuously measures and records atmospheric pressu...
-
Build a Raspberry Pi Pico SDR Radio with Waterfall Display
Software-defined radio (SDR) is a radio communication system where components that have traditional...
-
DIY Magnet Polarity Detector - How to Identify Poles with a Hall Sensor from a PC Fan
Recently, while working on a project, I needed to determine the polarity of several permanent magne...
-
Light Meter Project - Making Dfrobot Unihiker K10 Work with Standard Arduino Libraries
The other day I received a shipment with a UNIHIKER K10 development board from DFRobot, which I rec...
-
DIY Simple Arduino Whack-a-Mole Game
A "Whack-a-Mole" game is a classic arcade-style game where moles pop up randomly from holes, and th...
-
Wireless Power Transmission, Long-Distance and High-Efficiency with Class-E Tesla Coil
Wireless energy transfer also known as wireless power transmission is a method of getting useful el...
-
-
AEL-2011 Power Supply Module
327 0 1 -
AEL-2011 50W Power Amplifier
300 0 1 -
-
-
Custom Mechanical Keyboard
567 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
232 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
238 0 1 -
-
-







