Skip to the content
2 layers50 × 35 mmStage19 dual permissive gate, the printed circuit board in 3D

Stage19 dual permissive gate

zhangyinxina-ui/bb8-do-assembly-guide2

BB-8 1:1 Blender model, engineering validation, assembly guide, and D-O public resource map

Size
50 × 35 mm
Copper layers
2
Thickness
1.6 mm
Parts
38
Nets
21
Pads
95
Tracks, vias
1,614, 54
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Jul 2026
Updated
17 Jul 2026

Overview

Stage19 dual permissive gate is an open-source printed circuit board by zhangyinxina-ui, from the zhangyinxina-ui/bb8-do-assembly-guide repository on GitHub. It is a 2-layer board of 50 × 35 mm with 38 parts on 21 nets, routed with 1,614 tracks and 54 vias.

It is built around the SN74LVC2G08DCU, VO617A-4 and 1N4148W. Its parts include 13 resistors, 5 ICs, 5 connectors, 3 capacitors and 2 diodes. It belongs with the robots and motor control boards of this library.

Main components

3

README

hardware/stage19_dual_permissive_gate/README.md

Stage 19 dual-permissive PWM gate — routed PCB/DRC reference design

This package replaces the Stage-18 empty gate-board placeholder with a reviewable electrical contract, deterministic KiCad 10 schematic and a real 50 × 35 mm two-layer routed PCB. KiCad 10.0.4 reports 0 ERC violations, 0 PCB DRC violations and 0 unconnected items. The 34 electrical references, 91 pin assignments and 21 named nets match the canonical CSV; the PCB adds four contracted 3.2 mm M3 NPTH mounting holes. It is deliberately not a fabrication release: independent schematic/layout peer review, intentional Gerber/drill review, fabrication, continuity, power-up and bench waveforms remain absent.

Intended function

mermaid
flowchart LR
  MCU[MCU PWM L/R] --> A[U3: AND SAFE_A_OK]
  A --> B[U4: AND SAFE_B_OK]
  B --> C[U5: AND ALERT_N]
  C --> MDD[MDD20A PWM L/R]
  SA[12–16.8 V permissive A] --> OA[VO617A-4 A]
  SB[12–16.8 V permissive B] --> OB[VO617A-4 B]
  OA --> A
  OB --> B
  INA[Dual INA226 open-drain ALERT] --> C
  REL[Safety relay] --> SA
  REL --> SB
  REL --> SW60[Normally-open main contactor]

Both outputs follow:

PWM_OUT = LOGIC_POWER_OK AND PWM_IN AND SAFE_A_OK AND SAFE_B_OK AND ALERT_N

Either safety channel, a current ALERT, or loss of 3.3 V forces both PWM outputs low. DIR_L and DIR_R pass through directly and are not safety signals. The contract therefore requires MDD20A sign-magnitude mode, where PWM low is brake.

The board provides six declared test points: SAFE_A_OK, SAFE_B_OK, ALERT_N, PWM_L_OUT, PWM_R_OUT and GND. The PCB-plus-component envelope is 11.4 mm; including the 3.0 mm insulated mounting stack gives 14.4 mm installed height and only 0.6 mm analytical margin inside the Stage-18 keepout.

Safety boundary

  • PWM low is braking, not energy isolation. The independent safety relay and normally-open contactor must still remove the motor bus.
  • This is not a safety PLC, certified safety relay or redundant safety controller. Shared power, PCB, connectors, logic packages and the motor driver remain common-cause paths.
  • The VO617A-4 CTR and saturation checks in this repository use the manufacturer's 25 °C test points. Its saturated 25 µs turn-off is a typical value, not a guaranteed maximum.
  • An open ALERT_N wire can be pulled high by R13; that path is not fail-safe. Commissioning must test the sensor harness and MCU freshness latch separately.
  • Do not fabricate or energise from these files. The formal schematic, routed layout and DRC are complete as a digital reference, but an independent peer review and intentional Gerber/drill release must happen before any manufacturer order or Stage-E02 bench test.

Files

  • engineering/stage19_dual_permissive_gate_contract.json — source-of-truth requirements and official references.
  • engineering/stage19_gate_netlist.csv — pin-level connectivity contract.
  • engineering/stage19_gate_bom.csv — provisional BOM; many passives remain manufacturer-TBD.
  • engineering/stage19_gate_truth_table.csv — all 64 input combinations.
  • engineering/stage19_dual_permissive_gate_results.json — analytical result and unresolved release gates.
  • stage19_dual_permissive_gate.kicad_sch / .kicad_pro / .kicad_pcb — formal KiCad 10 schematic and routed two-layer PCB project.
  • stage19_symbols.kicad_sym — project-local custom MCU-header and VO617A-4 symbols used by the deterministic capture.
  • engineering/stage19_kicad_erc.json — KiCad 10.0.4 ERC export with zero violations.
  • engineering/stage19_kicad_netlist.xml / stage19_kicad_bom.csv — machine-audited connectivity and KiCad BOM exports.
  • engineering/stage19_kicad_pcb_drc.json — KiCad 10.0.4 PCB DRC report with zero violations and zero unconnected items.
  • engineering/stage19_kicad_pcb_verification.json — structural regeneration, board envelope, mounting-hole, net and DRC evidence.
  • output/pcb/BB8_stage19_gate_pcb_* — top/bottom copper review plots and a visually inspected isometric render; review images only, not Gerbers.
  • output/pdf/BB8_stage19_dual_permissive_gate_schematic.pdf — reviewed one-page A4 schematic rendering.
  • tools/verify_stage19_kicad.py — regenerates, runs ERC/exports and cross-audits the canonical netlist without granting fabrication release.
  • tools/generate_stage19_kicad_pcb.py — deterministically places and routes the PCB with real KiCad footprints.
  • tools/verify_stage19_kicad_pcb.py — regenerates the PCB in a temporary directory, compares UUID-independent structure and runs DRC on both copies.
  • tools/export_stage19_kicad_pcb.py — exports review SVG/PNG files only; it cannot emit Gerber or drill manufacturing data.
  • tools/verify_dual_permissive_gate.py — deterministic evaluator.
  • board_envelope.scad — deterministic component-envelope model source. The local OpenSCAD 2021.01 CLI did not complete a headless export, so no STL is claimed in this stage.

