Skip to the content
2 layers85.6 × 54 mmNFC Card3, the printed circuit board in 3D

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

Desk-Lock

A cheap desk lock that unlocks with an NFC card.

Desk Lock Wiring Diagram

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.

Detailed Description Here

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)

NFC Card - 25.33 for 5

SchematicPCB3D View
SchematicPCB3D

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: image

Notes

The servo holder was not made by me, but suits the purpose perfectly.

Parts

5
QtyValueFootprintReferences
1NFC Card3:R0402R1
1NFC Card3:LED-SMD_L2.0-W1.25-RD_REDLED1
1NFC Card3:25X48MM_NFC_ANTENNAU2
1NFC Card3:XQFN-8_L1.6-W1.6-P0.50-BL_NT3H2111W0FHKHU1
1NFC Card3:C0603C1

Similar boards

  • 2 layers98 × 27 mmXy limit, the printed circuit board in 3D

    Xy limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    5 parts3.7k
  • 2 layers21 × 33 mm24g2usb pico2w, the printed circuit board in 3D

    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 mmA10 OLinuXino Lime Rev B SHIELD TEMPLATE, the printed circuit board in 3D

    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 mmMain control board servo tester, the printed circuit board in 3D

    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 mmKiCadTest, the printed circuit board in 3D

    KiCadTest

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    5 parts915
  • 2 layers50 × 23 mmMiniCircuits LTCC, the printed circuit board in 3D

    MiniCircuits LTCC

    VanceVagell/kv4p-ht

    Open source handheld ham radio project KV4P-HT

    5 parts828GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 light sensor, the printed circuit board in 3D

    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.