Arduino UNO Based Security System with Multiple Pushbuttons, Door Sensor, Relay Control, and LCD Feedback
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed around an Arduino UNO microcontroller, which serves as the central processing unit. The circuit includes a variety of components such as pushbuttons, a piezo buzzer, an LCD display with I2C interface, a 5V relay, a battery pack, and a door sensor (MC-38). The pushbuttons are used as input devices, the piezo buzzer as an output audio signal device, the LCD display for visual output, the relay for controlling higher power loads, and the door sensor as a security input device. The battery pack provides power to the circuit.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- Provides digital and analog I/O pins
- Can be powered via the USB connection or with an external power supply
Pushbuttons (x8)
- Simple switch mechanism for control or input
- Each button has four pins: two for the switch operation (in) and two for the output state (out)
Piezo Buzzer
- Electronic device that produces sound when an electrical signal is applied
- Typically used for generating beeps, alerts, and tones
LCD 20x4 I2C
- Alphanumeric liquid crystal display
- Capable of displaying 4 lines of 20 characters
- Uses I2C communication protocol for interfacing with the microcontroller
5V Relay
- Electromechanical switch used to control a high power circuit with a low power signal
- Has a coil rated at 5V and contacts that can switch AC or DC loads
Battery Pack
- Provides a power source for the circuit
- Typically consists of multiple batteries connected together to provide the required voltage and current
Door MC-38
- Magnetic contact switch that detects door open/close events
- Commonly used in security systems
Wiring Details
Arduino UNO
5Vconnected to LCD 20x4 i2c5v, 5V relayVCCGNDconnected to LCD 20x4 i2cGND, 5V relayGND, Battery pack-, and common ground for all pushbuttons and Piezo BuzzerVinconnected to Battery pack+A4connected to LCD 20x4 i2cSCAA5connected to LCD 20x4 i2cSCLD13connected to Piezo Buzzerpin 2D11,D10,D9,D8,D7,D6,D5,D4connected to respective pushbuttonPin 4 (out)D2connected to Door MC-38SD1connected to 5V relayIn
Pushbuttons
Pin 2 (in)of all pushbuttons connected to common groundPin 4 (out)of each pushbutton connected to a unique digital pin on the Arduino UNO
Piezo Buzzer
pin 1connected to common groundpin 2connected to Arduino UNOD13
LCD 20x4 I2C
5vconnected to Arduino UNO5VGNDconnected to Arduino UNOGNDSCAconnected to Arduino UNOA4SCLconnected to Arduino UNOA5
5V Relay
VCCconnected to Arduino UNO5VGNDconnected to Arduino UNOGNDInconnected to Arduino UNOD1
Battery Pack
+connected to Arduino UNOVin-connected to common ground
Door MC-38
Sconnected to Arduino UNOD2GNDconnected to common ground
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 any functional code. It needs to be populated with the logic to handle the inputs from the pushbuttons, door sensor, and to control the outputs such as the LCD display, piezo buzzer, and the relay.