Skip to the content
2 layers155 × 75 mmHacklock-2137, the printed circuit board in 3D

Controller board for next gen hacklock door / lock / access control system.

Size
155 × 75 mm
Copper layers
2
Thickness
1.6 mm
Parts
119
Nets
138
Pads
439
Tracks, vias
1,147, 168
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
9 Mar 2025
Updated
9 Mar 2025

Overview

Hacklock-2137 is an open-source printed circuit board by p-durlej, from the p-durlej/hswaw-hscloud repository on GitHub. It is a 2-layer board of 155 × 75 mm with 119 parts on 138 nets, routed with 1,147 tracks and 168 vias.

It is built around the K7805-1000R3L, ESP32-S3-WROOM-1-N8 and MAX232N, with the 74HC14, TXS0108EPW and ULN2003A among its other parts. Its parts include 39 resistors, 25 diodes, 21 capacitors, 15 connectors and 8 ICs. It belongs with the ESP32 boards of this library.

Main components

12

README

hswaw/hacklock/hardware/hacklock-2137/README.md

hacklock-2137

Controller board for next gen hacklock door / lock / access control system.

Specifications

  • Built around an ESP32S3: dual-core 32-bit microcontroller with wifi/bluetooth, maximum of 8MB SPIRAM and 16MB Flash memory. Programmable with Micropython, C, C++ or Rust.
  • Programming and debugging over USB-C (Serial and JTAG using built-in USB/JTAG bridge).
  • Wide range of power supply voltage, from 10 to 24V.
  • Two independent and monitored power inputs.
  • 2x hardware UART, at 3v3, 5v or RS232 levels.
  • Two Omron G5V-1 relays, contacts rated at 24V 1A hold current.
  • Two digital outputs at Vsupply level.
  • Two digital inputs at Vsupply level.
  • I2C bus connector for functionality expansion.

Power

10-24V is expected at PWR1/PWR2, with 12V typical.

Whichever input voltage is higher will be used to power the device.

Two ADC pins can be used to monitor the voltage at PWR1/PWR2:

FunctionGPIO
PWR1 monitoringGPIO1/ADC1
PWR2 monitoringGPIO2/ADC2

The voltage at PWR1/PWR2 is divided by 28 before it reaches the ESP32 ADC, so 24V on PWR1 == 857mV on the ADC.

UART

One of three outputs can be enabled: 3v3, 5v, RS232. This is done by setting two pins per UART: 5V enable and RS232 enable. Truth table:

5V enableRS232 enableSelected connector
003v3
105v
11RS232
01undef

Pinout for UART1:

FunctionGPIO
UART1 TX (from hacklock)17
UART1 RX (to hacklock)18
UART1 5V enable6
UART1 RS232 enable8

Pinout for UART2:

FunctionGPIO
UART2 TX (from hacklock)4
UART2 RX (to hacklock)5
UART2 5V enable7
UART2 RS232 enable9

The RS232 connectors are wired as a DCE, which is a happy accident. No hardware flow control is available.

Digital I/O

Digital I/O is at power supply levels, optimized for a ~12V rail. Digital I/O connectors also carry GND and Vsupply on them so that it's easy to use these I/O connectors to read switch state or drive other 'industrial' equipment.

Output pins can sink/source up to 500mA (via ULN2003A).

Input pins need to be driven to at least 10V to register a signal as a logical high.

FunctionGPIO
O12 (output)12
O13 (output)13
I10 (input)10
I11 (input)11

Relay outputs

Two relay outputs are available, using OMRON G5V-1 relays. These relays allow for controlling up to a 1A load at 24V.

FunctionGPIO
Relay 2121
Relay 1414

I2C connector

Running I2C off-board is not recommended, but is provided as a backup solution in case you wish to expand the capabilities of the board.

FunctionGPIO
SCL38
SDA47

The bus runs at 3v3 and has 1.8k pullups included.

LEDs

Two RGB LEDs (WS2812B) are included and connected to GPIO48. However, they're untested.

Programming

