Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino Mega 2560 Controlled Fire Detection Robot with Bluetooth Interface and Water Pump Activation

Image of Arduino Mega 2560 Controlled Fire Detection Robot with Bluetooth Interface and Water Pump Activation

Circuit Documentation

Summary

This circuit is designed to interface an Arduino Mega 2560 with various sensors, actuators, and modules to perform a range of functions. The circuit includes flame sensors for detection purposes, a Bluetooth module for wireless communication, a motor driver to control gearmotors, a relay to switch a water pump, and a battery to provide power. The Arduino Mega 2560 serves as the central processing unit, running the embedded code to manage inputs and outputs based on the sensor data and wireless commands.

Component List

Arduino Mega 2560

  • Microcontroller board based on the ATmega2560
  • It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button.

L298N DC Motor Driver

  • Module for controlling up to two DC motors with a maximum current of 2A per channel.
  • It can also be used to control the direction of the motors.

Hobby Gearmotor with 48:1 Gearbox (4 units)

  • A DC motor with a gearbox for increased torque.
  • Typically used in robotics and DIY projects where controlled movement is required.

Mini Diaphragm Water Pump

  • A small pump used for moving water or other fluids.
  • It is controlled by the relay in this circuit.

HC-05 Bluetooth Module

  • A wireless communication module that allows for serial communication via Bluetooth.
  • It can be used to send and receive data from a smartphone or computer.

KY-026 Flame Sensor (12 units)

  • A sensor that can detect fire or other sources of heat.
  • The circuit uses multiple flame sensors for comprehensive fire detection.

Battery 12V

  • A 12V battery that provides power to the motor driver and indirectly to the motors and the water pump.

Two Channel Relay 5V

  • An electromechanical switch that allows for controlling high power devices with low power signals.
  • In this circuit, it is used to control the water pump.

Wiring Details

Arduino Mega 2560

  • VIN connected to L298N DC motor driver 5V
  • GND connected to the common ground net
  • Digital pins D3 PWM, D4 PWM, D5 PWM, D6 PWM, D7 PWM, D52, D50, D48, D46, D44, D30, D28, D26, D24, D22, D53 connected to various components for control signals
  • Analog pin A5 connected to KY-026 Flame Sensor A0
  • Serial pins D19/RX1, D18/TX1 connected to HC-05 Bluetooth Module TXD, RXD

L298N DC Motor Driver

  • OUT1, OUT2, OUT3, OUT4 connected to Hobby Gearmotors
  • 12V connected to Battery 12V +
  • GND connected to the common ground net
  • 5V connected to Arduino Mega 2560 VIN
  • IN1, IN2, IN3, IN4 connected to Arduino Mega 2560 digital pins for motor control
  • ENA, ENB connected to jumper settings for enabling motor outputs

Hobby Gearmotors

  • Two pins connected to L298N DC motor driver outputs

Mini Diaphragm Water Pump

  • Positive (+) connected to Two Channel Relay 5V NC2
  • Negative (-) connected to the common ground net

HC-05 Bluetooth Module

  • VCC connected to common VCC net
  • GND connected to the common ground net
  • TXD connected to Arduino Mega 2560 D19/RX1
  • RXD connected to Arduino Mega 2560 D18/TX1

KY-026 Flame Sensors

  • VCC connected to common VCC net
  • GND connected to the common ground net
  • A0 of one sensor connected to Arduino Mega 2560 A5
  • D0 of each sensor connected to individual digital pins on Arduino Mega 2560

Battery 12V

  • + connected to L298N DC motor driver 12V
  • - connected to the common ground net

Two Channel Relay 5V

  • VCC connected to common VCC net
  • GND connected to the common ground net
  • IN2 connected to Arduino Mega 2560 D3 PWM
  • NC2 connected to Mini Diaphragm Water Pump Positive (+)

Documented Code

Arduino Mega 2560 - sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Arduino Mega 2560 - documentation.txt

(No additional documentation provided for the code)

(Note: The code provided is a template and does not contain any functional logic. It will need to be populated with the actual code to control the components based on the requirements of the circuit's application.)