├── Code for remote control fire extingusher robot └── README.md /Code for remote control fire extingusher robot: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | const int motor1Pin1 = 2; 4 | const int motor1Pin2 = 3; 5 | const int motor2Pin1 = 4; 6 | const int motor2Pin2 = 5; 7 | 8 | const int bluetoothTx = 6; 9 | const int bluetoothRx = 7; 10 | 11 | SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); 12 | 13 | void setup() { 14 | 15 | Serial.begin(9600); 16 | 17 | bluetooth.begin(9600); 18 | pinMode(motor1Pin1, OUTPUT); 19 | pinMode(motor1Pin2, OUTPUT); 20 | pinMode(motor2Pin1, OUTPUT); 21 | pinMode(motor2Pin2, OUTPUT); 22 | } 23 | 24 | void loop() { 25 | if (bluetooth.available()) { 26 | char command = bluetooth.read(); 27 | 28 | if (command == 'F') { 29 | forward(); 30 | } else if (command == 'B') { 31 | backward(); 32 | } else if (command == 'L') { 33 | left(); 34 | } else if (command == 'R') { 35 | right(); 36 | } else if (command == 'S') { 37 | stopMotors(); 38 | } 39 | } 40 | } 41 | 42 | void forward() { 43 | digitalWrite(motor1Pin1, HIGH); 44 | digitalWrite(motor1Pin2, LOW); 45 | digitalWrite(motor2Pin1, HIGH); 46 | digitalWrite(motor2Pin2, LOW); 47 | } 48 | void backward() { 49 | digitalWrite(motor1Pin1, LOW); 50 | digitalWrite(motor1Pin2, HIGH); 51 | digitalWrite(motor2Pin1, LOW); 52 | digitalWrite(motor2Pin2, HIGH); 53 | } 54 | 55 | void left() { 56 | digitalWrite(motor1Pin1, LOW); 57 | digitalWrite(motor1Pin2, HIGH); 58 | digitalWrite(motor2Pin1, HIGH); 59 | digitalWrite(motor2Pin2, LOW); 60 | } 61 | 62 | void right() { 63 | digitalWrite(motor1Pin1, HIGH); 64 | digitalWrite(motor1Pin2, LOW); 65 | digitalWrite(motor2Pin1, LOW); 66 | digitalWrite(motor2Pin2, HIGH); 67 | } 68 | 69 | 70 | void stopMotors() { 71 | digitalWrite(motor1Pin1, LOW); 72 | digitalWrite(motor1Pin2, LOW); 73 | digitalWrite(motor2Pin1, LOW); 74 | digitalWrite(motor2Pin2, LOW); 75 | } 76 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Fire disasters can occur anytime and result in high losses. It is often that fire fighters cannot 2 | access the source of fire due to the damage of building and very high temperature, or even due to 3 | the presence of explosive materials. With such constraints and high risk in the handling of the fire, 4 | a technological breakthrough that can help fighting the fire is necessary. This project seeks to 5 | provide a technical solution for fire extinguishment in a hazardous setting. The robot has a robust 6 | fire extinguishing system and is designed to survive harsh environments. We wish to control the 7 | robot's motions and operations from a safe distance using the remote control interface, which offers 8 | firefighters with real-time control over the robot. A water tank with a pump is mounted to the robot 9 | to extinguish fires in buildings, industries, and other areas where fires have spread. A WIFI camera 10 | is installed in the robot to monitor the movement of the fire extinguisher robot, Through this we 11 | can move the robot front and back using the video which is transmitted through WIFI . This robot 12 | is controlled via a smartphone application, and it is linked to a bluetooth module. The application 13 | is linked to the bluetooth module, and the signal is sent to the arduino via the bluetooth module. 14 | The robot can move in response to the signal sent to the motor driver. Accuracy of the control 15 | system has been satisfactory throughout this project. The fire eliminating performance and the 16 | robot movement speed was closed to the aspiration 17 | --------------------------------------------------------------------------------