Skip to content
WireVizDocsOpen editor
Examples

Four-conductor wire harness

Start with four conductors between a controller and a sensor.

Four-conductor wire harness rendered with WireViz, showing the connectors, wires and pin assignments
Generated directly from the example YAML with WireViz 0.4.1.

Purpose

This is a small starting point for a cable drawing: two connectors, one cable, and matching pin numbers. The dimensions and pinout are illustrative, not a certified electrical design.

Components

  • CONTROLLER and SENSOR each have four numbered positions.
  • W1 contains four 24 AWG conductors and is 0.5 meters long.
  • Red, black, yellow, and green distinguish the four conductors.

Wiring

The range 1-4 expands to pins 1, 2, 3, and 4. Each position on the controller connects through the matching wire number to the matching sensor position. Labels describe the signals; numbers identify the pins.

What to change

Start by changing the connector names, signal labels, or cable length. For a different pinout, reorder the final connector's pin list. Keep the three lists in each connection set the same length.

Generated bill of materials

Id Description Qty Unit Designators
1 Cable, 4 x 24 AWG 0.5 m W1
2 Connector, Four-position controller connector, 4 pins 1 CONTROLLER
3 Connector, Four-position sensor connector, 4 pins 1 SENSOR

YAML source

simple-harness.yml
metadata:
  title: Four-wire sensor harness
  description: Illustrative documentation example, not a certified electrical design.

connectors:
  CONTROLLER:
    type: Four-position controller connector
    pincount: 4
    pinlabels: [SUPPLY, RETURN, DATA, CLOCK]
  SENSOR:
    type: Four-position sensor connector
    pincount: 4
    pinlabels: [SUPPLY, RETURN, DATA, CLOCK]

cables:
  W1:
    wirecount: 4
    gauge: 24 AWG
    length: 0.5
    colors: [RD, BK, YE, GN]
    wirelabels: [SUPPLY, RETURN, DATA, CLOCK]

connections:
  - - CONTROLLER: [1-4]
    - W1: [1-4]
    - SENSOR: [1-4]