Skip to the content
2 layers90 × 140 mmPortcullis, the printed circuit board in 3D

Automatic boltlock locker/unlocker for doors protected by a keypad passcode.

Size
90 × 140 mm
Copper layers
2
Thickness
1.6 mm
Parts
5
Nets
32
Pads
62
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 9.0 (file 20241229)
Created
3 Jul 2025
Updated
28 Jul 2026

Overview

Portcullis is an open-source printed circuit board by jaydenaleung, from the jaydenaleung/portcullis repository on GitHub. It is a 2-layer board of 90 × 140 mm with 5 parts on 32 nets.

It is built around the ARDUINO UNO R3. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

Portcullis - the boltlock unlocker

A portcullis originally guarded a castle's entrance, known for its waffle-like iron gates coming down to cover the entrance of the castle's archway following the moat bridge.

Portcullis is an automated system that mechanically unlocks home security door reinforcement locks (HSDRLs), with access protected by a passcode using a keypad. HSDRLs act as boltlocks when mounted onto the doorframe next to the door being locked. See below for more information.

VIDEO DEMO: https://youtu.be/WndzgAl9owI

image image

The large block in the picture represents the wall that HSDRLs are mounted onto.

image

A medival portcullis. Credit: https://www.dreamstime.com/stock-images-castle-portcullis-image7831724.

Figures

Total Minimum Cost: $43 USD

Total Hours Spent: 92 hrs

Total Days Spent: 16 days

See JOURNAL.md and the BOM below for an in-depth explanation of these numbers.

How It Works

How do HSDRLs work?

HSDRLs lock a door by acting as a fixed stopper. In combination with this, their tough metal material allows it to be one of the strongest, safest, and most secure locks on the market. After turning them to their locked position, they will 'click' into place, effectively fixing itself against the door. Mechanically, this means that when the door pushes against it, its rigid position will hold the door back. See the picture below for how unlocking and locking an HSDRL works.

image

Portcullis

This specific mechanism works to solve this issue in three steps: one, using a linear actuator to push the HSDRL forward enough that it can be rotated. Two, rotate it to unlock or lock the door. Three, retract the linear actuator to lock the HSDRL in place. This is all controlled by an Arduino Uno R3 microcontroller, which connects to a continuous servo powering the linear actuator and a positional servo rotating the mechanism. Additionally, the locking/unlocking process is initiated by either entering the correct passcode on a keypad on the side of the door opposite the lock or by pressing a button (passcode not required) on the same side of the door as the lock.

Additional Features

  • 16x2 LCD interface to display entered PIN from the keypad
  • Privacy covers when entering PIN - numbers show up as '*' instead of the entered number
  • Three different possible screens for the LCD display
  • Aesthetic microcontroller housing with LED lights on button
  • Linear guide rails and tension springs for the linear actuator

Wiring Diagram

This project does not utilize a PCB because of the sparse placement of the connected parts. See this wiring diagram instead:

image

And this schematic:

Screenshot 2025-07-10 165348

The 'Why' Behind the Project

This project actually started a while ago when I wanted to ensure that no one would could come into my room without my permission, as I felt back then that it had become an issue. Using my engineering skills to solve real-world issues, I initially worked on developing my own boltlock before realizing that it would be much more efficient to just purchase a boltlock. Unfortunately, I would occasionally get locked out of my room, which was a significant issue. I again began to solve this issue by taking an engineering approach to it and working a system that could lock and unlock the boltlock for me when I was outside of my room. In addition to having a keypad, I envision pairing this mechanism with my phone so that it will be more easily accessible, especially if something happens to break or the wires to the keypad snap.

Why This Is Worth Six Points

With the three-part unlocking/locking system mentioned earlier, this is a mechanically complex project that requires precise control of the motors in order to ensure reliability and stability. I spent many hours designing a system for this (over half of my hours spent were in CAD and research), learning a lot about linear guide rails, springs, and their standardizations, and how to effectively approach a real-life issue using engineering. Additionally, I spent a significant amount of time and effort designing logic for the keypad, LCD screens, and LED button as well as making them all work smoothly in tandem. My effort spent doing this project, seen in the thirty hours of work done in addition to prior work and excluding the process of physically building the device, qualifies this project for six points.

Bill of Materials (BOM):

Note: I am using Aliexpress for some and Amazon for others. Prices listed below are in USD and per part. e.g. 2x Nema 17 ($14) = $28 total. Also see the .csv file for the official BOM.

