Arduino UNO Based Security System with RFID, PIR Sensor, and Environmental Monitoring
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit integrates various sensors and modules with an Arduino UNO microcontroller to perform a range of sensing and actuation tasks. The Arduino UNO serves as the central processing unit, interfacing with an RFID-RC522 module for RFID reading, a PIR sensor for motion detection, an MQ-4 sensor for gas detection, a DHT11 sensor for temperature and humidity measurement, a Tower Pro SG90 servo for actuation, and a 20x4 LCD with I2C interface for display purposes. The circuit is powered through the Arduino UNO's voltage regulators, with components receiving either 3.3V or 5V as required.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- Provides digital and analog I/O pins
- Includes 3.3V and 5V power outputs
RFID-RC522
- RFID reader/writer module
- Operates at 13.56 MHz
- Interfaces with Arduino via SPI
PIR Sensor
- Passive Infrared sensor for motion detection
- Outputs a digital signal upon motion detection
MQ-4
- Gas sensor for detecting methane and natural gas
- Provides both analog and digital outputs
DHT11
- Sensor for measuring ambient temperature and humidity
- Outputs a digital signal with the sensor data
Tower Pro SG90 Servo
- Small and lightweight servo motor
- Controlled via PWM signal
Lcd 20x4 i2c
- Alphanumeric LCD display with 20 columns and 4 rows
- Uses I2C interface for communication
Wiring Details
Arduino UNO
3.3Vconnected to RFID-RC522 VCC5Vconnected to PIR sensor VDD, MQ-4 VCC, DHT11 VCC, Tower Pro SG90 servo +5V, and Lcd 20x4 i2c 5vGNDconnected to PIR sensor GND, MQ-4 GND, DHT11 GND, Tower Pro SG90 servo GND, RFID-RC522 GND, and Lcd 20x4 i2c GNDA0connected to MQ-4 A0A1connected to DHT11 DATAD13connected to PIR sensor SIGD11connected to Tower Pro SG90 servo SignalD10connected to RFID-RC522 IRQD9connected to RFID-RC522 RSTD8connected to RFID-RC522 MISOD7connected to RFID-RC522 SCKD6connected to RFID-RC522 MOSID5connected to Lcd 20x4 i2c SCAD4connected to Lcd 20x4 i2c SCLD3connected to RFID-RC522 SDA
RFID-RC522
VCC (3.3V)connected to Arduino UNO 3.3VRSTconnected to Arduino UNO D9GNDconnected to Arduino UNO GNDIRQconnected to Arduino UNO D10MISOconnected to Arduino UNO D8MOSIconnected to Arduino UNO D6SCKconnected to Arduino UNO D7SDAconnected to Arduino UNO D3
PIR Sensor
VDDconnected to Arduino UNO 5VSIGconnected to Arduino UNO D13GNDconnected to Arduino UNO GND
MQ-4
A0connected to Arduino UNO A0D0(Not connected in this circuit)GNDconnected to Arduino UNO GNDVCCconnected to Arduino UNO 5V
DHT11
DATAconnected to Arduino UNO A1GNDconnected to Arduino UNO GNDVCCconnected to Arduino UNO 5V
Tower Pro SG90 Servo
Signalconnected to Arduino UNO D11+5Vconnected to Arduino UNO 5VGNDconnected to Arduino UNO GND
Lcd 20x4 i2c
GNDconnected to Arduino UNO GND5vconnected to Arduino UNO 5VSCAconnected to Arduino UNO D5SCLconnected to Arduino UNO D4
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:
}
Note: The provided code is a template and does not include specific functionality. It should be populated with the setup and loop routines required to initialize and control the connected components.