Arduino-Based Multi-Sensor Alarm System with Flame and Motion Detection
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various sensors and output devices. The components include an MQ-2 gas sensor, a KY-026 flame sensor, a PIR motion sensor, a piezo buzzer, and an LED. The Arduino UNO reads data from the sensors and controls the LED and buzzer based on the sensor inputs.
Component List
MQ-2 Gas Sensor
- Description: A sensor used to detect gas levels in the environment.
- Pins: GND, VCC, ANALOG, Digital
LED: Two Pin (red)
- Description: A red LED used as an indicator.
- Pins: cathode, anode
KY-026 Flame Sensor
- Description: A sensor used to detect flame or fire.
- Pins: A0, GND, VCC, D0
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
PIR/Motion Sensor
- Description: A sensor used to detect motion.
- Pins: GND, OUTPUT, VCC
Piezo Buzzer
- Description: A buzzer used to produce sound.
- Pins: pin 1, pin 2
Wiring Details
MQ-2 Gas Sensor
- ANALOG pin connected to A0 pin of Arduino UNO.
LED: Two Pin (red)
- cathode pin connected to GND pin of Arduino UNO.
- anode pin connected to D13 pin of Arduino UNO.
KY-026 Flame Sensor
- VCC pin connected to 5V pin of Arduino UNO.
- GND pin connected to GND pin of Arduino UNO.
- D0 pin connected to D2 pin of Arduino UNO.
Arduino UNO
- 5V pin connected to VCC pin of PIR/Motion Sensor and VCC pin of KY-026 Flame Sensor.
- GND pin connected to GND pin of Piezo Buzzer, GND pin of PIR/Motion Sensor, GND pin of KY-026 Flame Sensor, and cathode pin of LED.
- A0 pin connected to ANALOG pin of MQ-2 Gas Sensor.
- D13 pin connected to anode pin of LED.
- D2 pin connected to D0 pin of KY-026 Flame Sensor.
PIR/Motion Sensor
- VCC pin connected to 5V pin of Arduino UNO.
- GND pin connected to GND pin of Arduino UNO.
Piezo Buzzer
- pin 1 not connected.
- pin 2 connected to GND pin of Arduino UNO.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.