Restricted and Secure Door Entry Solutions Using Raspberry Pi Pico W
Category: IoT, Embedded Systems, Secure Access Control
Tools & Technologies: Raspberry Pi Pico W, NFC PN532 Module (I2C mode), LCD1602 Display (I2C mode),
Firebase Real-Time Database, CircuitPython, Adafruit CircuitPython Libraries, NFC Tool Mobile
Application, Thonny (IDE), Fritzing (for circuit diagram), Python (programming language)
Status: Completed
In a world where security is paramount, I developed an NFC-Based Access Control System that provides secure and flexible door entry solutions. This system leverages Near Field Communication (NFC) technology, combined with cloud-based data storage via Firebase, to offer a reliable and scalable solution for restricted access control. It is designed to handle varying scenarios with NFC tags/cards, ensuring efficient user authentication and enhanced security.
System Overview
Aim:
To design and implement a scalable NFC-based door access control
system that ensures secure and flexible user authentication.
Objectives:
The objectives of the project are outlined below:
These libraries were essential for seamless integration and functionality across all system
components.
You can explore the library files to view and download them directly.
Alternatively, you can check out the complete collection of CircuitPython libraries in the
Adafruit CircuitPython Bundle.
Below is the pinout diagram of the Raspberry Pi Pico W. Please refer to this when recreating or developing, along with the GPIO pins used in the project.
Pinout Diagram:GPIO Pin | Component | Description |
---|---|---|
GPIO 2 | Green LED (Registered Indicator) | Indicates access granted. |
GPIO 3 | Red LED (Unregistered Indicator) | Indicates access denied. |
GPIO 6 | Blue LED (WIFI Indicator) | Indicates Wi-Fi connection. |
GPIO 15 | Servo Motor PWM | Controls door opening and closing. |
GPIO 22 | Buzzer | Beeps once for access denied and only once to alert us when the Raspberry Pi is connected to Wi-Fi. |
GPIO 4 | PN532 NFC Module SDA, & LCD1602 SDA |
I2C communication for LCD & NFC. |
GPIO 5 | PN532 NFC Module SCL, & LCD1602 SCL |
I2C communication for LCD & NFC. |
This layout highlights the organized and optimized usage of the GPIO pins for seamless functionality.
Components Used: Raspberry Pi Pico W, NFC PN532 Module, LCD1602, Li-Ion 18650 batteries, boost converter, charging module, LED indicators, and buzzer.
Hardware Assembly
LEDs, PN532, & Servo
Veroboard, Power, Indicator, Buzzer, DIL Female Connector, &
RaspberryPiPicoW
Power Supply Section
System Internal View
Complete System's Internal View
Casing Hand Sketch Design
LCD1602 Dimension
Acrylic Dimensioning for Cutting
Acrylic Coupled
Acrylic Coupled, & Tags
System Internal View Assembled with Acrylic Casing
System Overview
Software Workflow
Thonny IDE
Firebase Real-Time Database
Tested with six (6) NFC cards and one (1) NFC key to validate different authentication outcomes. Simulated large-scale integration scenarios with scalable database entries and servo motors.
Testing Outcomes
user found, Registered LED ON, door (servo) is about to open
Door (servo) opened. [NB: the door closes after 4 secs]
user found, Registered LED ON, door (servo) is about to open
Door (servo) opened. [NB: the door closes after 4 secs]
Access Denied, Unregistered LED ON, door (servo) remains Closed
No Data in Card
Access Denied, Unregistered LED ON, door (servo) remains Closed
Record Mismatch in Our Database
Access Denied, Unregistered LED ON, door (servo) remains Closed
Record Mismatch in Our Database
Access Denied, Unregistered LED ON, door (servo) remains Closed
NFC Card Error! Card is not Writable
Access Denied, Unregistered LED ON, door (servo) remains Closed
NFC Card Error! Card is not Writable
Challenges & Solution
Challenge: Incorrect Password Entry
Solution: Correct Password Entry
Final Results
NFC Tool MobileApp writes hash keys into tags/cards
Thonny IDE's Shell Result for Opened Door (it wait for 4 secs before it get
closed)
Thonny IDE's Shell Result for Closed Door
Firebase Real-Time Database Integration
(Note: Visual representations of the door in both open and
closed states, along with the
corresponding data displayed on the screen, are available in the Testing and Responses
section)
I sincerely appreciate you taking the time to explore my portfolio and learn about my work and expertise. It is my hope that these projects and insights have demonstrated my passion for innovation, my technical skills, and my dedication to delivering impactful solutions.
If you have any questions, require further information, or wish to discuss potential collaborations, I would be delighted to connect. Please feel free to reach out via the Contact section. Your feedback and inquiries are highly valued and will be addressed promptly.
Thank you once again for your interest in my work. I look forward to the opportunity to collaborate and contribute meaningfully to your projects or organization. Together, let us innovate and achieve excellence.
Best regards,
Damilare Lekan, Adekeye.