Arduino UNO-Based Multi-Sensor Security System with PIR, Gas, and Vibration 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 sensors include a PIR sensor, an MQ-2 gas sensor, and an SW-420 vibration sensor. The output devices include a buzzer and two red LEDs. The circuit is designed to detect motion, gas presence, and vibrations, and respond accordingly by activating the buzzer and LEDs.
Component List
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 sensor
- Description: A passive infrared sensor used to detect motion.
- Pins: VDD, SIG, GND
MQ-2
- Description: A gas sensor used to detect the presence of gases like LPG, i-butane, propane, methane, alcohol, Hydrogen, and smoke.
- Pins: GND, VCC, ANALOG, Digital
SW-420 Vibration Sensor
- Description: A vibration sensor module used to detect vibrations.
- Pins: vcc, Ground, Digital output
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
LED: Two Pin (red)
- Description: A red light-emitting diode.
- Pins: cathode, anode
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
Wiring Details
Arduino UNO
GND is connected to:
- GND of PIR sensor
- GND of buzzer
- GND of MQ-2
- Ground of SW-420 Vibration Sensor
- pin1 of Resistor (200 Ohms)
- pin1 of another Resistor (200 Ohms)
5V is connected to:
- VDD of PIR sensor
- VCC of MQ-2
- vcc of SW-420 Vibration Sensor
D4 is connected to:
- cathode of LED (red)
D5 is connected to:
- cathode of another LED (red)
A0 is connected to:
- ANALOG of MQ-2
D6 is connected to:
- SIG of PIR sensor
D3 is connected to:
- PIN of buzzer
D2 is connected to:
- Digital output of SW-420 Vibration Sensor
PIR sensor
GND is connected to:
- GND of Arduino UNO
VDD is connected to:
- 5V of Arduino UNO
SIG is connected to:
- D6 of Arduino UNO
MQ-2
GND is connected to:
- GND of Arduino UNO
VCC is connected to:
- 5V of Arduino UNO
ANALOG is connected to:
- A0 of Arduino UNO
SW-420 Vibration Sensor
Ground is connected to:
- GND of Arduino UNO
vcc is connected to:
- 5V of Arduino UNO
Digital output is connected to:
- D2 of Arduino UNO
Buzzer
GND is connected to:
- GND of Arduino UNO
PIN is connected to:
- D3 of Arduino UNO
LED: Two Pin (red)
cathode is connected to:
- D4 of Arduino UNO
anode is connected to:
- pin2 of Resistor (200 Ohms)
Another LED: Two Pin (red)
cathode is connected to:
- D5 of Arduino UNO
anode is connected to:
- pin2 of another Resistor (200 Ohms)
Resistor (200 Ohms)
pin1 is connected to:
- GND of Arduino UNO
pin2 is connected to:
- anode of LED (red)
Another Resistor (200 Ohms)
pin1 is connected to:
- GND of Arduino UNO
pin2 is connected to:
- anode of another LED (red)
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:
}
Additional Documentation (documentation.txt)