UHF RFID Based Door Lock
In this device we have designed a door lock using the ultra-high frequency antenna and RFID technology. This device can detect the RFID tags in the range of 8 meters. The device only supports to UHF RFID tags and can detect the tag even if it is in the wallet inside the back pocket of the user. The device is powered by 18650 batteries and can provide a backup of around 24 hours without electricity. This report details the design, development, and testing phases of the project.
The UHF antenna is installed outside the door to detect the RFID tags. As the tag is detected, the lock is opened for a couple of seconds. Once the door is locked again, it will not be unlocked by the RFID tag, considering the person is leaving the building or apartment.
01. Devoforge Expertise
Devoforge specializes in end-to-end product development, including:
- Embedded system design
- RFID-based access control systems
- Custom PCB design and optimization
- Prototype development and testing
- Battery-powered system design
- 3D enclosure design and fabrication
- International PCB manufacturing coordination
- Full system assembly and validation
In this project, we developed a complete UHF RFID-based door locking system, covering everything from proof-of-concept to final production-ready hardware.
02. Client Requirements
The client required:
- A UHF RFID-based door lock system
- Detection range up to 8 meters
- Capability to detect UHF RFID tags even inside a wallet or back pocket
- Automatic unlocking when tag is detected
- Lock should open for a few seconds and automatically re-lock
- The same tag should not immediately re-trigger unlocking after exit
- Battery backup of approximately 24 hours
- Custom enclosure design
- Complete PCB design and manufacturing
- Full system testing and validation
03. Proposed Solution
We proposed a multi-stage development process:
- Proof-of-concept using Arduino platform
- Prototype validation with UHF antenna module
- Custom PCB design and optimization
- Battery backup integration using 18650 Li-ion cells
- Professional PCB manufacturing from JLC PCB (China)
- Custom 3D-printed enclosure
- Final assembly and real-world testing
04. Implemented Solution
We successfully implemented:
- A UHF RFID-based door lock system
- 8-meter detection range
- Reliable detection even when tag is inside a wallet
- Intelligent lock timing logic
- 6 × 18650 Lithium-Ion battery backup system
- Custom-designed PCB with optimized layout
- 3D-printed durable enclosure
- Fully assembled and tested working unit
The system unlocks the door for a few seconds upon tag detection and prevents immediate re-triggering when the user exits.
05. Our Process
At Devoforge, we follow a structured product development lifecycle:

The first circuit was designed using:
- Arduino
- MFRC522 RFID Reader
- L298N Motor Driver
- Solenoid Lock
This prototype demonstrated basic RFID-based lock control.

A second prototype was built on a dotted PCB board using:
- Arduino Nano
- L298N driver
- UHF antenna module
Range testing was performed by mounting the antenna above a door.

After successful prototype validation:
- A custom PCB was designed
- All possible optimizations were reviewed
- A handmade PCB model was fabricated and tested in-house

To ensure operation during electricity failure:
- 6 × 18650 Lithium-Ion batteries were selected
- Designed to provide approximately 24 hours of backup

After verification:
- Final PCB designed considering JLC PCB inventory
- Manufactured in China
- Delivery time: 25 days

The PCB and UHF module were assembled inside the enclosure and connected to the lock.
Comprehensive functional testing was conducted including:
- Lock timing behavior
- Tag detection reliability
- Battery backup duration test
All systems performed as expected.
06. 3D Enclosure Design
The enclosure was custom-designed and 3D printed in Pakistan to:
- Securely house PCB and UHF module
- Provide structural durability
- Maintain aesthetic appeal
- Support wall/door mounting
07. Circuit Design
The system evolved from:
- Arduino + MFRC522 (concept stage)
- Arduino Nano + UHF module (prototype stage)
- Fully custom PCB (production stage)
The final PCB integrates:
- UHF module communication
- Lock control circuit
- Battery management
- Power regulation
- Motor driving circuitry
08. Challenges
- Transitioning from HF RFID to long-range UHF system
- Optimizing antenna positioning for 8m detection
- Ensuring detection inside wallet/back pocket
- Preventing immediate re-trigger unlocking
- Designing stable 24-hour battery backup
- Optimizing PCB according to JLC PCB inventory
- 25-day manufacturing lead time
09. Revisions
- Initial MFRC522 replaced with UHF system
- Improved PCB layout after handmade model testing
- Optimized battery configuration
- Firmware logic refined for exit condition handling
- Mechanical alignment adjustments during enclosure integration
10. Final Version (Result)
The final system:
- Detects UHF RFID tags up to 8 meters
- Detects tags inside wallets or pockets
- Unlocks door for predefined time
- Prevents immediate re-trigger unlocking
- Provides ~24-hour battery backup
- Uses custom professional PCB
- Fully enclosed in durable 3D-printed body
The device is now ready for deployment and provides a secure, efficient, and modern access control solution.
11. Future Upgrades
Potential improvements include:
- Cloud-based access management
- Access log recording
- Mobile app integration
- WiFi / Ethernet connectivity
- Remote access management
- Encrypted tag authentication
- Weatherproof enclosure (IP-rated)
- Low-battery monitoring system
Interested in Similar Project?
If you are looking to develop:
- RFID-based access systems
- Smart door locks
- Custom embedded hardware
- Industrial IoT devices
- Battery-powered electronics
- Complete product development solutions
We provide full-cycle development from concept to production-ready hardware.
