Fire-fighting robot with flame tracking and water spray

Firefighters enter smoke-filled rooms with little information. A small robot that finds a flame, drives towards it and sprays water shows how robots can go first into danger.

Arduino UnoMini or Major projectECE, EEE, MECH, Diploma
UNOTHREE92 cmFeatured
Parts
₹3,300
Build
12 weeks
Board
Arduino Uno
Objectives
6
Test with one candle on a metal tray, with a bucket of water and an adult nearby, away from curtains and paper.

Block diagram

Inputs
  • THREE
    Three flame sensorsFind the direction of the fire
  • Ultrasonic sensorAvoids walls
  • ESP32
    CameraCaptures a photo when the event happens+
Controller
  • UNO
    Arduino UnoSteers and controls the pump
Power
  • +
    2S Li-ion packPower for motors and pump
Outputs
  • Motor driver and chassisDrive towards the fire
  • Pump and servo nozzleSweep water over the flame
  • PHONE
    Phone appShows readings and sends commands over Bluetooth+

Objectives

  1. To find the direction of a candle flame from 1.5 m with three flame sensors.
  2. To drive to within 20 cm of the flame without hitting walls.
  3. To sweep the nozzle and put out the flame within 10 s.
  4. To measure success rate and time over 10 trials from different starting angles.
  5. To capture and store an image automatically when an event is detected.
  6. To monitor and control the system from a phone over Bluetooth.

Parts and specifications

Total about ₹3,300 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

Steering from flame sensors

Error = right − left (analog). Turn towards the larger signal; drive straight when the centre is strongest.

Stopping distance

Stop when the centre flame reading passes a level found at 20 cm, or ultrasonic < 15 cm.

Pump current

Pump about 180 mA at 5 V; spraying 10 s uses 0.5 mAh, negligible against the 2600 mAh pack.

Water flow

1.2 L/min = 20 mL/s; a candle needs under 50 mL, so a 500 mL bottle covers 10 fires.

Pin map

SignalPin or connection
Flame sensors left / centre / rightA0 / A1 / A2
HC-SR04 TRIG / ECHOD12 / D11
L298N ENA, IN1, IN2, IN3, IN4, ENBD5, D7, D8, D9, D10, D6
Pump relayD4
Nozzle servoD3

Firmware outline

  1. Search: rotate in place until a flame sensor reads above threshold.
  2. Approach: steer by the flame error, stop for walls closer than 15 cm and turn away.
  3. At 20 cm, stop and turn on the pump while sweeping the servo 60° to 120°.
  4. After 3 s check the flame; keep spraying up to 10 s, then search again.
  5. Report state over Bluetooth (upgrade).

Test plan

TestExpected result
Candle at 1.5 m, 0°, 45° and 90°Robot reaches and puts it out
Wall between robot and flameAvoids wall, then finds flame
10 trialsSuccess rate and time
Sunlight from a windowNote false triggers

These rows start your results table when you plan the project.

Viva practice

Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 5.

1. How do flame sensors work?
2. Why can sunlight confuse them?
3. Why water and not CO2 in your model?
4. Why a relay for the pump?
5. How would a real robot navigate smoke?

Make it yours

One or two upgrades for a mini project, two to four for a major one.

Build these first

Datasheets and sources to cite

  • IR flame sensor (YG1006) notes
  • STMicroelectronics L298 datasheet
  • National Building Code of India 2016, Part 4 (fire safety)

About this project

How much does the fire-fighting robot with flame tracking and water spray project cost?

About ₹2,600 for the parts in the base list: Arduino Uno R3 (CH340 clone), IR flame sensor module × 3, HC-SR04 ultrasonic sensor, L298N motor driver, 4WD robot chassis kit, Mini submersible pump 3 to 6 V, SG90 micro servo, 5 V relay module (1 channel), 18650 cell 2600 mAh (branded) × 2, 18650 holder 2S, 2S BMS 10 A, Water bottle tank and tube.

How long does it take?

About 8 weeks for the base project, built on an Arduino Uno. Each upgrade adds time.

Which branches is it suitable for?

Electronics and Communication, Electrical and Electronics, Mechanical / Mechatronics, Diploma (any electronics branch), as a mini or major project.

Which pins and design calculations does it use?

Flame sensors left / centre / right on A0 / A1 / A2; HC-SR04 TRIG / ECHO on D12 / D11; L298N ENA, IN1, IN2, IN3, IN4, ENB on D5, D7, D8, D9, D10, D6. Worked calculations on this page: steering from flame sensors, stopping distance, pump current, water flow.

How do I test it?

Candle at 1.5 m, 0°, 45° and 90°: Robot reaches and puts it out. Wall between robot and flame: Avoids wall, then finds flame. 10 trials: Success rate and time. Sunlight from a window: Note false triggers.

What are the objectives?

To find the direction of a candle flame from 1.5 m with three flame sensors. To drive to within 20 cm of the flame without hitting walls. To sweep the nozzle and put out the flame within 10 s. To measure success rate and time over 10 trials from different starting angles.