Circuit Documentation
Summary
This circuit integrates various components to perform a specific function. It includes an Arduino UNO as the main microcontroller, interfaced with a flame sensor for detecting fire or flame presence. A piezo buzzer is connected to provide an audible alert. The circuit also features a SIM800L module for cellular communication capabilities. A 12V single-channel relay is used to control a 5V mini water pump, which could be part of a fire suppression system. The power supply for the relay is provided by an 18650 battery holder. Additionally, a KY-026 Flame Sensor is included for enhanced flame detection, and an Arduino Nano serves as a secondary microcontroller or for a separate subsystem within the circuit.
Component List
Microcontrollers
- Arduino UNO: A microcontroller board based on the ATmega328P, featuring digital and analog I/O pins.
- Arduino Nano: A small, complete, and breadboard-friendly board based on the ATmega328P, similar to the Arduino UNO but in a smaller form factor.
Sensors
- Flame Sensor: A device that detects fire or flame presence, typically using infrared (IR) sensing.
- KY-026 Flame Sensor: Another type of flame sensor that detects flame presence with a digital output.
Actuators
- 5V Mini Water Pump: A small pump that operates at 5V, used for pumping water or other fluids.
- Piezo Buzzer: An electronic device that emits a tone when voltage is applied, used for audible alerts.
Communication Modules
- Sim800l: A GSM/GPRS module that allows cellular network communication for voice calls, SMS, and data.
Power Supply
- 18650 in Holder: A battery holder for an 18650 lithium-ion cell, providing a power source for the circuit.
Relay Modules
- 12V Single Channel Relay: An electromechanical switch that allows a low-power circuit to control a higher power circuit, in this case, to control the water pump.
Wiring Details
Arduino UNO
- 5V connected to Flame Sensor VCC.
- GND connected to Flame Sensor GND, Piezo Buzzer pin 1, and Sim800l GND.
- D5 connected to Flame Sensor D0.
- D4 connected to Piezo Buzzer pin 2.
- D3 connected to Sim800l RXD.
- D2 connected to Sim800l TXD.
Flame Sensor
- VCC connected to Arduino UNO 5V.
- GND connected to Arduino UNO GND.
- D0 connected to Arduino UNO D5.
Piezo Buzzer
- Pin 1 connected to Arduino UNO GND.
- Pin 2 connected to Arduino UNO D4.
Sim800l
- RXD connected to Arduino UNO D3.
- TXD connected to Arduino UNO D2.
- GND connected to 18650 in Holder GND.
- VCC connected to 18650 in Holder VCC.
12V Single Channel Relay
- COM connected to 18650 in Holder VCC.
- NO connected to 5V Mini Water Pump positive pin.
- IN connected to Arduino Nano D6.
- GND connected to Arduino Nano GND and KY-026 Flame Sensor GND.
- VCC connected to Arduino Nano 5V and KY-026 Flame Sensor VCC.
5V Mini Water Pump
- Positive Pin connected to 12V Single Channel Relay NO.
- Negative Pin connected to 18650 in Holder GND.
KY-026 Flame Sensor
- GND connected to Arduino Nano GND and 12V Single Channel Relay GND.
- VCC connected to Arduino Nano 5V and 12V Single Channel Relay VCC.
- DO connected to Arduino Nano D5.
Arduino Nano
- D6 connected to 12V Single Channel Relay IN.
- D5 connected to KY-026 Flame Sensor DO.
- GND connected to KY-026 Flame Sensor GND and 12V Single Channel Relay GND.
- 5V connected to KY-026 Flame Sensor VCC and 12V Single Channel Relay VCC.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code for the Arduino UNO is a template with empty setup and loop functions. The actual functionality needs to be implemented based on the requirements of the circuit.
Arduino Nano Code
No code provided for the Arduino Nano. It is assumed that the code structure would be similar to the Arduino UNO, with setup and loop functions to be implemented as needed.