Skip to content
WireVizDocsOpen editor
Examples

Connector pinout with named pins

Use explicit connector pin IDs and descriptive wiring labels.

Connector pinout with named pins rendered with WireViz, showing the connectors, wires and pin assignments
Generated directly from the example YAML with WireViz 0.4.1.

Purpose

Represent connectors whose physical positions have letter IDs instead of sequential numbers. The labels and pinout in this adapter are illustrative.

Components

  • SOURCE has pin IDs A, B, and C.
  • DESTINATION has pin IDs P, R, and S.
  • The three entries in W1.colors establish its conductor count. The cable uses 0.25 mm² wire and a length of 30 centimeters.

Wiring

The source connection uses its unique pin labels: supply, return, and signal. The cable connection uses its unique wire labels. The destination uses explicit pin IDs. WireViz resolves these references to A→P, B→R, and C→S through conductors 1, 2, and 3.

What to change

Replace the pin IDs with the markings on your connector and keep connection references consistent. Labels used as references must be unique within their component. Quote IDs such as "ON" or "01" when they must stay strings in YAML.

Generated bill of materials

Id Description Qty Unit Designators
1 Cable, 3 x 0.25 mm² 30 cm W1
2 Connector, Three-position destination connector, 3 pins 1 DESTINATION
3 Connector, Three-position source connector, 3 pins 1 SOURCE

YAML source

named-pins.yml
metadata:
  title: Adapter with named pin IDs
  description: Illustrative named-pin example, not a certified electrical design.

connectors:
  SOURCE:
    type: Three-position source connector
    pins: [A, B, C]
    pinlabels: [supply, return, signal]
    pincolors: [RD, BK, YE]
  DESTINATION:
    type: Three-position destination connector
    pins: [P, R, S]
    pinlabels: [supply, return, signal]

cables:
  W1:
    colors: [RD, BK, YE]
    wirelabels: [feed, return_wire, data]
    gauge: 0.25 mm2
    length: 30 cm

connections:
  - - SOURCE: [supply, return, signal]
    - W1: [feed, return_wire, data]
    - DESTINATION: [P, R, S]