Skip to the content
2 layers72 × 57.2 mmZamek RFID Hardware, the printed circuit board in 3D

A door lock controller on my own PCB. To open the door you need the right RFID card and the right 4-digit PIN. An Arduino Nano checks both and switches a 12 V door strike through a relay.

Size
72 × 57.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
37
Pads
97
Tracks, vias
96, 0
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
14 Aug 2026
Updated
18 Oct 2026

Overview

Zamek RFID Hardware is an open-source printed circuit board by lukaszjesko, from the lukaszjesko/Smart-Access-Control repository on GitHub, published under the MIT licence. It is a 2-layer board of 72 × 57.2 mm with 30 parts on 37 nets, routed with 96 tracks and 0 vias.

It is built around the BC547. Its parts include 9 resistors, 4 capacitors, 4 connectors, 3 diodes and 1 transistor. It belongs with the radio and wireless boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

Smart Access Control

A door lock controller on my own PCB. To open the door you need the right RFID card and the right 4-digit PIN. An Arduino Nano checks both and switches a 12 V door strike through a relay.

KiCad 3D renderAssembled board
KiCad 3D renderAssembled board

This is the first PCB I designed and ordered. I drew v1.0 in KiCad, found a lot of mistakes during a review, fixed them in v1.1 and ordered v1.1 from JLCPCB.

What's on the board

Arduino Nano, MFRC522 RFID reader (as a module on a header), 4x4 keypad, 16x2 LCD over I2C, relay module, buzzer and two LEDs.

Board with all modules connected

The firmware is a simple state machine: wait for a card, wait for the PIN, open or deny, then back to waiting.

Schematic

Routing (ground pour hidden)All copper layers
PCB routingPCB with ground pour

Red = top copper, blue = bottom copper. On the left the ground pour is hidden so the tracks are visible.

Schematic as PDF: docs/schematic_v1.1.pdf. KiCad project: Zamek_RFID_Hardware/.

Mistakes in v1.0 that I fixed in v1.1

  • Both LEDs were wired backwards, so they could never light up.
  • There were no decoupling capacitors. I had a supply dip that I worked around in firmware, but the real problem was in hardware.
  • Every track was 0.25 mm, including power. Now power tracks are 0.6 mm and there is a ground pour on both layers.
  • The Nano sent 5 V signals into the 3.3 V RFID reader. Now there are 1k/2k resistor dividers on MOSI, SCK and SS.
  • The buzzer was driven straight from a pin. Now it goes through a BC547 transistor with a flyback diode.
  • No mounting holes and no test points. Now there are four M3 holes and test points on 5 V, 3.3 V and GND.

A bug I liked

The relay module is active LOW, so at power-up the door opened for a split second before the program set the pin. Writing HIGH to the pin before pinMode() fixed it.

Not done yet

  • Assemble and test v1.1
  • Firmware: replace String with a char buffer, replace delay() with millis(), lock the keypad after 5 wrong PINs
  • Security: only the card UID is checked, and a UID can be copied to a cheap card. The PIN is stored in the firmware as plain text.

Build

PlatformIO, target nanoatmega328new:

bash
cp include/config.example.h include/config.h   # set your card UID and PIN
pio run --target upload

License

Firmware: MIT. Hardware: CERN-OHL-S-2.0.

Parts

30
QtyValueFootprintReferences
41kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3, R4, R7, R9
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
32kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5, R6, R8
3TestPointTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP1, TP2, TP3
2100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2, C4
2300Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2
2Conn_01x08Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ1, J2
1100uF 16VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1
110uF 16VCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC3
11N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD3
1Arduino_Nano_v3.xModule:Arduino_NanoA1
1BC547Package_TO_SOT_THT:TO-92_InlineQ1
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ4
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1LED green 5mmLED_THT:LED_D5.0mmD2
1LED red 5mmLED_THT:LED_D5.0mmD1

Similar boards

  • 2 layers83.3 × 65.3 mmSimonShield, the printed circuit board in 3D

    SimonShield

    github-linguist/linguist

    Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

    46 parts14kMIT
  • 2 layers56 × 65 mmSeaTalk1, the printed circuit board in 3D

    SeaTalk1

    dotnet/iot

    This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.

    24 parts2.4kMIT
  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    IPoS

    peterheinrich/InternetOverSpaghetti

    Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

    42 parts342
  • 2 layers99.1 × 99.7 mmRC6502 General Video Adapter, the printed circuit board in 3D

    RC6502 General Video Adapter

    tebl/RC6502-Apple-1-Replica

    An expandable SBC-version of the Apple 1 computer, easy to get started with and lot of cool stuff that can be added to it!

    80 parts193GPL-3.0
  • 2 layers55.9 × 38.6 mmMega Amp, the printed circuit board in 3D

    Mega Amp

    theacodes/genesynth

    A Sega Genesis inspired synthesizer

    40 parts178Apache-2.0
  • 2 layers40 × 100 mmBack pcb, the printed circuit board in 3D

    Back pcb

    ZeroPhone/ZeroPhone-PCBs

    PCB files for ZeroPhone - for gerbers and schematics, go to "Releases" tab!

    118 parts148GPL-3.0
  • 2 layers100 × 100 mmCANBuster, the printed circuit board in 3D

    CANBuster

    GBert/misc

    miscellaneous stuff / unsorted

    182 parts99

Questions

How big is the Zamek RFID Hardware PCB?

It measures 72 × 57.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Zamek RFID Hardware use?

30 parts, built around the BC547. 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 Zamek RFID Hardware KiCad files?

From the lukaszjesko/Smart-Access-Control repository on GitHub, at the commit this page was made from: the board is Zamek_RFID_Hardware/Zamek_RFID_Hardware/Zamek_RFID_Hardware.kicad_pcb and its schematic Zamek_RFID_Hardware/Zamek_RFID_Hardware/Zamek_RFID_Hardware.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Zamek RFID Hardware design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).