This shows you the differences between two versions of the page.
pm:prj2023:avaduva:homesecuritysystem [2023/05/18 21:01] dumitru.maxim |
pm:prj2023:avaduva:homesecuritysystem [2023/05/30 10:34] (current) dumitru.maxim |
||
---|---|---|---|
Line 23: | Line 23: | ||
For the below diagram red cables represent connections to 5V power supply (VCC), black cables represent connections to the ground (GND), the purple cable represents the connection between the PIR sensor output and Arduino digital pin, the green cables represent connections between the LCD and the micro-controller, the blue cables represent connections between the keypad and the Arduino UNO, it can be noticed that column 4 of the keypad is not connected to any pin this is because the physical keypad that I acquired is 4 by 3 and I'm just using a 4*4 in the diagram as a place holder. | For the below diagram red cables represent connections to 5V power supply (VCC), black cables represent connections to the ground (GND), the purple cable represents the connection between the PIR sensor output and Arduino digital pin, the green cables represent connections between the LCD and the micro-controller, the blue cables represent connections between the keypad and the Arduino UNO, it can be noticed that column 4 of the keypad is not connected to any pin this is because the physical keypad that I acquired is 4 by 3 and I'm just using a 4*4 in the diagram as a place holder. | ||
- | __Pin Configuration:__ | + | __Pin Configuration:__\\ |
- | PIR motion sensor: *VCC to 5V pin | + | PIR motion sensor: |
- | *GND to GND pin | + | VCC to 5V pin |
- | *OUT to digital pin 2 | + | GND to GND pin |
+ | OUT to digital pin 2 | ||
| | ||
- | Keypad: *ROW1 to digital pin 7 | + | Keypad: |
- | *ROW2 to digital pin 6 | + | ROW1 to digital pin 7 |
- | *ROW3 to digital pin 5 | + | ROW2 to digital pin 6 |
- | *ROW4 to digital pin 4 | + | ROW3 to digital pin 5 |
- | *COL1 to digital pin 3 | + | ROW4 to digital pin 4 |
- | *COL2 to digital pin 9 | + | COL1 to digital pin 3 |
- | *COL3 to digital pin 8 | + | COL2 to digital pin 9 |
+ | COL3 to digital pin 8 | ||
LCD: | LCD: | ||
Line 42: | Line 44: | ||
SCL to analog pin 5 | SCL to analog pin 5 | ||
- | Buzzer: *Positive lead to digital pin 10 | + | Buzzer: |
- | *Negative lead to GND pin | + | Positive pin to digital pin 10 |
+ | Negative pin to GND pin | ||
{{:pm:prj2023:avaduva:stunning_densor-fulffy.png|}} | {{:pm:prj2023:avaduva:stunning_densor-fulffy.png|}} | ||
Line 55: | Line 58: | ||
{{:pm:prj2023:avaduva:am_flowchart.png|}} | {{:pm:prj2023:avaduva:am_flowchart.png|}} | ||
+ | The system starts with a predefined 4-digit password from the code. Upon starting the system the user will be able to interact with it in the following way: | ||
+ | |||
+ | 2) The LCD will display "Enter password:" as a prompt. | ||
+ | |||
+ | 3) Use the keypad to enter the password. Each key press will be displayed on the LCD in a line, one after the other, without replacing each other. | ||
+ | |||
+ | 4) Press the '#' key on the keypad to submit the entered password. | ||
+ | |||
+ | 5) If the entered password is correct, the LCD will display "Access granted" and prompt the user to press the * key to restart the system. Upon pressing, the LCD will display "Restarting system" for 2 seconds and then the system will restart. | ||
+ | |||
+ | 6) If the entered password is incorrect, the LCD will display "Wrong password" for 3 seconds, sound an alarm through the buzzer, and prompt the user to enter the password again (please note that the prompt to enter the password again is for testing purposes in real-world use the code can easily be adjusted to allow only for a certain number of mistakes). | ||
+ | |||
+ | The system also makes use of a PIR motion sensor in the following way. After entering a wrong password there is a 10 seconds period in which the message "Scanning for intruders" is displayed on the LCD, if in this period motion is detected the LCD switches to display "Motion Detected" and an alarm is sounded through the buzzer. | ||
===== Rezultate Obţinute ===== | ===== Rezultate Obţinute ===== | ||
+ | Images: | ||
+ | |||
+ | At Startup: | ||
+ | |||
+ | {{:pm:prj2023:avaduva:ma_1.jpeg?600|}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Displaying entered password: | ||
+ | |||
+ | {{:pm:prj2023:avaduva:ma_2.jpeg?600|}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | After Entering the correct password: | ||
+ | |||
+ | {{:pm:prj2023:avaduva:ma_3.jpeg?600|}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | After pressing * to restart: | ||
+ | |||
+ | {{:pm:prj2023:avaduva:ma_4.jpeg?600|}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | After entering a wrong password: | ||
+ | |||
+ | {{:pm:prj2023:avaduva:ma_5.jpeg?600|}} | ||
+ | |||
+ | |||
+ | |||
+ | Upon initiating the motion detection code: | ||
+ | |||
+ | {{:pm:prj2023:avaduva:scanning_intruders.jpeg?600|}} | ||
+ | |||
+ | |||
+ | |||
+ | If motion is detected: | ||
+ | |||
+ | {{:pm:prj2023:avaduva:motion_detected.jpeg?600|}} | ||
+ | |||
===== Concluzii ===== | ===== Concluzii ===== | ||
+ | This password-protected system offers a trustworthy and adaptable security solution. The system performs password verification, alarm triggering, and system restarting by integrating input devices, output devices, and programming logic. It provides a versatile framework for adding new sensors or functions, accommodating upgrades like biometric verification. The system offers a scalable solution for various security requirements because of its affordability, and user-friendly interface. | ||
- | ===== Download ===== | + | The experience of working on this project has proven to be really fulfilling and has given me the chance to actively pursue knowledge gain. |
- | ===== Jurnal ===== | + | ===== Download ===== |
+ | The code for the Arduino along with the datasheets and the I2C scanner code used can be found in the following .zip: | ||
+ | {{:pm:prj2023:avaduva:project_ma.rar|}} | ||
===== Bibliografie/Resurse ===== | ===== Bibliografie/Resurse ===== | ||
+ | [[https://playground.arduino.cc/Main/I2cScanner/]]\\ | ||
+ | [[https://github.com/johnrickman/LiquidCrystal_I2C/tree/master/examples]]\\ | ||
+ | [[https://www.arduinolibraries.info/libraries/liquid-crystal-i2-c]]\\ | ||
+ | [[https://arduinogetstarted.com/tutorials/arduino-lcd-i2c]]\\ | ||
+ | [[https://playground.arduino.cc/Code/Keypad/]]\\ | ||
+ | [[https://github.com/Chris--A/Keypad]]\\ | ||
{{:pm:prj2023:avaduva:initial_documentation.pdf|}} | {{:pm:prj2023:avaduva:initial_documentation.pdf|}} |