Skip to content

Instantly share code, notes, and snippets.

@waylan
Last active January 22, 2026 14:09
Show Gist options
  • Select an option

  • Save waylan/f4192b4cf2cf3607c8afef02550a1ef9 to your computer and use it in GitHub Desktop.

Select an option

Save waylan/f4192b4cf2cf3607c8afef02550a1ef9 to your computer and use it in GitHub Desktop.
Wire diagrams using WireViz: https://github.com/wireviz/WireViz
connectors:
PL:
type: PHX
pinlabels: [E, C, H]
pins: [3, 2, 1]
PR:
type: PHX
pinlabels: [H, C, E]
pins: [1, 2, 3]
XRF:
type: XLR
subtype: female
pinlabels: [E, C, H]
pins: [1, 3, 2]
XRM:
type: XLR
subtype: male
pinlabels: [H, C, E]
pins: [2, 3, 1]
XLF:
type: XLR
subtype: female
pinlabels: [H, C, E]
pins: [2, 3, 1]
XLM:
type: XLR
subtype: male
pinlabels: [E, C, H]
pins: [1, 3, 2]
cables:
W:
type: "Microphone Cable"
gauge: 22 AWG
wirecount: 2
shield: true
colors: [RD, BK]
manufacturer: "WEST PENN WIRE CDT"
mpn: 291-GY
pn: LDC00000964
notes: "stranded, twisted pair, foil shield, PVC jacket, gray"
connections:
-
- PL.: [E, C, H]
- W.: [s, 2, 1]
- XRM.: [E, C, H]
-
- PL.: [E, C, H]
- W.: [s, 2, 1]
- XRF.: [E, C, H]
-
- XLM.: [H, C, E]
- W.: [1, 2, s]
- PR.: [H, C, E]
-
- XLF.: [H, C, E]
- W.: [1, 2, s]
- PR.: [H, C, E]
@waylan
Copy link
Author

waylan commented Jan 21, 2026

Command:

uv run --with wireviz wireviz mic.yml

Output:

mic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment