Skip to main content

Security Door

This project creates a nfc-protected automatic door system using a Raspberry Pi, microcontroller, and sensor.

info

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Hardware_pic1 Hardware_pic2 Hardware_pic3 Hardware_pic4 Hardware_pic5 Hardware_pic6 Hardware_pic7 Hardware_pic8

Schematics

KiCad

Bill of Materials

DeviceUsagePrice
Rapspberry Pi Pico WThe microcontroller1 x 56.23 RON
4xAA Battery Holderbattery holder2 x 4.39 RON
830 Points Breadboardbreadboard1 x 10.14 RON
Set of Jumper Wiresjumper wires1 x 11.86 RON
Set of Resistancesreistance1 x 12.29 RON
5mm LEDslights green when door open and red when closed10 x 0.45 RON
Micro USB Cablemicro usb cableRON
Set of Male-Male Wiresmale-male wires1 x 2.85 RON
ultrasonic Sensorto see when te person has entered to close the door1 x 14.99 RON
SG90 Servomotoropen amd closes the door1 x 13.99 RON
NFCto introduce the password to unlock the door1 x 59.99 RON
Set of Female-Male Wiresfemale-male wires2 x 5.79 RON

Software

LibraryDescriptionUsage
embassy-timeTime management libraryDelays & debouncing between button pressings
embassy-rpAccessing peripheralsInteracting with peripherals (pins)
embassy-executorAn async/await executor designed for embedded usageRunning multiple tasks simultaneously
logLogging interfaceLogging info or warning messages
embassy-usb-loggerUSB implementation of the log crateLogging info or warning messages over USB
  1. Anti-Theft Door Code Lock w RP Pico
  2. Servo Motor Door Project
  3. Simple Automatic Car Parking Toll Gate System