Firefighter Robot Using Two Deshbot Shield
by devkrishnavhora in Circuits > Arduino
69 Views, 0 Favorites, 0 Comments
Firefighter Robot Using Two Deshbot Shield
Objective
The objective of this project is to build an automatic firefighter robot using two Arduino Nano boards. The first Nano controls the robot's movement, ultrasonic obstacle detection, and flame detection. The second Nano controls the water pump according to the signal received from the first Nano.
Supplies
Components Required
- Arduino Nano × 2
- Motor driver × 2
- DC gear motors × 2
- Ultrasonic sensor HC-SR04
- Flame sensor
- Water pump
- Robot chassis
- BatteryJumper
- wires
PIN CONNECTION
Nano 1 — Robot Controller
Nano 1 controls:
- Motor 1
- Motor 2
- Ultrasonic sensor
- Flame sensor
- Communication with Nano 2
Pin Connections
ComponentNano 1
Motor 1 A - D7
Motor 1 B - D6
Motor 2 A - D8
Motor 2 B - D9
Ultrasonic TRIG - A1
Ultrasonic ECHO - A2
Flame Sensor - D11
TX D0
RX - D1
Nano 2 — Pump Controller
Nano 2 receives the signal from Nano 1 and controls the water pump.
ComponentNano 2
Pump A - D6
Pump B - D7
RX - D2
TX - D3
Communication Between the Two Nanos
The two Arduino Nano boards communicate using SoftwareSerial.
Nano 1 sends:
when a flame is detected.
Nano 1 sends:
when no flame is detected.
Working Principle
The robot starts moving forward while continuously checking the distance using the ultrasonic sensor.
If an obstacle is detected at a distance of less than 10 cm, the robot:
- Stops.
- Waits for 5 seconds.
- Turns right.
- Continues moving.
The flame sensor continuously checks for a flame.
When the flame sensor detects a flame:
- Nano 1 detects the flame.
- Nano 1 stops the robot.
- Nano 1 sends ON to Nano 2.
- Nano 2 receives the signal.
- Nano 2 turns the water pump ON.
- Water is sprayed toward the flame.
When the flame is no longer detected:
- Nano 1 sends OFF.
- Nano 2 turns the pump OFF.
- The robot can continue its movement.
Block Diagram
Main Features
- Automatic obstacle detection
- Automatic flame detection
- Two Arduino Nano controllers
- Wireless-style serial communication through TX/RX
- Automatic pump control
- Automatic robot movement
- 5-second obstacle stop
- Right-turn obstacle avoidance
Conclusion
This project demonstrates how two Arduino Nano boards can work together to create an automatic firefighter robot. Nano 1 handles sensing and movement, while Nano 2 handles the water pump. The two boards communicate using serial signals, allowing the robot to detect a flame and automatically activate the water pump.