Arduino Leonardo-Based Smart Security System with Ultrasonic and PIR Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an Arduino Leonardo (Rev3b) microcontroller with various sensors and modules, including an HC-SR04 Ultrasonic Sensor, a PIR Sensor, a buzzer, and a Sim800l module. The circuit is designed to interface these components for a specific application, leveraging the Arduino Leonardo for control and data processing.
Component List
Arduino Leonardo (Rev3b)
- Description: A microcontroller board based on the ATmega32u4.
- Pins: D0/RX, D1/TX, D2/SDA, D3 PWM/SCL, D4/A6, D5 PWM, D6 PWM/A7, D7, n.c., IOREF, RESET, 3V3, 5V, GND, VIN, A0, A1, A2, A3, A4, A5, D8/A8, D9 PWM/A9, D10 PWM/A10, D11 PWM, D12/A11, D13 PWM, AREF, SDA, SCL
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for measuring distance using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
PIR Sensor
- Description: A sensor used for detecting motion.
- Pins: GND, VCC, Data
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
Sim800l
- Description: A GSM/GPRS module used for communication.
- Pins: NET, RST, VCC, RXD, TXD, GND
Wiring Details
Arduino Leonardo (Rev3b)
5V:
- Connected to VCC of HC-SR04 Ultrasonic Sensor
- Connected to VCC of PIR Sensor
- Connected to VCC of Sim800l
GND:
- Connected to GND of HC-SR04 Ultrasonic Sensor
- Connected to GND of PIR Sensor
- Connected to GND of Sim800l
- Connected to GND of Buzzer
D2/SDA:
- Connected to RXD of Sim800l
D3 PWM/SCL:
- Connected to TXD of Sim800l
D6 PWM/A7:
- Connected to Data of PIR Sensor
D9 PWM/A9:
- Connected to TRIG of HC-SR04 Ultrasonic Sensor
D10 PWM/A10:
- Connected to ECHO of HC-SR04 Ultrasonic Sensor
D12/A11:
- Connected to PIN of Buzzer
HC-SR04 Ultrasonic Sensor
VCC:
- Connected to 5V of Arduino Leonardo
GND:
- Connected to GND of Arduino Leonardo
TRIG:
- Connected to D9 PWM/A9 of Arduino Leonardo
ECHO:
- Connected to D10 PWM/A10 of Arduino Leonardo
PIR Sensor
VCC:
- Connected to 5V of Arduino Leonardo
GND:
- Connected to GND of Arduino Leonardo
Data:
- Connected to D6 PWM/A7 of Arduino Leonardo
Buzzer
PIN:
- Connected to D12/A11 of Arduino Leonardo
GND:
- Connected to GND of Arduino Leonardo
Sim800l
VCC:
- Connected to 5V of Arduino Leonardo
GND:
- Connected to GND of Arduino Leonardo
RXD:
- Connected to D2/SDA of Arduino Leonardo
TXD:
- Connected to D3 PWM/SCL of Arduino Leonardo
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and code documentation. This should serve as a useful reference for understanding and replicating the circuit.