You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
04 - Templates (II), notes, American standards, daisy chaining (I)
Overriding template parameters
Add nodes to connectors and cables
American standards: AWG gauge and IEC colors
Linear daisy-chain
Convenient for shorter chains
connectors:
X1: &template_conpinlabels: [GND, VCC, SCL, SDA]type: Molex KK 254subtype: malenotes: to microcontroller # add notesX2:
<<: *template_con # use templatesubtype: female # but override certain parametersnotes: to accelerometerX3:
<<: *template_consubtype: femalenotes: to temperature sensorcables:
W1: &template_cblwirecount: 4length: 0.3gauge: 24 AWG # specify gauge in AWG directlycolor_code: IEC # IEC 62 colors also supportednotes: This cable is a bit longerW2:
<<: *template_cbllength: 0.1notes: This cable is a bit shorterconnections:
-
- X1: [1-4]
- W1: [1-4]
- X2: [1-4]
- # daisy chain connectors (in line)
- X2: [1-4]
- W2: [1-4]
- X3: [1-4]
Only provided fields will be added to the diagram and bom
Bundles can have part information specified by wire
Additional parts can be added to components or just to the bom
quantities of additional components can be multiplied by features from parent connector or cable
options:
mini_bom_mode: falseconnectors:
X1: &template1 # define a template for later usetype: Molex KK 254pincount: 4subtype: femalemanufacturer: '<a href="https://www.molex.com/">Molex</a>'# set manufacter namempn: '<a href="https://www.molex.com/molex/products/part-detail/crimp_housings/0022013047">22013047</a>'# set manufacturer part numbersupplier: Digimousespn: 1234# add a list of additional components to a part (shown in graph)additional_components:
-
type: Crimp # short identifier used in graphsubtype: Molex KK 254, 22-30 AWG # extra information added to type in bomqty_multiplier: populated # multipier for quantity (number of populated pins)manufacturer: Molex # set manufacter namempn: 08500030# set manufacturer part number
-
type: Testqty: 1pn: ABCmanufacturer: Molexmpn: 45454supplier: Mousikeyspn: 9999X2:
<<: *template1 # reuse templatepn: CON4 # set an internal part number for just this connectorX3:
<<: *template1 # reuse templatecables:
W1:
wirecount: 4length: 1gauge: 0.25 mm2color_code: IECmanufacturer: CablesCompn: ABC123supplier: Cables R Usspn: 999-888-777pn: CAB1W2:
category: bundlelength: 1gauge: 0.25 mm2colors: [YE, BK, BK, RD]manufacturer: [WiresCo,WiresCo,WiresCo,WiresCo] # set a manufacter per wirempn: [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 graphsubtype: Braided nylon, black, 3mm # extra information added to type in bomqty_multiplier: length # multipier for quantity (length of cable)unit: mpn: SLV-1connections:
-
- X1: [1-4]
- W1: [1-4]
- X2: [1-4]
-
- X1: [1-4]
- W2: [1-4]
- X3: [1-4]additional_bom_items:
- # define an additional item to add to the bill of materials (does not appear in graph)description: Label, pinout informationqty: 2designators:
- X2
- X3manufacturer: '<a href="https://www.bradyid.com">Brady</a>'mpn: '<a href="https://www.bradyid.com/wire-cable-labels/bmp71-bmp61-m611-tls-2200-nylon-cloth-wire-general-id-labels-cps-2958789">B-499</a>'pn: Label-ID-1