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.
- Parts
- ₹3,300
- Build
- 12 weeks
- Board
- Arduino Uno
- Objectives
- 6
Block diagram
- Three flame sensorsFind the direction of the fire
- Ultrasonic sensorAvoids walls
- CameraCaptures a photo when the event happens+
- Arduino UnoSteers and controls the pump
- 2S Li-ion packPower for motors and pump
- Motor driver and chassisDrive towards the fire
- Pump and servo nozzleSweep water over the flame
- Phone appShows readings and sends commands over Bluetooth+
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.
- To capture and store an image automatically when an event is detected.
- To monitor and control the system from a phone over Bluetooth.
Parts and specifications
- Arduino Uno R3 (CH340 clone)ATmega328P 16 MHz, 32 KB flash, 2 KB SRAM, 5 V logic, 6 analog inputs (10-bit), 6 PWM pins₹450Buy
- IR flame sensor modulePhotodiode 760 to 1100 nm, about 60° view, sees a candle at about 80 cm, digital and analog out₹180Buy
- HC-SR04 ultrasonic sensor2 cm to 4 m, 15° beam, 40 kHz, 10 µs trigger, echo pulse 58 µs per cm, 5 V₹80Buy
- 5 V relay module (1 channel)10 A 250 V AC contacts, coil 70 to 80 mA, optocoupled input; many trigger at 3.3 V, check yours₹70Buy
- Water bottle tank and tube₹80
- ESP32-CAM with OV2640ESP32 + 4 MB PSRAM + 2 MP OV2640 camera, microSD slot, needs 5 V 500 mA for stable Wi-Fi₹550Buy
Total about ₹3,300 at typical online prices. Tap a part for its pinout and datasheet notes.
Design calculations
Error = right − left (analog). Turn towards the larger signal; drive straight when the centre is strongest.
Stop when the centre flame reading passes a level found at 20 cm, or ultrasonic < 15 cm.
Pump about 180 mA at 5 V; spraying 10 s uses 0.5 mAh, negligible against the 2600 mAh pack.
1.2 L/min = 20 mL/s; a candle needs under 50 mL, so a 500 mL bottle covers 10 fires.
Pin map
| Signal | Pin or connection |
|---|---|
| Flame sensors left / centre / right | A0 / A1 / A2 |
| HC-SR04 TRIG / ECHO | D12 / D11 |
| L298N ENA, IN1, IN2, IN3, IN4, ENB | D5, D7, D8, D9, D10, D6 |
| Pump relay | D4 |
| Nozzle servo | D3 |
Firmware outline
- Search: rotate in place until a flame sensor reads above threshold.
- Approach: steer by the flame error, stop for walls closer than 15 cm and turn away.
- At 20 cm, stop and turn on the pump while sweeping the servo 60° to 120°.
- After 3 s check the flame; keep spraying up to 10 s, then search again.
- Report state over Bluetooth (upgrade).
Test plan
| Test | Expected result |
|---|---|
| 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 |
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.
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.
