
Shunt reversal noadc
fl4p/shunt-reversal
MOSFET H-bridge current-reversal switch for shunt thermal-EMF cancellation. Script-generated KiCad. NOT RELEASED - see DESIGN.md section 12.

MOSFET H-bridge current-reversal switch for shunt thermal-EMF cancellation. Script-generated KiCad. NOT RELEASED - see DESIGN.md section 12.
Shunt reversal freerouting source is an open-source printed circuit board by fl4p, from the fl4p/shunt-reversal repository on GitHub. It is a 4-layer board of 145 × 80 mm with 100 parts on 53 nets, routed with 520 tracks and 912 vias.
It is built around the MCP3208-CI/SL, MIC4467YWM-TR and MIE1W0505BGLVH-3R, with the SN74HC02D, SN74HC14D and ISC022N10NM6ATMA1 among its other parts. Its parts include 30 resistors, 29 capacitors, 16 transistors, 7 ICs and 7 diodes. It belongs with the interfaces and adapters boards of this library.
A 16-device H-bridge that reverses the current through an external shunt, so the thermal-EMF offset can be cancelled by the half-difference of a forward and a reverse reading. The shunt is not on this board and neither are the Kelvin taps — J3/J4 are M4 lugs that reach it by busbar or cable, with a deliberate thermal break.
The full design record — corner ledgers, error budget, guard doctrine, open items — is in DESIGN.md. This file is just the viewer.
NOT RELEASED. DESIGN.md §12 items 9, 10 and 11 are open release blockers (TVS pulse energy unbounded,
R_thJAnot applicable as used, no SOA analysis for power-up-into-voltage). Do not order fabrication against these files.
Both are emitted by the same generators from one source tree; --variant selects.
| base | -noadc | |
|---|---|---|
| files | shunt-reversal.kicad_{sch,pcb} | shunt-reversal-noadc.kicad_{sch,pcb} |
| build | python3 gen_sch.py && python3 gen_pcb.py --full | add --variant noadc to both |
| diagnostic ADC | U7 MCP3208, 8 channels | absent |
J1 pins 7/9 | SCLK_H, MOSI_H | GND_H |
J1 pin 10 | MISO_H | FAULT_H |
| physical evidence | conduction + gate state | none — commanded state plus one latched bit |
The variant is not merely the base board minus a part: §12 item 7 escalates on it, because a stuck-on, stuck-off or dead-open leg is invisible to that board entirely. See DESIGN.md §13.
Do not run the full generator/router for a bounded package substitution on the accepted boards.
The D4/D5 0603-to-0805 migration is declared by footprint-swap-led-0805.json and implemented by
tools/footprint_swap_adapter.py:
python3 /path/to/kicad-design/scripts/kicad_footprint_swap.py \
--spec footprint-swap-led-0805.json --time-budget 180 # dry-run
python3 /path/to/kicad-design/scripts/kicad_footprint_swap.py \
--spec footprint-swap-led-0805.json --time-budget 180 --applyThe adapter materializes immutable old board authority from the recorded Git commit, loads the
SHA-256-bound vendored 0805 footprint, and applies only the exact field map, footprint placement,
and route primitive delta declared by the reviewed overlay. It snapshots its complete source/audit
dependency set into the transaction, performs two-fill semantic settlement, requires equality with
the DRC-saved board, and runs both project audits concurrently.
footprint-migrations/led-0805/audit-mechanism-receipt.json binds calibration against immutable old
fixtures; it does not replace the fresh complete scan of each candidate. Regenerate that receipt
with tools/calibrate_footprint_swap_audit.py whenever a bound audit input or KiCad compatibility
cell changes.
| top | bottom | |
|---|---|---|
| base | ![]() | ![]() |
-noadc | ![]() | ![]() |
Regenerate with — note the .gitignore policy here is never commit raw PNG, so the
render is converted and the PNG dropped:
kicad-cli pcb render --side top --quality high --width 1600 --height 900 \
--background opaque -o /tmp/r.png shunt-reversal.kicad_pcb
cwebp -q 88 /tmp/r.png -o images/shunt-reversal-top.webpThe base render is one commit stale in one respect. It still carries the silkscreen
KELVIN TAPS BELONG ON THE SHUNT, which was removed from the generator in ca3fbc5. The
-noadc board was regenerated after that and does not have it; the base board artefact was
last written in ca1cac7 and cannot be regenerated until the route seed is re-promoted —
that is DESIGN.md open item 15, and this is what it looks like from the outside.
KiCanvas renders KiCad 6+ schematics and boards client-side. Pointing it at the directory loads every KiCad file in it as one project, so both variants' schematics and boards appear in its project panel and you can switch between them without reloading:
→ Open all variants in KiCanvas
Straight to a single file:
These links resolve only once fl4p/shunt-reversal exists and is public. KiCanvas fetches
api.github.com and raw.githubusercontent.com unauthenticated, so a private repo returns
404 to it and the viewer fails to load. This board lives in its own repo — rather than under
fl4p/pwr-metering, which is private — for exactly that reason.
What works regardless: open https://kicanvas.org/ with no URL parameters
and drag the files onto the page, or use its open local file button. It is entirely
client-side — nothing is uploaded. Drop the .kicad_pro (or select every file at once) so it
picks up the schematic and board together as one project.
Note that KiCanvas only honours the first github= parameter; passing several does not load
several projects.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | ISC022N10NM6 | shunt-reversal:Infineon_PG-TSON-8-3 | Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16 |
| 12 | 100k | Resistor_SMD:R_0603_1608Metric | R33, R34, R35, R36, R37, R42, R44, R46, R48, R50, R52, R54 |
| 11 | 100n | Capacitor_SMD:C_0603_1608Metric | C2, C4, C6, C8, C10, C11, C12, C13, C14, C16, C21 |
| 9 | 10n | Capacitor_SMD:C_0603_1608Metric | C20, C22, C23, C24, C28, C29, C30, C31, C32 |
| 7 | 1M | Resistor_SMD:R_0603_1608Metric | R5, R6, R7, R8, R41, R43, R45 |
| 4 | 150k | Resistor_SMD:R_0603_1608Metric | R47, R49, R51, R53 |
| 4 | 25R | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4 |
| 4 | M3 | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 2 | 10u | Capacitor_SMD:C_0805_2012Metric | C1, C3 |
| 2 | 10u | Capacitor_SMD:C_1206_3216Metric | C9, C15 |
| 2 | 1N4148W | Diode_SMD:D_SOD-123 | D2, D3 |
| 2 | 220p | Capacitor_SMD:C_0603_1608Metric | C18, C19 |
| 2 | 22u | Capacitor_SMD:C_1206_3216Metric | C5, C7 |
| 2 | 2k2 | Resistor_SMD:R_0603_1608Metric | R38, R39 |
| 2 | MIE1W0505BGLVH | shunt-reversal:MIE1W0505BGLVH_LGA-12_4x5mm | U1, U2 |
| 2 | MMBZ15VDLT1G | Package_TO_SOT_SMD:SOT-23 | D6, D7 |
| 1 | 10k | Resistor_SMD:R_0603_1608Metric | R55 |
| 1 | 1u | Capacitor_SMD:C_0805_2012Metric | C17 |
| 1 | BYP_IN | shunt-reversal:Lug_M4_Ring | J6 |
| 1 | BYP_OUT | shunt-reversal:Lug_M4_Ring | J7 |
| 1 | CTRL | Connector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_Vertical | J1 |
| 1 | GND_OUT | shunt-reversal:Lug_M4_Ring | J5 |
| 1 | IN | shunt-reversal:Lug_M4_Ring | J2 |
| 1 | ISO7761DWR | Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm | U3 |
| 1 | MCP3208-CI/SL | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U7 |
| 1 | MIC4467YWM-TR | Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm | U6 |
| 1 | N | shunt-reversal:Lug_M4_Ring | J4 |
| 1 | P | shunt-reversal:Lug_M4_Ring | J3 |
| 1 | SMDJ36CA | Diode_SMD:D_SMC | D1 |
| 1 | SN74HC02D | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U5 |
| 1 | SN74HC14D | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U4 |
| 1 | green | LED_SMD:LED_0603_1608Metric | D5 |
| 1 | red | LED_SMD:LED_0603_1608Metric | D4 |