QuantityNamePrice Per PartLinkNotes
2MGN7C linear guide rail + carriage$12.78https://www.aliexpress.us/item/3256804722090559.html150mm length
4M2 50pcs bolt$1.27https://www.aliexpress.us/item/2255799955713291.html4mm, 6mm, 8mm, 10mm lengths
1M2 50pcs nut$1.52https://www.aliexpress.us/item/3256807407546447.html
1M3 30pcs bolt$1.43https://www.aliexpress.us/item/2255799955713291.html6mm length
1M3 50pcs nut$1.68https://www.aliexpress.us/item/3256807407546447.html
110 pcs Tension spring w/ hook$4.09http://www.aliexpress.us/item/3256805190632211.html50mm length, 0.3mm wire diameter, 5mm outer diameter
2Pushbutton$3.06https://www.aliexpress.us/item/3256807837994773.htmlRed color (NOT with the power symbol), 3-6V, 19mm size, momentary type
13m length wire cover$5.39https://www.aliexpress.us/item/3256808858896776.htmlA-White (A-type, white and red color)
1Heat gun + Heat shrink tubes$9.99https://www.aliexpress.us/item/3256807579039319.html1060 pcs, 110V US plug
1KeypadN/Ahttps://a.co/d/2Og2GzaAlready have this (no price).
1LCD$2.39https://www.aliexpress.us/item/3256806852105736.htmlI2C LCD Green
1Power bank + USB-B cableN/AAny worksAlready have this (no price).
1Positional SG90 ServoN/Ahttps://a.co/d/dwwxeeTAlready have this (no price).
1Continuous FS90R ServoN/Ahttps://a.co/d/2raoKgmAlready have this (no price).
1Jumper wiresN/Ahttps://a.co/d/hYEySLhAlready have this (no price).
11kg spool of filamentN/AAny worksAny color, any type. Already have this (no price).
1Home security door reinforcement lockN/Ahttps://a.co/d/iCTK5DPAlready have this (no price).
1330Ω resistorN/AN/AAlready have this (no price).
Total minimum cost$43.41
Total including shipping; sales tax (assumed ~6%); import and customs fees; etc.~$75

Parts

5
QtyValueFootprintReferences
1Arduino_UNO_R3Arduino_UNOR3:ARDUINO_ARDUINO_UNO_REV3A1
1Motor_Servo_Cont (Linear)Servo:3-Pin ServoM2
1Motor_Servo_Pos (Rotational)Servo:3-Pin ServoM1
1i2c_LCDi2c_LCD:i2c_LCDU1
1~Keypad:4x4 16 Button KeypadU2

Similar boards

  • 2 layers68.8 × 53.6 mmRelatively Universal ROM Programmer, the printed circuit board in 3D

    Relatively Universal ROM Programmer

    AndersBNielsen/Relatively-Universal-ROM-Programmer

    Hardware to program W27C512 EEPROM or any 24/28/32 pin ROM requiring from 5V to 27V programming voltage.

    149 parts257GPL-3.0
  • 2 layers69.1 × 53.8 mmMotor controller, the printed circuit board in 3D

    Motor controller

    AlanFord/self-balancing-stick

    Dual Axis Reaction Wheel Inverted Pendulum

    25 parts79MIT
  • 2 layers68.6 × 53.3 mmProtogasm Board V2, the printed circuit board in 3D

    Protogasm Board V2

    Edging-Machines/Edging-Machines

    This repository is intended to contain as much information as possible about building, designing, prototyping, and using automated edging machines.

    14 parts67MIT
  • 2 layers53.8 × 69.6 mmEVSE V2 2, the printed circuit board in 3D

    EVSE V2 2

    PedroCNeves/AC_ChargingStation

    A learning project to create an EV AC Charging station based on an Arduino Uno

    32 parts50
  • 2 layers113.7 × 61 mmArduTester SMD, the printed circuit board in 3D

    ArduTester SMD

    jonsag/arduTester

    An arduino component tester based on https://create.arduino.cc/projecthub/plouc68000/ardutester-v1-13-the-arduino-uno-transistor-tester-dbafb4

    17 parts14
  • 4 layers65.9 × 52.9 mmMotor shield, the printed circuit board in 3D

    Motor shield

    DCC-EX/EX-MotorShield8874

    Design files for the open source 5A Motor Shield

    114 parts12
  • 4 layers68.6 × 53.3 mm101 PCB, the printed circuit board in 3D

    101 PCB

    ICRS/101

    The all-new open source Robotics 101 course from ICRS. It's specifically designed to be run in hackspaces, after school clubs and university societies.

    89 parts10CC-BY-4.0
  • 2 layers53.3 × 68.3 mmAnac 2040, the printed circuit board in 3D

    Anac 2040

    rallekralle11/Anna2040

    RP2040-based board in the shape of the Arduino uno

    63 parts9

Questions

How big is the Portcullis PCB?

It measures 90 × 140 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Portcullis use?

5 parts, built around the ARDUINO UNO R3. 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 Portcullis KiCad files?

From the jaydenaleung/portcullis repository on GitHub, at the commit this page was made from: the board is pcb/project/portcullis/portcullis.kicad_pcb and its schematic pcb/project/portcullis/portcullis.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Portcullis design in my own project?

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