You can power the device from USB-C, but digital I/O will not run well. Everything else should work. You can connect via USB when the device is powered on via PWR1/PWR2.

Hold SW1 while powering on the device, or hold SW1 while resetting the device with SW2. The device will switch into BootROM serial mode and can be programmed using esptool.py.

J15 is an 'FTDI cable' connector a la sparkfun/adafruit. Pin 1 is GND and is facing away from the ESP32. This exposes the UART0 console from the ESP32 in case you want to have a second debugging/logging channel in adition to the USB serial/jtag console.

Manufacturing

Runs

RevisionDateCountFabSerialsNotes
rev. A2022/06/215pcsJLCPCBQ001-Q005HW fixes applied (see revision detail below)

Revision A

First revision, has the following hardware bugs:

  1. Current limiting resistors R1, R2, R3, R11, R12 are way too low value, they should be closer to 10k.
  2. R35 should be removed if an FTDI cable is used, otherwise 5V from the FTDI cable will go into the 3v3 rail of the device, slowly killing the ESP32.

Parts

119
QtyValueFootprintReferences
10330Resistor_SMD:R_0402_1005MetricR19, R20, R21, R22, R23, R24, R25, R26, R29, R30
710kResistor_SMD:R_0402_1005MetricR6, R28, R32, R36, R37, R38, R39
71uCapacitor_SMD:C_0402_1005MetricC5, C6, C7, C8, C16, C17, C20
6100nCapacitor_SMD:C_0402_1005MetricC11, C12, C13, C14, C15, C18
51kResistor_SMD:R_0402_1005MetricR1, R8, R10, R27, R31
30Resistor_SMD:R_0402_1005MetricR13, R14, R35
3100nCapacitor_SMD:C_1206_3216MetricC3, C4, C21
310uCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-AC1, C2, C19
3SS210Diode_SMD:D_SMAD4, D5, D6
21.8kResistor_SMD:R_0603_1608MetricR33, R34
21nCapacitor_SMD:C_0402_1005MetricC9, C10
22.7kResistor_SMD:R_0603_1608MetricR16, R17
227kResistor_SMD:R_0402_1005MetricR7, R9
25.1kResistor_SMD:R_0402_1005MetricR4, R5
2680Resistor_SMD:R_0402_1005MetricR11, R12
2820Resistor_SMD:R_0603_1608MetricR15, R18
2G5V-1Relay_THT:Relay_SPDT_Omron_G5V-1K1, K2
2MMBT3904Package_TO_SOT_SMD:SOT-23Q1, Q2
2SM4007Diode_SMD:D_SOD-123FD20, D22
2WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD23, D24
2ZMM5V6Diode_SMD:D_MiniMELFD7, D10
1 K7805-1000R3LPackage_TO_SOT_THT:TO-220-3_Horizontal_TabDownU2
11.25AFuse:Fuse_2920_7451MetricF1
1120Resistor_SMD:R_0402_1005MetricR2
124V OKLED_SMD:LED_0805_2012MetricD1
13.3V OKLED_SMD:LED_0805_2012MetricD3
133Resistor_SMD:R_0402_1005MetricR3
15V OKLED_SMD:LED_0805_2012MetricD2
174HC14Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU7
1AP1117-33Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1BOOT0Button_Switch_SMD:SW_SPST_TL3342SW1
1DBG UARTConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ15
1DG411xJPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU6
1ESP32-S3-WROOM-1PCM_Espressif:ESP32-S3-WROOM-1U1
1GT-USB-7010ASVConnector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASVJ1
1I2C 3V3Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_HorizontalJ14
1IN10LED_SMD:LED_0805_2012MetricD15
1IN11LED_SMD:LED_0805_2012MetricD16
1IN_24VConnector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_HorizontalJ6
1MAX232Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU5
1OUT12LED_SMD:LED_0805_2012MetricD17
1OUT13LED_SMD:LED_0805_2012MetricD18
1OUT14LED_SMD:LED_0805_2012MetricD19
1OUT14Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_3-G-5.08_1x03_P5.08mm_HorizontalJ8
1OUT21Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_3-G-5.08_1x03_P5.08mm_HorizontalJ9
1OUT21LED_SMD:LED_0805_2012MetricD21
1OUT_24VConnector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_HorizontalJ7
1PWR1Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_2-G-5.08_1x02_P5.08mm_HorizontalJ2
1PWR1 OKLED_SMD:LED_0805_2012MetricD8
1PWR2Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_2-G-5.08_1x02_P5.08mm_HorizontalJ3
1PWR2 OKLED_SMD:LED_0805_2012MetricD9
1RS232 1Connector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset7.70mm_Housed_MountingHolesOffset9.12mmJ4
1RS232 2Connector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset7.70mm_Housed_MountingHolesOffset9.12mmJ5
1RSTButton_Switch_SMD:SW_SPST_TL3342SW2
1SMF05CT1GPackage_TO_SOT_SMD:SOT-363_SC-70-6D25
1TXS0108EPWPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU4
1UART1 3V3Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ13
1UART1 5VConnector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_HorizontalJ10
1UART1 RXLED_SMD:LED_0805_2012MetricD12
1UART1 TXLED_SMD:LED_0805_2012MetricD11
1UART2 3V3Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ12
1UART2 5VConnector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_HorizontalJ11
1UART2 RXLED_SMD:LED_0805_2012MetricD14
1UART2 TXLED_SMD:LED_0805_2012MetricD13
1ULN2003APackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU8

