ESP32-Based Fire Detection and Suppression Robot with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves multiple sensors, motors, a motor driver, a microcontroller, and power sources. The primary components include DC motors, flame sensors, IR sensors, a trimmer potentiometer, a relay module, a water pump, a 12V battery, and an ESP32 microcontroller. The circuit is designed to control motors and sensors, with the ESP32 microcontroller managing the operations.
Component List
DC Motor
- Description: A motor that runs on direct current (DC) electricity.
- Pins: pin 1, pin 2
Flame Sensor
- Description: A sensor used to detect the presence of a flame.
- Pins: VCC, GND, D0, A0
Trimmer Potentiometer
- Description: A variable resistor used to adjust levels in a circuit.
- Pins: leg1, wiper, leg2
- Properties:
- Resistance: 10000 Ohms
IR Sensor
- Description: An infrared sensor used to detect objects or measure distance.
- Pins: out, gnd, vcc
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver that allows control of two DC motors.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
7805
- Description: A voltage regulator that outputs a stable 5V.
- Pins: Vin, Gnd, Vout
ESP32 (30 pin)
- Description: A microcontroller with built-in Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
Relay Module 5V-30V
- Description: A relay module used to control high voltage devices.
- Pins: common contact, normally open, normally closed, trigger, V-, V+
Mini Diaphragm Water Pump
- Description: A small water pump powered by DC.
- Pins: Positive (+), Negative (-)
18650 Li-ion Battery
- Description: A rechargeable lithium-ion battery.
- Pins: -, +
3S 10A Li-ion 18650 Charger Protection Board Module
- Description: A protection board for charging and discharging 18650 Li-ion batteries.
- Pins: B+, B2, B1, P-, P+, B-
12V Battery
- Description: A battery that provides 12V DC power.
- Pins: -, +
Micro Servo 9G
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
Wiring Details
DC Motor
- pin 2 connected to L298N DC motor driver OUT1
- pin 1 connected to L298N DC motor driver OUT2
DC Motor
- pin 2 connected to L298N DC motor driver OUT3
- pin 1 connected to L298N DC motor driver OUT4
Trimmer Potentiometer
- leg2 connected to IR sensor vcc, 12V Battery +, Relay module 5V-30V common contact, Relay module 5V-30V V+, L298N DC motor driver 12V, L298N DC motor driver 5V, ESP32 Vin, IR sensor vcc, 3S 10A Li-ion 18650 Charger Protection Board Module P+, IR sensor vcc, 7805 Vin, 7805 Vout, Micro servo 9G +5V
- leg1 connected to IR sensor gnd, Flame Sensor GND, Mini Diaphragm Water Pump Negative (-), 12V Battery -, Relay module 5V-30V V-, L298N DC motor driver GND, ESP32 GND, IR sensor gnd, 3S 10A Li-ion 18650 Charger Protection Board Module P-, IR sensor gnd, 7805 Gnd, Flame Sensor GND, Micro servo 9G GND
IR Sensor
- out connected to ESP32 D34
DC Motor
- pin 2 connected to L298N DC motor driver OUT3
- pin 1 connected to L298N DC motor driver OUT4
L298N DC Motor Driver
- IN1 connected to ESP32 D21
- IN2 connected to ESP32 D19
- IN3 connected to ESP32 D18
- IN4 connected to ESP32 D5
Trimmer Potentiometer
- wiper connected to Flame Sensor VCC
ESP32 (30 pin)
- D35 connected to IR sensor out
- D25 connected to Flame Sensor A0
- D27 connected to Flame Sensor A0
- D14 connected to Flame Sensor A0
- D12 connected to Flame Sensor A0
- D13 connected to Flame Sensor A0
- D26 connected to Flame Sensor A0
- D32 connected to IR sensor out
- D33 connected to IR sensor out
- D4 connected to Micro servo 9G PWM
- D15 connected to Relay module 5V-30V trigger
Mini Diaphragm Water Pump
- Positive (+) connected to Relay module 5V-30V normally open
18650 Li-ion Battery
- - connected to 3S 10A Li-ion 18650 Charger Protection Board Module B-
- + connected to 18650 Li-ion Battery -
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to 18650 Li-ion Battery -
- + connected to 18650 Li-ion Battery +
- - connected to **18650 Li-ion Battery