Required next tests

  1. Independent peer review of the captured KiCad schematic and its safety assumptions.
  2. Independent PCB placement/routing, creepage, courtyard, connector-polarity and test-point peer review; the automated DRC result alone is not release approval.
  3. Intentionally generate and manually review Gerber/drill plots before any manufacturer order; none is published in this reference package.
  4. Unpowered continuity and polarity inspection.
  5. 12.0 V and 16.8 V corner tests for SAFE_A and SAFE_B independently.
  6. Oscilloscope proof that each safety channel, ALERT_N, logic-power loss and MCU stuck-high drive both PWM outputs low within 20 ms.
  7. 20 kHz PWM integrity, temperature, vibration, connector retention and EMC checks.
  8. Combined safety-relay/contactor/PWM-gate Stage-E02 evidence.

Parts

38
QtyValueFootprintReferences
910.0k 1%R_0805_2012MetricR5, R6, R7, R8, R9, R10, R11, R12, R13
4M3 INSULATEDMountingHole_3.2mm_M3H1, H2, H3, H4
3100nFC_0603_1608MetricC1, C2, C3
3SN74LVC2G08DCUVSSOP-8_2.3x2mm_P0.5mmU3, U4, U5
21N4148WD_SOD-123D1, D2
22.00k 1% 0.5WR_1210_3225MetricR1, R2
24.70k 1%R_0805_2012MetricR3, R4
2VO617A-4DIP-4_W7.62mmU1, U2
1ALERT_NTestPoint_Loop_D2.50mm_Drill1.0mmTP3
1GNDTestPoint_Loop_D2.50mm_Drill1.0mmTP6
1LOGIC POWER 3V3JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ1
1MCU PWM DIR ALERTJST_XH_B6B-XH-A_1x06_P2.50mm_VerticalJ2
1MDD20A PWM DIRJST_XH_B5B-XH-A_1x05_P2.50mm_VerticalJ3
1PWM_L_OUTTestPoint_Loop_D2.50mm_Drill1.0mmTP4
1PWM_R_OUTTestPoint_Loop_D2.50mm_Drill1.0mmTP5
1SAFE A 12-16V8JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ4
1SAFE B 12-16V8JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ5
1SAFE_A_OKTestPoint_Loop_D2.50mm_Drill1.0mmTP1
1SAFE_B_OKTestPoint_Loop_D2.50mm_Drill1.0mmTP2

Similar boards

  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers208.8 × 396.9 mmFerris, the printed circuit board in 3D

    Ferris

    pierrechevalier83/ferris

    A low profile split keyboard designed to satisfy one single use case elegantly

    145 parts1.3k
  • 2 layers285.5 × 95 mmReviung46 ver1 1, the printed circuit board in 3D

    Reviung46 ver1 1

    gtips/reviung

    The REVIUNG41 is 41-key column staggered keyboard.

    119 parts517MIT
  • 4 layers95.6 × 73.6 mmMathpad, the printed circuit board in 3D

    Mathpad

    Summa-Cogni/Mathpad

    A mathematical keypad for students and professionals

    93 parts243
  • 2 layers141.5 × 83 mmRolio, the printed circuit board in 3D

    Rolio

    MickiusMousius/Rolio46Keyboard

    A split wireless keyboard based on the Corne and Sofle

    110 parts236MIT
  • 6 layers160 × 100 mmAdrmu6layer, the printed circuit board in 3D

    Adrmu6layer

    marcoreps/ADRmu

    ADR1000 10V standard

    240 parts149
  • 2 layers99.1 × 90.7 mmBgkeeb, the printed circuit board in 3D

    Bgkeeb

    sadekbaroudi/bgkeeb

    This is a reversible 100mm x 100mm pcb with support for mx or choc switches (no hotswap), per key led, rotary encoders, and exposes the SDA/SCL/GND/VCC lines in the form of the pimoroni trackball pins (meaning you can…

    108 parts108
  • 2 layers229.8 × 102.6 mmBw2, the printed circuit board in 3D

    Bw2

    hazels-garage/bad-wings

    Bad Wings

    107 parts107CC-BY-SA-4.0

Questions

How big is the Stage19 dual permissive gate PCB?

It measures 50 × 35 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stage19 dual permissive gate use?

38 parts, built around the SN74LVC2G08DCU, VO617A-4 and 1N4148W. 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 Stage19 dual permissive gate KiCad files?

From the zhangyinxina-ui/bb8-do-assembly-guide repository on GitHub, at the commit this page was made from: the board is hardware/stage19_dual_permissive_gate/stage19_dual_permissive_gate.kicad_pcb and its schematic hardware/stage19_dual_permissive_gate/stage19_dual_permissive_gate.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stage19 dual permissive gate design in my own project?

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