Arduino Nano-Based Fire Detection and Response System with Flame Sensors and Motor Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller interfacing with multiple sensors, a relay module, a motor driver, a servo motor, and a water pump. The circuit is designed to detect flames using flame sensors and control various actuators based on the sensor inputs.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
KY-026 Flame Sensor
- Description: A flame sensor module that can detect fire or other light sources in the wavelength range of 760 nm to 1100 nm.
- Pins: A0, GND, VCC, D0
Micro servo 9G
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
L298N DC motor driver
- Description: A dual H-Bridge motor driver module 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
Relay module 5v-30v
- Description: A relay module that can be used to control high voltage devices.
- Pins: common contact, normally open, normally closed, trigger, V-, V+
7805
- Description: A voltage regulator that outputs a stable 5V from a higher voltage input.
- Pins: Vin, Gnd, Vout
7.4v Battery
- Description: A 7.4V battery used as the power source for the circuit.
- Pins: +, -
Rocker switch
- Description: A switch used to control the power supply to the circuit.
- Pins: output, input
Water pump
- Description: A small water pump used for liquid transfer.
- Pins: positive, negative
12V Geared Motor
- Description: A motor with a gearbox for increased torque.
- Pins: Terminal 1, Terminal 2
Wiring Details
Arduino Nano
- D2: Connected to D0 of KY-026 Flame Sensor
- D3: Connected to D0 of KY-026 Flame Sensor
- D4: Connected to D0 of KY-026 Flame Sensor
- D5: Connected to trigger of Relay module 5v-30v
- D6: Connected to IN1 of L298N DC motor driver
- D9: Connected to IN2 of L298N DC motor driver
- D10: Connected to IN3 of L298N DC motor driver
- D11/MOSI: Connected to IN4 of L298N DC motor driver
- D12/MISO: Connected to PWM of Micro servo 9G
- VIN: Connected to VCC of KY-026 Flame Sensor, VCC of KY-026 Flame Sensor, VCC of KY-026 Flame Sensor, normally open of Relay module 5v-30v, V+ of Relay module 5v-30v, +5V of Micro servo 9G, output of rocker switch
KY-026 Flame Sensor
- D0: Connected to D2 of Arduino Nano
- D0: Connected to D3 of Arduino Nano
- D0: Connected to D4 of Arduino Nano
- VCC: Connected to output of rocker switch
- GND: Connected to GND of L298N DC motor driver, - of 7.4v battery, V- of Relay module 5v-30v, Gnd of 7805, GND of Micro servo 9G, GND of Arduino Nano, negative of water pump
Micro servo 9G
- PWM: Connected to D12/MISO of Arduino Nano
- +5V: Connected to VIN of Arduino Nano
- GND: Connected to GND of Arduino Nano
L298N DC motor driver
- IN1: Connected to D6 of Arduino Nano
- IN2: Connected to D9 of Arduino Nano
- IN3: Connected to D10 of Arduino Nano
- IN4: Connected to D11/MOSI of Arduino Nano
- OUT1: Connected to Terminal 2 of 12V Geared Motor
- OUT2: Connected to Terminal 1 of 12V Geared Motor
- OUT3: Connected to Terminal 2 of 12V Geared Motor
- OUT4: Connected to Terminal 1 of 12V Geared Motor
- 12V: Connected to + of 7.4v battery, Vin of 7805
- GND: Connected to GND of KY-026 Flame Sensor, - of 7.4v battery, V- of Relay module 5v-30v, Gnd of 7805, GND of Micro servo 9G, GND of Arduino Nano, negative of water pump
Relay module 5v-30v
- trigger: Connected to D5 of Arduino Nano
- normally open: Connected to VIN of Arduino Nano
- V+: Connected to VIN of Arduino Nano
- V-: Connected to GND of KY-026 Flame Sensor, GND of L298N DC motor driver, - of 7.4v battery, Gnd of 7805, GND of Micro servo 9G, GND of Arduino Nano, negative of water pump
- common contact: Connected to positive of water pump
7805
- Vin: Connected to 12V of L298N DC motor driver
- Gnd: Connected to GND of KY-026 Flame Sensor, GND of L298N DC motor driver, - of 7.4v battery, V- of Relay module 5v-30v, GND of Micro servo 9G, GND of Arduino Nano, negative of water pump
- Vout: Connected to input of rocker switch
7.4v Battery
- +: Connected to 12V of L298N DC motor driver, Vin of 7805
- -: Connected to GND of KY-026 Flame Sensor, GND of L298N DC motor driver, V- of Relay module 5v-30v, Gnd of 7805, GND of Micro servo 9G, GND of Arduino Nano, negative of water pump
Rocker switch
- output: Connected to VCC of KY-026 Flame Sensor, VCC of KY-026 Flame Sensor, VCC of KY-026 Flame Sensor, normally open of Relay module 5v-30v, V+ of Relay module 5v-30v, +5V of Micro servo 9G, VIN of Arduino Nano
- input: Connected to Vout of 7805
Water pump
- positive: Connected to common contact of Relay module 5v-30v
- negative: Connected to GND of KY-026 Flame Sensor, GND of L298N DC motor driver, - of 7.4v battery, V- of Relay module 5v-30v, Gnd of 7805, GND of Micro servo 9G, GND of Arduino Nano
12V Geared Motor
- Terminal 1: Connected to OUT2 of L298N DC motor driver, OUT4 of L298N DC motor driver
- Terminal 2: Connected to OUT1 of