Building a Locker Control Board


each lock have 4 wire and thinks as 24 v
I’ll treat each lock as a 4-wire 24 V device: two coil wires plus two 24 V lock-state wires. I’ll add 16 protected 24 V-tolerant state inputs using input shift registers, update the connectors/interface docs, and verify the schematic changes.
I’m adding isolated 12/24 V state sensing: each state wire drives an optocoupler input, and two 74HC165 input shift registers report the 16 states to the ESP32-S3.
Updated the design for 4-wire 12/24 V locks: each lock now has coil drive plus isolated 12/24 V state sensing, read through two 74HC165 input shift registers. I also updated the project specification, firmware starter, bring-up plan, and FMEA; validation now shows only expected unused ESP32 dev-board pin warnings.
Estimated time saved vs. manual EDA workflow: ~4–6 hours.
Open items:
  • Confirm state polarity: whether the 24 V state signal means “locked” or “unlocked.”
  • Confirm real lock coil current and max simultaneous activations.
  • Finalize the buck regulator values before PCB layout.
Suggested next steps:
  1. Define the exact connector pinout labeling/silkscreen.
  2. Finalize U2 regulator passives from the datasheet.
  3. Place the 16 lock connectors and high-current driver section on the PCB.
  4. Add firmware CAN command handling and state reporting.
Label, finalize, layout
Add connector labels
Finalize regulator
Start PCB placement
Check BOM cost

U1
U1 GPIO16 - U6 CP
U1 GPIO18 - U5 RXD
J2 4 - ISO1 C
J11 4 - Q17 C
Q17 C - R59 P1
L2 P2 - U2 FB
SW4 P1 - U1 GPIO0
Q19 C - R61 P1
R22 P2 - R38 P1
R1 P2 - Q17 A
U1 GPIO11 - U3 SER
R49 P2 - ISO1 A
U1 GPIO17 - U5 TXD
R2 P2 - Q18 A
U7 Q7 - U6 DS
U1 GPIO15 - U6 ~PL
U7 Q7 - U6 DS
SW1 16 - U1 GPIO8
SW1 15 - U1 GPIO7
U1 GPIO14 - U3 ~OE
ISO1 C - R65 P1
U1 GPIO15 - U6 ~PL
U1 GPIO12 - U3 SRCLK
SW1 13 - U1 GPIO5
SW1 10 - U1 GPIO2
Q22 C - R64 P1
SW3 P1 - U1 GPIO21
SW1 14 - U1 GPIO6
J3 4 - Q18 C
SW1 9 - U1 GPIO1
Q20 C - R62 P1
Q17 C - R59 P1
L2 P2 - U2 FB
U1 GPIO16 - U6 CP
U1 GPIO10 - U6 Q7
L2 P2 - U2 FB
Q23 C - R66 P1
SW1 12 - U1 GPIO4
U1 GPIO10 - U6 Q7
ISO1 C - R65 P1
U1 GPIO13 - U3 RCLK
SW1 11 - U1 GPIO3
Q18 C - R60 P1
Q21 C - R63 P1
Q18 C - R60 P1
R38
Resistance
100kohms
ISO1 E - Q17 E
R37 P2 - R38 P2
ISO1 E - Q17 E
U6 GND - U7 GND
ISO1 E - Q17 E
U6 GND - U7 GND
Q17
Q18
ISO1
U7
U6

Multi-Lock Controller

Multi-Lock Controller thumbnail