

NFC Card3
A cheap desk lock that unlocks with an NFC card.
- Size
- 85.6 × 54 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 5
- Nets
- 5
- Pads
- 16
- Tracks, vias
- 23, 1
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 3 Jan 2026
- Updated
- 24 Sep 2026
Overview
NFC Card3 is an open-source printed circuit board by lekangji, from the lekangji/Desk-Lock repository on GitHub. It is a 2-layer board of 85.6 × 54 mm with 5 parts on 5 nets, routed with 23 tracks and 1 via.
Its parts include 2 ICs, 1 capacitor, 1 resistor and 1 diode. It belongs with the radio and wireless boards of this library.
README
README.mdDesk-Lock
A cheap desk lock that unlocks with an NFC card.
Overview
This project is a DIY desk lock which keeps items in your desk secure by using a NFC reader. An ESP32 reads an NFC card via a PN532 module and controls a servo motor that locks or unlocks the desk. A photoresistor is used to detect when the drawer is closed so it can relock automatically.
Motivation
I wanted a secure way to lock my desk because I keep important items inside and my little brother cannot be trusted with it. Buying a commercial lock felt boring and expensive, so building one with NFC was more interesting and let me design my own NFC card and reader.
Parts List (Bill of Materials)
- 1x of Photoresistor, TYPE 5528, PRICE $2.39
- 1x of 10k Resistor, TYPE 10K, PRICE $1.25
- 1x of MG996R Servo, TYPE N/A, PRICE $0.99
- 1x of AC to DC Power Supply, TYPE US Plug/DC 5V/4A, PRICE $4.60
- 1x of ESP32 Development Board, TYPE 1PCS-CP2102 TYPE-C, PRICE $6.56
- 1x of PN532 NFC Module, TYPE PN532, PRICE $3.67
NFC Card - 25.33 for 5
| Schematic | PCB | 3D View |
|---|---|---|
![]() | ![]() | ![]() |
Detailed Description
This project is a DIY NFC-based desk lock using an ESP32. A PN532 NFC reader communicates with the ESP32 over I2C to read NFC cards. When an authorized card is detected, the ESP32 drives a servo motor to unlock the drawer. Unauthorized cards are ignored.
The servo is powered by an external supply that also powers the ESP32 and is mounted so one position locks the drawer and another unlocks it. The mechanical design is flexible and can support different desk types.
A photoresistor inside the drawer is wired as a voltage divider with a 10 kΩ resistor and connected to an ESP32 ADC pin. It detects whether the drawer is open or closed based on light level. After unlocking, the system waits until the drawer is closed (becomes dark), then automatically relocks after a configurable delay (default 10 seconds).
CAD
There is a case for every single part in this project:
- ESP32 Case: for the esp32 (duh)
- PHotoresistor Case: for the photoresistor + resistor setup to detect desk drawer close
- MG996R Case: Servo case for a wider base which improves adhesion + screw holes if you need it
- PN532 Case (Case + Lid): Case + lid for the nfc reader module
- And also, a full assembly with all electronics included!
Example Placement Diagram
Here is an example placement diagram for the servo:
Notes
The servo holder was not made by me, but suits the purpose perfectly.
Parts
5| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | NFC Card3:R0402 | R1 | |
| 1 | NFC Card3:LED-SMD_L2.0-W1.25-RD_RED | LED1 | |
| 1 | NFC Card3:25X48MM_NFC_ANTENNA | U2 | |
| 1 | NFC Card3:XQFN-8_L1.6-W1.6-P0.50-BL_NT3H2111W0FHKH | U1 | |
| 1 | NFC Card3:C0603 | C1 |
Similar boards
- 2 layers98 × 27 mm

- 2 layers21 × 33 mm

24g2usb pico2w
joypad-ai/joypad-os
Universal controller firmware for building adapters, dongles, and custom controllers.
5 parts1.7kApache-2.0 - 2 layers53.2 × 59.6 mm

A10 OLinuXino Lime Rev B SHIELD TEMPLATE
OLIMEX/OLINUXINO
OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C
5 parts1.5k - 2 layers30 × 11 mm

Main control board servo tester
jamro/tiny-engineer
A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.
5 parts1.1k - 2 layers78.8 × 35.3 mm

KiCadTest
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
5 parts915 - 2 layers50 × 23 mm

- 2 layers43.2 × 28.5 mm

- 2 layers20.3 × 15.2 mm

L0 light sensor
Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.
5 parts546MIT
Questions
How big is the NFC Card3 PCB?
It measures 85.6 × 54 mm and has 2 copper layers, 1.6 mm thick.
What parts does the NFC Card3 use?
5 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the NFC Card3 KiCad files?
From the lekangji/Desk-Lock repository on GitHub, at the commit this page was made from: the board is NFC Card/kicad/NFC Card3.kicad_pcb and its schematic NFC Card/kicad/NFC Card3.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the NFC Card3 design in my own project?
Its repository states no licence, so its author keeps all rights: ask lekangji before reusing the design.


