
Hbj11
p-durlej/hswaw-hscloud
Controller board for next gen hacklock door / lock / access control system.

Controller board for next gen hacklock door / lock / access control system.
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.

Controller board for next gen hacklock door / lock / access control system.
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:
| Function | GPIO |
|---|---|
| PWR1 monitoring | GPIO1/ADC1 |
| PWR2 monitoring | GPIO2/ADC2 |
The voltage at PWR1/PWR2 is divided by 28 before it reaches the ESP32 ADC, so 24V on PWR1 == 857mV on the ADC.
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 enable | RS232 enable | Selected connector |
|---|---|---|
| 0 | 0 | 3v3 |
| 1 | 0 | 5v |
| 1 | 1 | RS232 |
| 0 | 1 | undef |
Pinout for UART1:
| Function | GPIO |
|---|---|
| UART1 TX (from hacklock) | 17 |
| UART1 RX (to hacklock) | 18 |
| UART1 5V enable | 6 |
| UART1 RS232 enable | 8 |
Pinout for UART2:
| Function | GPIO |
|---|---|
| UART2 TX (from hacklock) | 4 |
| UART2 RX (to hacklock) | 5 |
| UART2 5V enable | 7 |
| UART2 RS232 enable | 9 |
The RS232 connectors are wired as a DCE, which is a happy accident. No hardware flow control is available.
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.
| Function | GPIO |
|---|---|
| O12 (output) | 12 |
| O13 (output) | 13 |
| I10 (input) | 10 |
| I11 (input) | 11 |
Two relay outputs are available, using OMRON G5V-1 relays. These relays allow for controlling up to a 1A load at 24V.
| Function | GPIO |
|---|---|
| Relay 21 | 21 |
| Relay 14 | 14 |
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.
| Function | GPIO |
|---|---|
| SCL | 38 |
| SDA | 47 |
The bus runs at 3v3 and has 1.8k pullups included.
Two RGB LEDs (WS2812B) are included and connected to GPIO48. However, they're untested.
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.
| Revision | Date | Count | Fab | Serials | Notes |
|---|---|---|---|---|---|
| rev. A | 2022/06/21 | 5pcs | JLCPCB | Q001-Q005 | HW fixes applied (see revision detail below) |
First revision, has the following hardware bugs:
| Qty | Value | Footprint | References |
|---|---|---|---|
| 10 | 330 | Resistor_SMD:R_0402_1005Metric | R19, R20, R21, R22, R23, R24, R25, R26, R29, R30 |
| 7 | 10k | Resistor_SMD:R_0402_1005Metric | R6, R28, R32, R36, R37, R38, R39 |
| 7 | 1u | Capacitor_SMD:C_0402_1005Metric | C5, C6, C7, C8, C16, C17, C20 |
| 6 | 100n | Capacitor_SMD:C_0402_1005Metric | C11, C12, C13, C14, C15, C18 |
| 5 | 1k | Resistor_SMD:R_0402_1005Metric | R1, R8, R10, R27, R31 |
| 3 | 0 | Resistor_SMD:R_0402_1005Metric | R13, R14, R35 |
| 3 | 100n | Capacitor_SMD:C_1206_3216Metric | C3, C4, C21 |
| 3 | 10u | Capacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-A | C1, C2, C19 |
| 3 | SS210 | Diode_SMD:D_SMA | D4, D5, D6 |
| 2 | 1.8k | Resistor_SMD:R_0603_1608Metric | R33, R34 |
| 2 | 1n | Capacitor_SMD:C_0402_1005Metric | C9, C10 |
| 2 | 2.7k | Resistor_SMD:R_0603_1608Metric | R16, R17 |
| 2 | 27k | Resistor_SMD:R_0402_1005Metric | R7, R9 |
| 2 | 5.1k | Resistor_SMD:R_0402_1005Metric | R4, R5 |
| 2 | 680 | Resistor_SMD:R_0402_1005Metric | R11, R12 |
| 2 | 820 | Resistor_SMD:R_0603_1608Metric | R15, R18 |
| 2 | G5V-1 | Relay_THT:Relay_SPDT_Omron_G5V-1 | K1, K2 |
| 2 | MMBT3904 | Package_TO_SOT_SMD:SOT-23 | Q1, Q2 |
| 2 | SM4007 | Diode_SMD:D_SOD-123F | D20, D22 |
| 2 | WS2812B | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D23, D24 |
| 2 | ZMM5V6 | Diode_SMD:D_MiniMELF | D7, D10 |
| 1 | K7805-1000R3L | Package_TO_SOT_THT:TO-220-3_Horizontal_TabDown | U2 |
| 1 | 1.25A | Fuse:Fuse_2920_7451Metric | F1 |
| 1 | 120 | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 24V OK | LED_SMD:LED_0805_2012Metric | D1 |
| 1 | 3.3V OK | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | 33 | Resistor_SMD:R_0402_1005Metric | R3 |
| 1 | 5V OK | LED_SMD:LED_0805_2012Metric | D2 |
| 1 | 74HC14 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U7 |
| 1 | AP1117-33 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | BOOT0 | Button_Switch_SMD:SW_SPST_TL3342 | SW1 |
| 1 | DBG UART | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J15 |
| 1 | DG411xJ | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U6 |
| 1 | ESP32-S3-WROOM-1 | PCM_Espressif:ESP32-S3-WROOM-1 | U1 |
| 1 | GT-USB-7010ASV | Connector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASV | J1 |
| 1 | I2C 3V3 | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_Horizontal | J14 |
| 1 | IN10 | LED_SMD:LED_0805_2012Metric | D15 |
| 1 | IN11 | LED_SMD:LED_0805_2012Metric | D16 |
| 1 | IN_24V | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_Horizontal | J6 |
| 1 | MAX232 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U5 |
| 1 | OUT12 | LED_SMD:LED_0805_2012Metric | D17 |
| 1 | OUT13 | LED_SMD:LED_0805_2012Metric | D18 |
| 1 | OUT14 | LED_SMD:LED_0805_2012Metric | D19 |
| 1 | OUT14 | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_3-G-5.08_1x03_P5.08mm_Horizontal | J8 |
| 1 | OUT21 | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_3-G-5.08_1x03_P5.08mm_Horizontal | J9 |
| 1 | OUT21 | LED_SMD:LED_0805_2012Metric | D21 |
| 1 | OUT_24V | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_Horizontal | J7 |
| 1 | PWR1 | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_2-G-5.08_1x02_P5.08mm_Horizontal | J2 |
| 1 | PWR1 OK | LED_SMD:LED_0805_2012Metric | D8 |
| 1 | PWR2 | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_2-G-5.08_1x02_P5.08mm_Horizontal | J3 |
| 1 | PWR2 OK | LED_SMD:LED_0805_2012Metric | D9 |
| 1 | RS232 1 | Connector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset7.70mm_Housed_MountingHolesOffset9.12mm | J4 |
| 1 | RS232 2 | Connector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset7.70mm_Housed_MountingHolesOffset9.12mm | J5 |
| 1 | RST | Button_Switch_SMD:SW_SPST_TL3342 | SW2 |
| 1 | SMF05CT1G | Package_TO_SOT_SMD:SOT-363_SC-70-6 | D25 |
| 1 | TXS0108EPW | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U4 |
| 1 | UART1 3V3 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J13 |
| 1 | UART1 5V | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_Horizontal | J10 |
| 1 | UART1 RX | LED_SMD:LED_0805_2012Metric | D12 |
| 1 | UART1 TX | LED_SMD:LED_0805_2012Metric | D11 |
| 1 | UART2 3V3 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J12 |
| 1 | UART2 5V | Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_Horizontal | J11 |
| 1 | UART2 RX | LED_SMD:LED_0805_2012Metric | D14 |
| 1 | UART2 TX | LED_SMD:LED_0805_2012Metric | D13 |
| 1 | ULN2003A | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U8 |
The 115 most common of 119 parts.

p-durlej/hswaw-hscloud
Controller board for next gen hacklock door / lock / access control system.


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



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


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.

It measures 155 × 75 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask p-durlej before reusing the design.