Arduino UNO-Based RFID and Ultrasonic Sensor Security System with Visual and Audio Alerts
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with an RFID-RC522 module, an HC-SR04 Ultrasonic Sensor, a Piezo Buzzer, two LEDs (green and red), and two resistors. The circuit is designed to demonstrate basic interfacing and control of these components using the Arduino platform.
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
RFID-RC522
- Description: A low-cost RFID reader module.
- Pins: SDA, SCK, MOSI, MISO, IRQ, GND, RST, 3.3V
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for measuring distance.
- Pins: VCC, TRIG, ECHO, GND
Piezo Buzzer
- Description: A simple sound-producing device.
- Pins: pin 1, pin 2
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
LED: Two Pin (green)
- Description: A green LED.
- Pins: cathode, anode
LED: Two Pin (red)
- Description: A red LED.
- Pins: cathode, anode
Wiring Details
Arduino UNO
GND is connected to:
- Piezo Buzzer (pin 1)
- Green LED (cathode)
- Red LED (cathode)
- HC-SR04 Ultrasonic Sensor (GND)
- RFID-RC522 (GND)
D9 is connected to:
- Piezo Buzzer (pin 2)
D5 is connected to:
- Resistor (pin1)
D4 is connected to:
- Resistor (pin1)
3.3V is connected to:
- RFID-RC522 (3.3V)
5V is connected to:
- HC-SR04 Ultrasonic Sensor (VCC)
D13 is connected to:
- RFID-RC522 (SCK)
D12 is connected to:
- RFID-RC522 (MISO)
D11 is connected to:
- RFID-RC522 (MOSI)
D10 is connected to:
- RFID-RC522 (SDA)
D8 is connected to:
- HC-SR04 Ultrasonic Sensor (ECHO)
D7 is connected to:
- HC-SR04 Ultrasonic Sensor (TRIG)
D6 is connected to:
- RFID-RC522 (RST)
RFID-RC522
3.3V is connected to:
- Arduino UNO (3.3V)
GND is connected to:
- Arduino UNO (GND)
SCK is connected to:
- Arduino UNO (D13)
MISO is connected to:
- Arduino UNO (D12)
MOSI is connected to:
- Arduino UNO (D11)
SDA is connected to:
- Arduino UNO (D10)
RST is connected to:
- Arduino UNO (D6)
HC-SR04 Ultrasonic Sensor
VCC is connected to:
- Arduino UNO (5V)
GND is connected to:
- Arduino UNO (GND)
ECHO is connected to:
- Arduino UNO (D8)
TRIG is connected to:
- Arduino UNO (D7)
Piezo Buzzer
pin 1 is connected to:
- Arduino UNO (GND)
- Green LED (cathode)
- Red LED (cathode)
pin 2 is connected to:
- Arduino UNO (D9)
Resistor (200 Ohms)
pin1 is connected to:
- Arduino UNO (D5)
- Arduino UNO (D4)
pin2 is connected to:
- Green LED (anode)
- Red LED (anode)
LED: Two Pin (green)
cathode is connected to:
- Arduino UNO (GND)
- Piezo Buzzer (pin 1)
anode is connected to:
- Resistor (pin2)
LED: Two Pin (red)
cathode is connected to:
- Arduino UNO (GND)
- Piezo Buzzer (pin 1)
anode is connected to:
- Resistor (pin2)
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)