wireviz/tutorial/tutorial09.yml

114 lines
3.1 KiB
YAML
Raw Permalink Normal View History

2025-03-12 16:29:26 +01:00
connectors:
X1: &template1 # define a template for later use
type: Molex KK 254
pincount: 4
subtype: female
manufacturer: '<a href="https://www.molex.com/">Molex</a>' # set manufacter name
mpn: '<a href="https://www.molex.com/molex/products/part-detail/crimp_housings/0022013047">22013047</a>' # set manufacturer part number
supplier: Digimouse
spn: 1234
image:
src: MolexKK254.jpg
# add a list of additional components to a part (shown in graph)
additional_components:
- type: Crimp # short identifier used in graph
subtype: Molex KK 254, 22-30 AWG # extra information added to type in bom
qty_multiplier: populated # multipier for quantity (number of populated pins)
manufacturer: Molex # set manufacter name
mpn: 08500030 # set manufacturer part number
- type: Test
qty: 1
pn: ABC
manufacturer: Molex
mpn: 45454
supplier: Mousikey
spn: 9999
X2:
<<: *template1 # reuse template
pn: CON4 # set an internal part number for just this connector
subtype: male
image:
src: MolexKK254MALE.jpg
X3:
<<: *template1 # reuse template
subtype: male
image:
src: MolexKK254MALE.jpg
cables:
W1:
wirecount: 4
# length: 1
# gauge: 0.25 mm2
# color_code: IEC
# manufacturer: CablesCo
# mpn: ABC123
# supplier: Cables R Us
# spn: 999-888-777
# pn: CAB1
#############
show_name: false
show_wirecount: false
show_wirenumbers: false
#############
W2:
category: bundle
length: 1
gauge: 0.25 mm2
colors: [YE, BK, BK, RD]
manufacturer: [WiresCo, WiresCo, WiresCo, WiresCo] # set a manufacter per wire
mpn: [W1-YE, W1-BK, W1-BK, W1-RD]
supplier: [WireShack, WireShack, WireShack, WireShack]
spn: [1001, 1002, 1002, 1009]
pn: [WIRE1, WIRE2, WIRE2, WIRE3]
# add a list of additional components to a part (shown in graph)
additional_components:
- type: Sleve # short identifier used in graph
subtype: Braided nylon, black, 3mm # extra information added to type in bom
qty_multiplier: length # multipier for quantity (length of cable)
unit: m
pn: SLV-1
connections:
- - X1: [1-4]
- W1: [1-4]
- X2: [1-4]
- - X1: [1-4]
- W2: [1-4]
- X3: [1-4]
#############
tweak:
override:
graph:
ranksep: "0.5" # Reduce the horizontal spacing (default 2)
wireTweak: &wireTweak
shape: none # Hide the surrounding frame
fontsize: "12" # Reduce the space needed for text
fontcolor: white # Same as background to hide the text
## W1 uses the gauge and length field, they can not be suppressed at the moment. There was an issue #221
W1:
<<: *wireTweak
###############
###### the din template, A4 format
metadata:
title: Power supplies
pn: PSU
authors:
Created:
name: Ton
date: 2025-03-11
Approved:
name: Ton
date: 2025-03-11
revisions:
A:
name: Ton
date: 2025-03-12
changelog: updates]
template:
name: din-6771
sheetsize: A4