Skip to content

Commit 9821ca3

Browse files
committed
Update demo02 to showcase more features
zzz
1 parent 37bf530 commit 9821ca3

File tree

1 file changed

+101
-44
lines changed

1 file changed

+101
-44
lines changed

examples/demo02.yml

Lines changed: 101 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,126 @@
1-
templates: # defining templates to be used later on
2-
- &molex_f
3-
type: Molex KK 254
4-
subtype: female
5-
- &con_i2c
6-
pinlabels: [GND, +5V, SCL, SDA]
7-
- &wire_i2c
8-
category: bundle
9-
gauge: 0.14 mm2
10-
colors: [BK, RD, YE, GN]
11-
121
connectors:
132
X1:
14-
<<: *molex_f # copying items from the template
15-
pinlabels: [GND, +5V, SCL, SDA, MISO, MOSI, SCK, N/C]
3+
type: KK 254
4+
pn: CON-245-8
5+
manufacturer: Molex
6+
mpn: '0022013087'
7+
subtype: female
8+
pincount: 8
9+
pinlabels: [Audio L, Audio R, Audio GND, N/C, I2C GND, I2C +5V, SCL, SDA]
10+
additional_parameters:
11+
Sleeving removal: 20 mm
12+
Insulation removal: 2 mm
13+
additional_components:
14+
-
15+
type: Crimp
16+
pn: CRI-254
17+
manufacturer: Molex
18+
mpn: '008500032'
19+
qty_multiplier: populated
20+
-
21+
type: Label
22+
pn: LAB-444
23+
note: '"C745-X1"'
24+
notes: |
25+
- Attach to main PCB
26+
- Ensure proper contact
27+
- Clamp down cables after attaching
1628
X2:
17-
<<: *molex_f
18-
<<: *con_i2c # it is possible to copy from more than one template
29+
type: 3.5 mm
30+
subtype: jack
31+
color: BK
32+
pins: [T,R,S]
33+
show_pincount: false
34+
pinlabels: [L, R, GND]
35+
image:
36+
src: resources/stereo-phone-plug-TRS.png
37+
caption: Tip, Ring, and Sleeve
1938
X3:
20-
<<: *molex_f
21-
<<: *con_i2c
39+
type: KK 254
40+
subtype: female
41+
pinlabels: [VCC, GND, SCL, SDA]
42+
pincolors: [RD, BK, GN, BU]
2243
X4:
23-
<<: *molex_f
24-
pinlabels: [GND, +12V, MISO, MOSI, SCK]
25-
ferrule_crimp:
44+
type: D-Sub
45+
subtype: female
46+
pincount: 9
47+
pn: CON-D9-F
48+
pinlabels: [GND, +5V, SCL, SDA, N/C, +12V IN, GND, +12V OUT, GND]
49+
additional_components:
50+
-
51+
type: Casing, plastic
52+
pn: CAS-D9
53+
-
54+
type: Mounting screws, M3 x 8
55+
qty: 2
56+
F:
2657
style: simple
2758
autogenerate: true
2859
type: Crimp ferrule
29-
subtype: 0.25 mm²
30-
color: YE
60+
subtype: 0.5 mm²
61+
color: OG
3162

3263
cables:
3364
W1:
34-
<<: *wire_i2c
35-
length: 0.2
65+
wirecount: 3
66+
shield: true
67+
length: 0.5
68+
gauge: 0.25 mm2
3669
show_equiv: true
37-
W2:
38-
<<: *wire_i2c
39-
length: 0.4
70+
colors: [WH, RD, BK]
71+
color: GY
72+
additional_components:
73+
-
74+
type: Heatshrink D=5mm
75+
qty: 15
76+
unit: mm
77+
note: left
78+
-
79+
type: Heatshrink D=5mm
80+
qty: 25
81+
unit: mm
82+
note: right
83+
W2: &wire_i2c
84+
wirecount: 4
85+
length: 0.2
86+
gauge: 0.25 mm2
4087
show_equiv: true
88+
color_code: IEC
4189
W3:
90+
<<: *wire_i2c
91+
color_code: DIN
92+
W4: &wire_power
4293
category: bundle
43-
gauge: 0.14 mm2
44-
length: 0.3
45-
colors: [BK, BU, OG, VT]
46-
show_equiv: true
47-
W4:
48-
gauge: 0.25 mm2
49-
length: 0.3
50-
colors: [BK, RD]
94+
show_name: false
95+
wirecount: 2
96+
colors: [RD, BK]
97+
gauge: 0.5 mm2
5198
show_equiv: true
99+
length: 1.0
100+
additional_parameters:
101+
Twist rate: 10/m
102+
Twist direction: CCW
103+
W5:
104+
<<: *wire_power
52105

53106
connections:
54107
-
55-
- X1: [1-4]
56-
- W1: [1-4]
57-
- X2: [1-4]
108+
- X1: [Audio L, Audio R, Audio GND, Audio GND]
109+
- W1: [1-3,s]
110+
- X2: [T,R,S,S]
58111
-
59-
- X1: [1-4]
112+
- X1: [I2C GND, I2C +5V, SCL, SDA]
60113
- W2: [1-4]
61-
- X3: [1-4]
114+
- X3: [GND, VCC, SCL, SDA]
62115
-
63-
- X1: [1,5-7]
116+
- X1: [I2C GND, I2C +5V, SCL, SDA]
64117
- W3: [1-4]
65-
- X4: [1,3-5]
118+
- X4: [1,2,3,4]
66119
-
67-
- ferrule_crimp
120+
- F
68121
- W4: [1,2]
69-
- X4: [1,2]
122+
- X4: [6,7]
123+
-
124+
- X4: [8,9]
125+
- W5: [1,2]
126+
- F

0 commit comments

Comments
 (0)