aj0070/hdmi-capture-breakout
HDMI input breakout board with Type‑A and 20‑pin FPC connectors, TMDS/control-line ESD protection, EDID EEPROM, fused 5‑V power, pull-ups, decoupling, and grounded shield/mounting hardware.
- Version
- 1.0.2
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone aj0070/hdmi-capture-breakout # download the package files into ./hdmi-capture-breakout
tsci add aj0070/hdmi-capture-breakout # add it to your project as @tsci/aj0070.hdmi-capture-breakoutIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
index.circuit.tsx
PCB
Schematic
import { HC_HDMI0019T_4 } from "./imports/HC_HDMI0019T_4"
import { AFC07_S20FCA_00 } from "./imports/AFC07_S20FCA_00"
import { RCLAMP0524P } from "./imports/RCLAMP0524P"
import { AT24C02CM5_TR } from "./imports/AT24C02CM5_TR"
import { JK_nSMD050_30 } from "./imports/JK_nSMD050_30"
// RCLAMP0524P is a 10 pin flow-through 4 channel ESD array: the two rows of
// pads sit on the same five columns, and pins 1/10, 2/9, 4/7, 5/6 are the same
// I/O pad on the real part. Labelling the duplicates lets the signal run
// straight through the package instead of needing a stub.
const esdLabels = {
pin1: "I1A",
pin2: "I2A",
pin3: "GND",
pin4: "I3A",
pin5: "I4A",
pin6: "I4B",
pin7: "I3B",
pin8: "GND2",
pin9: "I2B",
pin10: "I1B",
} as const
const esdAttributes = {
pin3: { requiresGround: true },
pin8: { requiresGround: true },
} as const
const fpcLabels = {
pin1: "GND1",
pin2: "HPD",
pin3: "SDA",
pin4: "GND2",
pin5: "SCL",
pin6: "CEC",
pin7: "V5A",
pin8: "V5B",
pin9: "GND3",
pin10: "CKN",
pin11: "CKP",
pin12: "GND4",
pin13: "D0N",
pin14: "D0P",
pin15: "GND5",
pin16: "D1N",
pin17: "D1P",
pin18: "GND6",
pin19: "D2N",
pin20: "D2P",
pin21: "SH1",
pin22: "SH2",
} as const
export default () => (
<board width="40mm" height="30mm" layers={4} title="HDMI input breakout">
<schematicsheet name="SHEET_TMDS" displayName="TMDS pairs and ESD" sheetIndex={0} />
<schematicsheet name="SHEET_CTRL" displayName="DDC, HPD, power, test points" sheetIndex={1} />
<schematicsection name="TMDS" displayName="TMDS pairs" />
<schematicsection name="CTRL" displayName="DDC / HPD / power" />
{/* HDMI type A receptacle, right angle, mouth over the top edge */}
<HC_HDMI0019T_4
name="J1"
pcbX={0}
pcbY={6.97}
pcbRotation={180}
allowOffBoard
schSheetName="SHEET_TMDS" schSectionName="TMDS"
schX={-12}
schY={4}
/>
{/* 0.5 mm 20 pin FPC, cable opens over the bottom edge */}
<AFC07_S20FCA_00
name="J2"
pinLabels={fpcLabels}
pcbX={0}
pcbY={-11.225}
pcbRotation={0}
allowOffBoard
schSheetName="SHEET_TMDS" schSectionName="TMDS"
schX={12}
schY={4}
/>
{/* TMDS ESD: two 4 channel arrays, one per pair of pairs.
Each array sits on the five signal columns of its group so the trace
runs in one side and out the other, no stub. */}
<RCLAMP0524P
name="U1"
pinLabels={esdLabels}
pinAttributes={esdAttributes}
pcbX={0.75}
pcbY={-1.5}
schSheetName="SHEET_TMDS" schSectionName="TMDS"
schX={2.44}
schY={4}
/>
<RCLAMP0524P
name="U2"
pinLabels={esdLabels}
pinAttributes={esdAttributes}
pcbX={3.75}
pcbY={-3.5}
schSheetName="SHEET_TMDS" schSectionName="TMDS"
schX={-2.42}
schY={4}
/>
{/* ESD on HPD, SDA, SCL and CEC */}
<RCLAMP0524P
name="U3"
pinLabels={esdLabels}
pinAttributes={esdAttributes}
pcbX={-6.25}
pcbY={-3.6}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schX={-11.15}
schY={-1}
/>
{/* EDID EEPROM */}
<AT24C02CM5_TR
name="U4"
pcbX={-10.5}
pcbY={-1.6}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schX={-7}
schY={-1}
/>
{/* HDMI 5 V input protection.
JK-nSMD050-30: 0.5 A hold, 1 A trip, 30 V, 1206. A 0.2 A hold part would
trip below the 0.5 A that HDMI allows a source to deliver, so the fuse is
sized to pass the full HDMI allowance and still protect the port. */}
<JK_nSMD050_30
name="F1"
currentRating="0.5A"
pcbX={-15.5}
pcbY={-1.6}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schRotation={90}
schX={-16.5}
schY={-1}
/>
{/* HPD pull-up to 5 V on the HDMI side, see the HPD pass-through section */}
<resistor
name="R3"
resistance="1k"
footprint="0402"
pcbX={-7.5}
pcbY={-7}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schRotation={-90}
schX={-9}
schY={-4.5}
/>
{/* DDC pull-ups */}
<resistor
name="R1"
resistance="2.2k"
footprint="0402"
pcbX={-12}
pcbY={-5}
pcbRotation={180}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schRotation={90}
schX={-9.5}
schY={1.6}
/>
<resistor
name="R2"
resistance="2.2k"
footprint="0402"
pcbX={-14}
pcbY={-5}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schRotation={90}
schX={-7.5}
schY={0.6}
/>
{/* CEC pull-down */}
<resistor
name="R5"
resistance="27k"
footprint="0402"
pcbX={0.5}
pcbY={-7}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schRotation={-90}
schX={-13.91}
schY={-1.6}
/>
{/* 5 V decoupling */}
<capacitor
name="C1"
capacitance="100nF"
footprint="0402"
pcbX={-16}
pcbY={-5}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schRotation={-90}
schX={-4.4}
schY={0.4}
/>
<capacitor
name="C2"
capacitance="1uF"
footprint="0402"
pcbX={-18}
pcbY={-5}
schSheetName="SHEET_CTRL" schSectionName="CTRL"
schRotation={-90}
schX={-3.2}
schY={0.4}
/>
<silkscreentext text="HDMI IN" pcbX={0} pcbY={1.9} fontSize="0.9mm" anchorAlignment="center" />
<silkscreentext text="FPC 20P 0.5mm" pcbX={0} pcbY={-8.3} fontSize="0.8mm" anchorAlignment="center" />
<silkscreentext text="J1 pin 1" pcbX={-4.5} pcbY={-1.2} fontSize="0.7mm" anchorAlignment="center" />
<silkscreentext text="J2 pin 1" pcbX={-7.5} pcbY={-10.0} fontSize="0.7mm" anchorAlignment="center" />
{/* Mounting: 4 x 2.2 mm non-plated holes for M2 screws, 35 x 25 mm pattern,
clear of both connector courtyards. */}
<hole name="MH1" diameter="2.2mm" pcbX={-17.5} pcbY={12.5} />
<hole name="MH2" diameter="2.2mm" pcbX={17.5} pcbY={12.5} />
<hole name="MH3" diameter="2.2mm" pcbX={-17.5} pcbY={-12.5} />
<hole name="MH4" diameter="2.2mm" pcbX={17.5} pcbY={-12.5} />
{/* Power rails. V5 carries the HDMI 5 V that the FPC host draws, up to the
0.5 A fuse hold current. IPC-2221 external, 1 oz, 10 C rise needs
A = (0.5 / (0.048 * 10^0.44))^(1/0.725) = 6.26 mil^2, i.e. 0.115 mm;
0.5 mm leaves a large margin and keeps the fuse drop low. */}
<net name="V5" isPowerNet nominalTraceWidth="0.5mm" />
<net name="GND" isGroundNet nominalTraceWidth="0.4mm" />
{/* GND reference plane on an inner layer */}
<copperpour
connectsTo="net.GND"
layer="inner1"
clearance="0.1mm"
boardEdgeMargin="0.3mm"
/>
{/* TMDS: one named 2 port trace per line for the length matched run.
Each line is tied to both pads of its ESD channel. */}
<trace name="TMDS_CKP" from="J1.TMDSClock_POS" to="J2.CKP" width="0.15mm" />
<trace from="U1.I2A" to="J2.CKP" width="0.15mm" />
<trace from="U1.I2B" to="J2.CKP" width="0.15mm" />
<trace name="TMDS_CKN" from="J1.TMDSClock_NEG" to="J2.CKN" width="0.15mm" />
<trace from="U1.I1A" to="J2.CKN" width="0.15mm" />
<trace from="U1.I1B" to="J2.CKN" width="0.15mm" />
<trace name="TMDS_D0P" from="J1.TMDSData0_POS" to="J2.D0P" width="0.15mm" />
<trace from="U1.I4A" to="J2.D0P" width="0.15mm" />
<trace from="U1.I4B" to="J2.D0P" width="0.15mm" />
<trace name="TMDS_D0N" from="J1.TMDSData0_NEG" to="J2.D0N" width="0.15mm" />
<trace from="U1.I3A" to="J2.D0N" width="0.15mm" />
<trace from="U1.I3B" to="J2.D0N" width="0.15mm" />
<trace name="TMDS_D1P" from="J1.TMDSData1_POS" to="J2.D1P" width="0.15mm" />
<trace from="U2.I2A" to="J2.D1P" width="0.15mm" />
<trace from="U2.I2B" to="J2.D1P" width="0.15mm" />
<trace name="TMDS_D1N" from="J1.TMDSData1_NEG" to="J2.D1N" width="0.15mm" />
<trace from="U2.I1A" to="J2.D1N" width="0.15mm" />
<trace from="U2.I1B" to="J2.D1N" width="0.15mm" />
<trace name="TMDS_D2P" from="J1.TMDSData2_POS" to="J2.D2P" width="0.15mm" />
<trace from="U2.I4A" to="J2.D2P" width="0.15mm" />
<trace from="U2.I4B" to="J2.D2P" width="0.15mm" />
<trace name="TMDS_D2N" from="J1.TMDSData2_NEG" to="J2.D2N" width="0.15mm" />
<trace from="U2.I3A" to="J2.D2N" width="0.15mm" />
<trace from="U2.I3B" to="J2.D2N" width="0.15mm" />
{/* Length matching, one bus per TMDS pair. maxLength="28mm" is always true here
(the longest line measures 26.09 mm) and is present only to select the newer
geometry based routing constraint check in @tscircuit/checks. Without it the
legacy checkPcbBusLengthSkew sums pcb_traces per source_trace_id and reports a
false 6.42 mm skew on TMDS_D2. See ISSUES.md A4 and B1/B2.
Measured pair skew of the shipped build: 0.433 / 0.475 / 0.000 / 0.000 mm. */}
<bus name="TMDS_D2" connections={["J1.TMDSData2_POS", "J1.TMDSData2_NEG"]} pcbTraceWidth="0.15mm" maxLength="28mm" maxLengthSkew="0.5mm" />
<bus name="TMDS_D1" connections={["J1.TMDSData1_POS", "J1.TMDSData1_NEG"]} pcbTraceWidth="0.15mm" maxLength="28mm" maxLengthSkew="0.5mm" />
<bus name="TMDS_D0" connections={["J1.TMDSData0_POS", "J1.TMDSData0_NEG"]} pcbTraceWidth="0.15mm" maxLength="28mm" maxLengthSkew="0.5mm" />
<bus name="TMDS_CK" connections={["J1.TMDSClock_POS", "J1.TMDSClock_NEG"]} pcbTraceWidth="0.15mm" maxLength="28mm" maxLengthSkew="0.5mm" />
{/* shields, shell and grounds */}
<trace from="J1.TMDSData2Shield" to="net.GND" />
<trace from="J1.TMDSData1Shield" to="net.GND" />
<trace from="J1.TMDSData0Shield" to="net.GND" />
<trace from="J1.TMDSClockShield" to="net.GND" />
<trace from="J1.DDC" to="net.GND" />
<trace from="J1.EH1" to="net.GND" />
<trace from="J1.EH2" to="net.GND" />
<trace from="J2.GND1" to="net.GND" />
<trace from="J2.GND2" to="net.GND" />
<trace from="J2.GND3" to="net.GND" />
<trace from="J2.GND4" to="net.GND" />
<trace from="J2.GND5" to="net.GND" />
<trace from="J2.GND6" to="net.GND" />
<trace from="J2.SH1" to="net.GND" />
<trace from="J2.SH2" to="net.GND" />
<trace from="U1.GND" to="net.GND" />
<trace from="U1.GND2" to="net.GND" />
<trace from="U2.GND" to="net.GND" />
<trace from="U2.GND2" to="net.GND" />
<trace from="U3.GND" to="net.GND" />
<trace from="U3.GND2" to="net.GND" />
<trace from="U4.GND" to="net.GND" />
<trace from="U4.WP" to="net.GND" />
<trace from="C1.pin2" to="net.GND" />
<trace from="C2.pin2" to="net.GND" />
<trace from="R5.pin2" to="net.GND" />
{/* 5 V from the source, through the polyfuse */}
<trace from="J1.5VPower_POS" to="F1.pin1" />
<trace from="F1.pin2" to="net.V5" />
<trace from="U4.VCC" to="net.V5" />
<trace from="C1.pin1" to="net.V5" />
<trace from="C2.pin1" to="net.V5" />
<trace from="R3.pin1" to="net.V5" />
<trace from="R1.pin2" to="net.V5" />
<trace from="R2.pin2" to="net.V5" />
<trace from="J2.V5A" to="net.V5" />
<trace from="J2.V5B" to="net.V5" />
{/* DDC I2C with pull-ups, through the control ESD array.
J1 and J2 both join net.DDC_SCL / net.DDC_SDA. A plain
J1.SCL -> J2.SCL trace would leave the EEPROM and pull-up on a
separate net, which is the bug fixed on 2026-12-02 (REVIEW.md B1). */}
<trace from="J1.SCL" to="net.DDC_SCL" />
<trace from="J2.SCL" to="net.DDC_SCL" />
<trace from="U3.I3A" to="net.DDC_SCL" />
<trace from="U3.I3B" to="net.DDC_SCL" />
<trace from="U4.SCL" to="net.DDC_SCL" />
<trace from="R1.pin1" to="net.DDC_SCL" />
<trace from="J1.SDA" to="net.DDC_SDA" />
<trace from="J2.SDA" to="net.DDC_SDA" />
<trace from="U3.I2A" to="net.DDC_SDA" />
<trace from="U3.I2B" to="net.DDC_SDA" />
<trace from="U4.SDA" to="net.DDC_SDA" />
<trace from="R2.pin1" to="net.DDC_SDA" />
{/* HPD pass-through.
HPD is an active-high, source-pulled-up line: the sink asserts it by
releasing it (high) and de-asserts it by sinking it low. The previous NPN
inverter (Q1 + R4) inverted that meaning and its base floated when the
FPC pin was high-Z, so it is replaced by a direct, non-inverting path:
5 V pull-up R3 on the HDMI side, straight to the FPC pin.
The FPC host HPD pin must therefore be 5 V tolerant, which is normal for
HDMI sink logic. A 100 Ohm series resistor was designed in but dropped:
any part placed in this bottom-left channel makes the length matcher fail
(see REVIEW.md B2 and ISSUES.md A5). */}
<trace from="J1.HotPlugDetect" to="net.HPD_LINE" />
<trace from="U3.I1A" to="net.HPD_LINE" />
<trace from="U3.I1B" to="net.HPD_LINE" />
<trace from="R3.pin2" to="net.HPD_LINE" />
<trace from="J2.HPD" to="net.HPD_LINE" />
{/* CEC, same net join as DDC (REVIEW.md B1) */}
<trace from="J1.CEC" to="net.CEC" />
<trace from="J2.CEC" to="net.CEC" />
<trace from="U3.I4A" to="net.CEC" />
<trace from="U3.I4B" to="net.CEC" />
<trace from="R5.pin1" to="net.CEC" />
</board>
)