Skip to the content
2 layers106 × 57.5 mmLOCK SYSTEM, the printed circuit board in 3D

A collection of PCB design files for a PCB that interfaces a Raspberry Pi with a door lock system and NFC reader

Size
106 × 57.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
50
Pads
137
Tracks, vias
256, 19
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
13 Apr 2026
Updated
13 Apr 2026

Overview

LOCK SYSTEM is an open-source printed circuit board by Lewis-mbui, from the Lewis-mbui/door-lock-system repository on GitHub. It is a 2-layer board of 106 × 57.5 mm with 32 parts on 50 nets, routed with 256 tracks and 19 vias.

It is built around the LM2596S-ADJ, BC817 and SRD-05VDC-SL-C. Its parts include 8 resistors, 7 connectors, 4 capacitors, 4 diodes and 4 transistors. It belongs with the radio and wireless and interfaces and adapters boards of this library.

Main components

3

README

README.md

Raspberry Pi interface PCB

Overview

This project involved designing a custom PCB to interface a Raspberry Pi with a door lock system and an NFC reader.

The goal was to replace a prototype built using separate modules and stripboard wiring with a more reliable and compact PCB solution.


The Problem

The original system:

  • Used multiple pre-built modules
  • Required a lot of manual wiring
  • Was not ideal for long-term reliability or manufacturing

Solution

We designed a single PCB that integrates:

  • Power supply (DC-DC conversion from 10V–27V input)
  • Relay control for the door lock
  • GPIO interfacing with the Raspberry Pi
  • Connectors for NFC reader, LEDs, and buzzer

This reduced wiring complexity and improved overall system organization.


Key Features

  • Custom PCB designed using KiCad
  • Integrated DC-DC power supply
  • Relay-based switching for external devices
  • GPIO interfacing with Raspberry Pi
  • Designed with manufacturability in mind (JLCPCB)

Design Files

  • Schematic
  • PCB layout
  • Gerber files
  • Bill of Materials (BOM)

Images

Schematic

PCB Layout

Final Board


Tools Used

  • KiCad

What I learned

  • Translating a real-world system into a PCB design
  • Power supply integration for embedded systems
  • Designing for manufacturability
  • Debugging and improving circuit reliability

Parts

32
QtyValueFootprintReferences
61KResistor_SMD:R_0603_1608MetricR3, R4, R5, R6, R7, R8
32N22222N2222:TO127P584H533-3Q1, Q3, Q4
2100nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C3
1100uCapacitor_SMD:CP_Elec_8x10C1
110kPotentiometer_THT:Potentiometer_Bourns_3296Y_VerticalR2
112uInductor_SMD:L_Bourns_SRR1260L1
11N4001Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD4
11N5822Diode_SMD:D_1206_3216MetricD1
1220uCapacitor_SMD:CP_Elec_8x10C4
1330Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
1BC817Package_TO_SOT_SMD:SOT-23Q2
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ7
1GPIOConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ3
1INPUTTerminalBlock_Altech:Altech_AK300_1x02_P5.00mm_45-DegreeJ1
1LM2596S-ADJPackage_TO_SOT_SMD:TO-263-5_TabPin3U1
1POWER_LEDLED_SMD:LED_0805_2012MetricD2
1RELAY_LEDLED_SMD:LED_0805_2012MetricD3
1RELAY_OUTPUTTerminalBlock_Altech:Altech_AK300_1x03_P5.00mm_45-DegreeJ2
1SRD-05VDC-SL-CSRD-05VDC-SL-C:SRD-05VDC-SL-CK2
1Screw_Terminal_01x08TerminalBlock_Altech:Altech_AK300_1x08_P5.00mm_45-DegreeJ4
1TP+Connector_PinHeader_1.00mm:PinHeader_1x01_P1.00mm_VerticalJ5
1TP-Connector_PinHeader_1.00mm:PinHeader_1x01_P1.00mm_VerticalJ6

The 30 most common of 32 parts.

Similar boards

  • 2 layers100 × 100 mmFSAE BaseBoard, the printed circuit board in 3D

    FSAE BaseBoard

    Pereyzaquer/Formuna-SAE-UTN-FRBA

    UTN-FRBA Formula SAE

    71 parts2
  • 2 layers121 × 54 mmSmart plug, the printed circuit board in 3D

    Smart plug

    tauhidansari07/ESP32-Smart-Relay

    21 parts
  • 2 layers90 × 53.4 mmOpenOx, the printed circuit board in 3D

    OpenOx

    hacklabkyiv/openox-pcb

    PCB design for OpenOx - open source oxygen concentrator

    43 parts7GPL-3.0
  • 2 layers78.7 × 58.4 mmAGV SENSOR PCB 2, the printed circuit board in 3D

    AGV SENSOR PCB 2

    Ashutoshkarve007/STM32_Learning

    Learining STM32

    53 parts3
  • 2 layers40 × 60 mmScaner v1, the printed circuit board in 3D

    Scaner v1

    Aleksei327/ESP32-C5-OBD2-Scanner

    DIY dual-CAN OBD2 adapter on Seeed XIAO ESP32-C5 with a Flutter Android app. Working prototype, tested on a Citroën C3 II: full read-only ECU scan, PSA fault codes, live data. Single-sided home-etched KiCad board.

    34 parts2
  • 2 layers85.1 × 99.1 mmProject f, the printed circuit board in 3D

    Project f

    Nodraak/SpeedOfLight

    Reenactment of experiment(s) to measure the speed of light

    15 parts2
  • 2 layers105.6 × 72 mmSolar mppt charge controller, the printed circuit board in 3D

    Solar mppt charge controller

    Pendu1699/solar-mppt-charge-controller

    ESP32-based solar MPPT charge controller, custom PCB, perturb & observe tracking algorithm, logged efficiency test data.

    25 parts2MIT

Questions

How big is the LOCK SYSTEM PCB?

It measures 106 × 57.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the LOCK SYSTEM use?

32 parts, built around the LM2596S-ADJ, BC817 and SRD-05VDC-SL-C. 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 LOCK SYSTEM KiCad files?

From the Lewis-mbui/door-lock-system repository on GitHub, at the commit this page was made from: the board is LOCK_SYSTEM/LOCK_SYSTEM.kicad_pcb and its schematic LOCK_SYSTEM/LOCK_SYSTEM.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the LOCK SYSTEM design in my own project?

Its repository states no licence, so its author keeps all rights: ask Lewis-mbui before reusing the design.