fl4p/shunt-reversal
MOSFET H-bridge current-reversal switch for shunt thermal-EMF cancellation. Script-generated KiCad. NOT RELEASED - see DESIGN.md section 12.


misko/prompt2device
The separate vNext PCB skill and orchestrator package is available alongside the reference workflow below; existing projects keep their accepted toolchain until an explicit migration.

KrasForge/Courant
A 2D finite-difference physical-modeling synthesis engine in structural VHDL: a vibrating membrane/plate/gong solved on FPGA fabric, with a nonlinear chaos term, playable polyphonically over MIDI/CV.


Atif6894/automotive-ble-can-pcb
A small 4-layer board that sits on a vehicle's 12/24 V harness, talks CAN FD through a TCAN4550-Q1, and exposes it over Bluetooth LE through a CC2340R5-Q1.


bitfieldaudio/otto-hardware
OTTO hardware files for upcoming beta. WORK IN PROGRESS

ekatynski/Test-Stand-Power-Monitor
A small board for cheaply and easily monitoring a motor test stand for a host of data types.
It measures 145 × 80 mm and has 4 copper layers, 1.6 mm thick.
100 parts, built around the MCP3208-CI/SL, MIC4467YWM-TR, MIE1W0505BGLVH-3R and SN74HC02D. 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 fl4p/shunt-reversal repository on GitHub, at the commit this page was made from: the board is autoroute-freerouting-v2.3.0/shunt-reversal-freerouting-source.kicad_pcb and its schematic autoroute-freerouting-v2.3.0/shunt-reversal-freerouting.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 fl4p before reusing the design.