The 115 most common of 119 parts.

More from p-durlej/hswaw-hscloud

1
  • 4 layers86 × 99.3 mmHbj11, the printed circuit board in 3D

    Hbj11

    p-durlej/hswaw-hscloud

    Controller board for next gen hacklock door / lock / access control system.

    20 parts

Similar boards

  • 4 layers154 × 160 mmGDI-6ch, the printed circuit board in 3D

    GDI-6ch

    rusefi/rusefi-hardware

    250 parts52
  • 2 layers55 × 20 mmTPS5430, the printed circuit board in 3D

    TPS5430

    swayerloren/KICAD_ENGINE

    AI-assisted KiCad PCB design workflow for schematics, PCB layouts, DRC, BOM/CPL, and fabrication outputs using Codex or Claude.

    44 parts10MIT
  • 2 layers42 × 98.1 mmPendant, the printed circuit board in 3D

    Pendant

    esplo/cue2keys_resources

    Docs and other resources for Cue2Keys

    69 parts5MIT
  • 2 layers23.1 × 51 mmAw rachio adapter, the printed circuit board in 3D

    Aw rachio adapter

    adeboni/electronics

    This repository stores code for various electronics projects I've made

    20 parts
  • 2 layers110 × 70 mmHI-2401, the printed circuit board in 3D

    HI-2401

    rajuyadav79/PCB_2401_ms51_git

    81 parts
  • 2 layers100 × 100 mmPCB SALUS v3, the printed circuit board in 3D

    PCB SALUS v3

    LeoSole423/PCB_SALUS_V3

    PCB de control para el robot Ackermann SALUS. Esta revision se inspira en la arquitectura de Hoja-Base, pero usa un ESP32-S3 y se mantiene como un diseno independiente.

    91 parts
  • 4 layers63.5 × 72.5 mmBird monitor, the printed circuit board in 3D

    Bird monitor

    TheCacophonyProject/bird-monitor-pcb

    64 partsGPL-3.0

Questions

How big is the Hacklock-2137 PCB?

It measures 155 × 75 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Hacklock-2137 use?

119 parts, built around the K7805-1000R3L, ESP32-S3-WROOM-1-N8, MAX232N and 74HC14. 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 Hacklock-2137 KiCad files?

From the p-durlej/hswaw-hscloud repository on GitHub, at the commit this page was made from: the board is hswaw/hacklock/hardware/hacklock-2137/hacklock-2137.kicad_pcb and its schematic hswaw/hacklock/hardware/hacklock-2137/hacklock-2137.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Hacklock-2137 design in my own project?

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