Sanjivani University · Mechanical Engineering · Group 3

Fire Fighter Robot

An Arduino robot that spots a flame with two IR sensors, turns toward it, closes in, sweeps a servo-aimed nozzle and fires a 3-second burst of water. Explore every part, trace the wiring and run the real firmware logic right in your browser.

2
IR flame sensors
3s
water burst
45°–135°
nozzle sweep
100ms
sensing loop

01 Overview

A small robot with a big job

What we built, why it matters and what we set out to learn.

What is a Fire Fighter Robot?

A robotic system that detects fire and assists in fighting it. Ours uses an Arduino Uno as its brain and two IR flame sensors as its eyes.

When a sensor sees a flame, the robot turns toward it. Once the flame is straight ahead, the servo swings the nozzle across the fire zone and the mini water pump fires through a driver circuit. If the flame survives, the robot drives closer and tries again.

  • Detects the infrared light emitted by a flame
  • Turns and moves toward the fire on its own
  • Combines mechanical design, electronics and programming

🖼️ Project poster

Firefighting Robot

An intelligent robot to fight fires and save lives. Innovating for a safer tomorrow.

  • 🔥 Detect
  • ⚡ Respond
  • 💧 Extinguish
University
Sanjivani University, Kopargaon
Department
Mechanical Engineering
Team
Vaibhav Ghare & Krushna Fapale

#FirefightingRobot #Robotics #Innovation #MechanicalEngineering #SanjivaniUniversity

Download poster

02 Hardware

Meet the parts

Filter by role, search, and open any card for specs, pins and build tips.

03 Operation

How it works

Six stages, from power-up to water spray. Press play, or click a stage or a block.

System block diagram: battery, flame sensors, Arduino Uno, motor driver, servo and pump 🔋 Battery power supply 🔥 Flame sensors A0 · A1 🧠 Arduino Uno reads & decides ⚙️ L298N + motors turn & close in 🎯 Servo nozzle sweep 45°→135°→90° 💧 Pump driver spray 3 s

    04 Live simulator

    Run the firmware in your browser

    A digital twin of FireFighterRobot.ino: same pins, same timings, same loop(). Move a flame and watch the robot turn toward it, spray, and close in if it falls short, while the pins, the code and the Serial Monitor update live.

    Try: drag a flame to the edge of a sensor cone and watch the robot turn · drag the robot or its ring · click empty floor to add a flame · double-click a flame to remove it · keys Space Q/E F Del

    loop() trace

    running
    
                

    Serial Monitor 9600 baud

    05 Electronics

    Trace every wire

    Hover a wire or a table row to follow it. Click a module to list only its pins, and use the legend to filter signal types.

    Wiring diagram of the Fire Fighter Robot BATTERY PACK e.g. 2 × 18650 · 7.4 V ARDUINO UNO ATmega328P · 5 V logic VIN A0 A1 5V GND D2 D3 D4 D5 D9 D10 D6 D7 LEFT FLAME DO → A0 · active LOW RIGHT FLAME DO → A1 · active LOW L298N dual H-bridge +12V IN1 IN2 IN3 IN4 ENA ENB OUT1/2 OUT3/4 2 × TT MOTORS left · right wheel SERVO + NOZZLE signal ← D6 PUMP DRIVER MOSFET / relay + diode WATER PUMP tank · tube · nozzle Sensor & servo VCC → 5 V and all grounds common (not drawn)
    Tip: click a module in the diagram to filter the pin table.
    Arduino pinIn codeConnects toTypeNote
    ⚠️ Never power the pump from D7. An Arduino pin gives about 20 mA; a pump needs hundreds. D7 only switches a MOSFET, transistor or relay module.
    ⏚ Common ground. Join the battery, L298N, pump driver, servo and Arduino grounds, or the signals have no reference.
    🛠 Remove the ENA/ENB jumpers on the L298N so D9 and D10 can control motor enable.

    06 Firmware

    Read the code

    Loaded live from firmware/FireFighterRobot in the repository. Press Explain for a guided tour of the important lines.

    Loading firmware…

    07 Build guide

    From parts box to first spray

    Ten steps. Tick them off as you go; your progress is saved in this browser.

      08 Impact

      Where it fits and where it goes next

      Real-world uses, an honest look at strengths and limits, and the upgrade roadmap.

      09 Quick quiz

      How well do you know the robot?

      Ten questions, great for viva prep. Your best score is saved in this browser.

      10 FAQ

      Questions & troubleshooting

      Can this robot fight a real fire?

      No. It is an educational prototype that shows flame detection and an automatic response. Its small tank, short range and simple sensors are not suitable for real emergencies.

      Why do the sensors print 1 when there is no fire?

      Most IR flame modules are active LOW: their DO pin sits HIGH (1) and drops LOW (0) when infrared from a flame crosses the threshold. That is why the code uses #define FLAME_ACTIVE LOW.

      How does it find the fire with only two sensors?

      Both sensors face forward, about 14 cm apart. If only one sees the flame, it is off to that side, so the robot pivots toward it in 80 ms steps. When both see it (or it jumps to the other sensor right after a turn) the flame is straight ahead, so the robot sweeps and sprays. If the flame survives, it drives 300 ms closer and sprays again. Watch it in the simulator.

      It turns away from the flame, or drives backwards.

      A motor is wired the other way round. Swap that motor's two wires on the L298N terminal (OUT1/OUT2 or OUT3/OUT4). If the whole robot reacts to the wrong side, swap the A0 and A1 sensor wires.

      It triggers in sunlight or under lamps.

      Sunlight and incandescent bulbs emit the same infrared band as flames. Turn the module's potentiometer to lower the sensitivity, shade the sensors, and test indoors. Try the ☀️ Sunlight switch in the simulator to see the effect.

      The servo jitters or the Arduino resets when the pump starts.

      This is almost always power. Run the pump and motors from the battery (not the Arduino's 5 V), put a flyback diode across the pump, add a large capacitor (for example 470 µF) near the servo, and connect all grounds together.

      How do I change a pin or the spray time?

      Edit config.h. Every pin and timing, such as PUMP_PIN or PUMP_ON_MS, is defined there, so FireFighterRobot.ino does not need to change.

      11 Team

      The people behind the robot

      Department of Mechanical Engineering · Sanjivani University, Kopargaon · Group 3

      Project conclusion

      The Fire Fighter Robot brings together an Arduino, flame sensors, motor control and a pump-driven nozzle in one small educational system. It shows how mechanical engineering, electronics and automation meet in a real, working machine.

      • –stars
      • –forks
      • –open issues