Security Door
This project creates a nfc-protected automatic door system using a Raspberry Pi, microcontroller, and sensor.
Author: Alkhalidy Essam
GitHub Project Link: https://github.com/UPB-FILS-MA/project-esxm
Description
This project is designed to create an automated door system that operates based on a nfc input. The door will open using a servo motor. An integrated sensor ensures the door remains open only as long as needed and closes securely after entry is detected. The system is built around a Raspberry Pi and a separate microcontroller, combining robust processing capabilities with efficient real-time control.
Motivation
-
Practical Application of Skills: This project provides a comprehensive platform to apply and enhance a range of technical skills, including programming, electronics, mechanical system design, and systems integration. It's an excellent opportunity to work hands-on with both software and hardware components, thus deepening your understanding of how multiple systems interact.
-
Problem-Solving Challenge: Designing a system that requires synchronization between software and hardware presents complex problem-solving opportunities. It challenges you to think critically about issues like secure access, reliable mechanical movement, real-time data processing, and user interface design.
-
Innovation and Customization: An automated door system allows for a great deal of innovation and customization. You can tailor security features, such as password complexity, encryption, or even biometric authentication. The project can also be expanded to include IoT connectivity, enabling remote monitoring and control.
-
Interdisciplinary Learning: This project spans multiple disciplines—computer science, electrical engineering, mechanical engineering, and information security. Such an interdisciplinary approach can significantly broaden your learning and might open up new areas of interest.
-
Real-World Utility and Impact: Automated door systems have significant real-world applications in residential, commercial, and industrial settings. By working on this project, you can contribute to solutions that improve security and accessibility, potentially leading to entrepreneurial opportunities or impactful research projects.
Architecture
Add here the schematics with the architecture of your project. Make sure to include:
Log
Week 6 - 12 May
managed to make the ultra somic work,the servo motor had some problems so i ordered a new one, changed the inout for openning the door from a password keypad to a nfc
Week 7 - 19 May
the nfc and the new servo motor arrived and managed to make them work properly with the senzor, added to leds one lights green when the door is open and the other lights red when door closed
Week 20 - 26 May
I fixed issues with the NFC not being able to detect the card, and I cut out a room out of cardboard, did some cable management, made a door out of a cardboard and fixed some bugs.
Hardware
so there are 3 main parts beside the microcontroller 1.servo motor ,2.nfc ,3.ultrasonic senzor. the servo motor opens the door only from the input taken from the nfc and closes the door with the input taken from the senzor. there are also 2 leds one lights green when the door is open and when not the other lights red.
Schematics
Bill of Materials
Device | Usage | Price |
---|---|---|
Rapspberry Pi Pico W | The microcontroller | 1 x 56.23 RON |
4xAA Battery Holder | battery holder | 2 x 4.39 RON |
830 Points Breadboard | breadboard | 1 x 10.14 RON |
Set of Jumper Wires | jumper wires | 1 x 11.86 RON |
Set of Resistances | reistance | 1 x 12.29 RON |
5mm LEDs | lights green when door open and red when closed | 10 x 0.45 RON |
Micro USB Cable | micro usb cable | RON |
Set of Male-Male Wires | male-male wires | 1 x 2.85 RON |
ultrasonic Sensor | to see when te person has entered to close the door | 1 x 14.99 RON |
SG90 Servomotor | open amd closes the door | 1 x 13.99 RON |
NFC | to introduce the password to unlock the door | 1 x 59.99 RON |
Set of Female-Male Wires | female-male wires | 2 x 5.79 RON |
Software
Library | Description | Usage |
---|---|---|
embassy-time | Time management library | Delays & debouncing between button pressings |
embassy-rp | Accessing peripherals | Interacting with peripherals (pins) |
embassy-executor | An async/await executor designed for embedded usage | Running multiple tasks simultaneously |
log | Logging interface | Logging info or warning messages |
embassy-usb-logger | USB implementation of the log crate | Logging info or warning messages over USB |