-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcon-jst-xh.lbr
265 lines (253 loc) · 13.9 KB
/
con-jst-xh.lbr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.6.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.05" unitdist="inch" unit="inch" style="lines" multiple="1" display="yes" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="yes" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="28" name="bValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="yes" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="yes" active="yes"/>
<layer number="31" name="tCream" color="7" fill="4" visible="yes" active="yes"/>
<layer number="32" name="bCream" color="7" fill="5" visible="yes" active="yes"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="yes" active="yes"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="yes" active="yes"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="yes" active="yes"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="yes" active="yes"/>
<layer number="37" name="tTest" color="7" fill="1" visible="yes" active="yes"/>
<layer number="38" name="bTest" color="7" fill="1" visible="yes" active="yes"/>
<layer number="39" name="tKeepout" color="4" fill="11" visible="yes" active="yes"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="yes" active="yes"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="yes" active="yes"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="yes" active="yes"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="yes" active="yes"/>
<layer number="44" name="Drills" color="7" fill="1" visible="yes" active="yes"/>
<layer number="45" name="Holes" color="7" fill="1" visible="yes" active="yes"/>
<layer number="46" name="Milling" color="3" fill="1" visible="yes" active="yes"/>
<layer number="47" name="Measures" color="7" fill="1" visible="yes" active="yes"/>
<layer number="48" name="Document" color="7" fill="1" visible="yes" active="yes"/>
<layer number="49" name="Reference" color="7" fill="1" visible="yes" active="yes"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="yes" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
</layers>
<library>
<description>JST-XH headers. Edited 4.10.15 dmf <br>
2 pin, 3 pin, 4 pin all should be OK<br>
<br>
Original version (wrong hole sizes) from this fellow: <blockquote>This libary is for adding JST-XH headers to you're project. It has pins 3-7.
This is usefull for ballance connectors on lithium polymer batteries from 2-6 cells.
The pin spacing was based on the datasheet that can be found here
http://www.jst-mfg.com/product/pdf/eng/eXH.pdf</blockquote></description>
<packages>
<package name="4_PIN_JST-XH">
<description>Corrected for XH 4 pin <br>
dmf 4.10.15 <br>
Source info: http://www.jst-mfg.com/product/pdf/eng/eXH.pdf <br>
Note: pin spacing is 2.5 mm <br>
Note: pins are 0.64 mm <b>square</b> cross section. This means the pin diagonal is 0.905 mm.<br>
Hole diameter spec'd by jst is 0.9 mm; hole diameter used here is 1.0 mm<br></description>
<pad name="P$1" x="2.45" y="3.4" drill="1" shape="long" rot="R90"/>
<pad name="P$2" x="4.95" y="3.4" drill="1" shape="long" rot="R90"/>
<pad name="P$3" x="7.45" y="3.4" drill="1" shape="long" rot="R90"/>
<pad name="P$4" x="9.95" y="3.4" drill="1" shape="long" rot="R90"/>
<wire x1="0" y1="0" x2="12.4" y2="0" width="0.127" layer="21"/>
<wire x1="12.4" y1="0" x2="12.4" y2="4" width="0.127" layer="21"/>
<wire x1="12.4" y1="4" x2="12.4" y2="5.75" width="0.127" layer="21"/>
<wire x1="12.4" y1="5.75" x2="2.45" y2="5.75" width="0.127" layer="21"/>
<wire x1="2.45" y1="5.75" x2="0" y2="5.75" width="0.127" layer="21"/>
<wire x1="0" y1="5.75" x2="0" y2="0" width="0.127" layer="21"/>
<text x="5.9" y="0.25" size="0.6096" layer="21">XH</text>
<wire x1="0.05" y1="4" x2="0.55" y2="4" width="0.127" layer="21"/>
<wire x1="12.4" y1="4" x2="11.85" y2="4" width="0.127" layer="21"/>
<wire x1="2.45" y1="5.75" x2="2.45" y2="5.3" width="0.127" layer="21"/>
<wire x1="9.95" y1="5.7" x2="9.95" y2="5.3" width="0.127" layer="21"/>
</package>
<package name="3_PIN_JST-XH">
<description>Corrected for XH 3 pin <br>
dmf 4.10.15 <br>
Source info: http://www.jst-mfg.com/product/pdf/eng/eXH.pdf <br>
Note: pin spacing is 2.5 mm <br>
Note: pins are 0.64 mm <b>square</b> cross section. This means the pin diagonal is 0.905 mm.<br>
Hole diameter spec'd by jst is 0.9 mm; hole diameter used here is 1.0 mm<br></description>
<wire x1="-1.27" y1="-1.27" x2="8.63" y2="-1.27" width="0.127" layer="21"/>
<wire x1="8.63" y1="-1.27" x2="8.63" y2="4.48" width="0.127" layer="21"/>
<wire x1="8.63" y1="4.48" x2="6.18" y2="4.48" width="0.127" layer="21"/>
<wire x1="6.18" y1="4.48" x2="1.18" y2="4.48" width="0.127" layer="21"/>
<wire x1="1.18" y1="4.48" x2="-1.27" y2="4.48" width="0.127" layer="21"/>
<wire x1="-1.27" y1="4.48" x2="-1.27" y2="2.68" width="0.127" layer="21"/>
<pad name="P$1" x="1.18" y="2.13" drill="1" shape="long" rot="R90"/>
<pad name="P$2" x="3.68" y="2.13" drill="1" shape="long" rot="R90"/>
<pad name="P$3" x="6.18" y="2.13" drill="1" shape="long" rot="R90"/>
<wire x1="-1.27" y1="2.68" x2="-1.27" y2="-1.27" width="0.127" layer="21"/>
<wire x1="1.18" y1="4.48" x2="1.18" y2="4.03" width="0.127" layer="21"/>
<wire x1="6.18" y1="4.48" x2="6.18" y2="4.03" width="0.127" layer="21"/>
<wire x1="-1.27" y1="2.68" x2="-0.77" y2="2.68" width="0.127" layer="21"/>
<wire x1="8.08" y1="2.68" x2="8.58" y2="2.68" width="0.127" layer="21"/>
<text x="3.28" y="-0.95" size="0.6096" layer="21">XH</text>
</package>
<package name="2_PIN_JST-XH">
<description>Corrected for XH 2 pin <br>
dmf 4.10.15 <br>
Source info: <a href="http://www.jst-mfg.com/product/pdf/eng/eXH.pdf">www.jst-mfg.com</a> <br>
Note: pin spacing is 2.5 mm <br>
Note: pins are 0.64 mm <b>square</b> cross section. This means the pin diagonal is 0.905 mm.<br>
Hole diameter spec'd by jst is 0.9 mm; hole diameter used here is 1.0 mm<br></description>
<wire x1="-1.27" y1="-1.27" x2="6.13" y2="-1.27" width="0.127" layer="21"/>
<wire x1="6.13" y1="-1.27" x2="6.13" y2="4.48" width="0.127" layer="21"/>
<wire x1="6.13" y1="4.48" x2="3.67" y2="4.48" width="0.127" layer="21"/>
<wire x1="3.67" y1="4.48" x2="1.18" y2="4.48" width="0.127" layer="21"/>
<wire x1="1.18" y1="4.48" x2="-1.27" y2="4.48" width="0.127" layer="21"/>
<wire x1="-1.27" y1="4.48" x2="-1.27" y2="2.68" width="0.127" layer="21"/>
<pad name="P$1" x="1.18" y="2.13" drill="1" shape="long" rot="R90"/>
<pad name="P$2" x="3.68" y="2.13" drill="1" shape="long" rot="R90"/>
<wire x1="-1.27" y1="2.68" x2="-1.27" y2="-1.27" width="0.127" layer="21"/>
<wire x1="1.18" y1="4.48" x2="1.18" y2="4.03" width="0.127" layer="21"/>
<wire x1="-1.27" y1="2.68" x2="-0.77" y2="2.68" width="0.127" layer="21"/>
<wire x1="5.59" y1="2.68" x2="6.09" y2="2.68" width="0.127" layer="21"/>
<wire x1="3.67" y1="4.48" x2="3.67" y2="4.03" width="0.127" layer="21"/>
<text x="1.93" y="-0.97" size="0.6096" layer="21">XH</text>
</package>
</packages>
<symbols>
<symbol name="4_PIN_JST-XH">
<wire x1="0" y1="5" x2="2.5" y2="5" width="0.254" layer="94"/>
<wire x1="10" y1="5" x2="12.5" y2="5" width="0.254" layer="94"/>
<wire x1="12.5" y1="5" x2="12.5" y2="12.5" width="0.254" layer="94"/>
<wire x1="12.5" y1="12.5" x2="0" y2="12.5" width="0.254" layer="94"/>
<wire x1="0" y1="12.5" x2="0" y2="5" width="0.254" layer="94"/>
<wire x1="2.5" y1="7.5" x2="2.5" y2="5" width="0.254" layer="94"/>
<wire x1="2.5" y1="5" x2="10" y2="5" width="0.254" layer="94"/>
<wire x1="10" y1="5" x2="10" y2="7.5" width="0.254" layer="94"/>
<pin name="P$1" x="2.54" y="0" length="middle" rot="R90"/>
<pin name="P$2" x="5.08" y="0" length="middle" rot="R90"/>
<pin name="P$3" x="7.62" y="0" length="middle" rot="R90"/>
<pin name="P$4" x="10.16" y="0" length="middle" rot="R90"/>
</symbol>
<symbol name="3_PIN_JST-XH">
<wire x1="-5.08" y1="-5.16" x2="-2.58" y2="-5.16" width="0.254" layer="94"/>
<wire x1="-2.58" y1="-5.16" x2="2.42" y2="-5.16" width="0.254" layer="94"/>
<wire x1="2.42" y1="-5.16" x2="4.92" y2="-5.16" width="0.254" layer="94"/>
<wire x1="4.92" y1="-5.16" x2="4.92" y2="2.34" width="0.254" layer="94"/>
<wire x1="4.92" y1="2.34" x2="-5.08" y2="2.34" width="0.254" layer="94"/>
<wire x1="-5.08" y1="2.34" x2="-5.08" y2="-5.16" width="0.254" layer="94"/>
<wire x1="-2.58" y1="-5.16" x2="-2.58" y2="-2.66" width="0.254" layer="94"/>
<wire x1="2.42" y1="-5.16" x2="2.42" y2="-2.66" width="0.254" layer="94"/>
<pin name="P$1" x="-2.54" y="-10.16" visible="off" length="middle" rot="R90"/>
<pin name="P$2" x="0" y="-10.16" visible="off" length="middle" rot="R90"/>
<pin name="P$3" x="2.54" y="-10.16" visible="off" length="middle" rot="R90"/>
<circle x="-3.8862" y="-3.8608" radius="0.1295125" width="0.254" layer="94"/>
<text x="7.5692" y="-6.3754" size="1.778" layer="94" rot="R90">>VALUE</text>
<text x="-5.9436" y="-5.8166" size="1.778" layer="94" rot="R90">>NAME</text>
</symbol>
<symbol name="2_PIN_JST-XH">
<wire x1="-5.08" y1="-2.62" x2="-2.58" y2="-2.62" width="0.254" layer="94"/>
<wire x1="-2.58" y1="-2.62" x2="2.38" y2="-2.62" width="0.254" layer="94"/>
<wire x1="2.38" y1="-2.62" x2="2.38" y2="4.88" width="0.254" layer="94"/>
<wire x1="2.38" y1="4.88" x2="-5.08" y2="4.88" width="0.254" layer="94"/>
<wire x1="-5.08" y1="4.88" x2="-5.08" y2="-2.62" width="0.254" layer="94"/>
<wire x1="-2.58" y1="-2.62" x2="-2.58" y2="-0.12" width="0.254" layer="94"/>
<pin name="P$1" x="-2.54" y="-7.62" visible="off" length="middle" rot="R90"/>
<pin name="P$2" x="0" y="-7.62" visible="off" length="middle" rot="R90"/>
<circle x="-3.8354" y="-1.2192" radius="0.1295125" width="0.254" layer="94"/>
<text x="-5.715" y="-3.3274" size="1.778" layer="94" rot="R90">>NAME</text>
<text x="4.953" y="-4.1402" size="1.778" layer="94" rot="R90">>VALUE</text>
</symbol>
</symbols>
<devicesets>
<deviceset name="4_PIN_JST-XH">
<description>Corrected for XH 4 pin <br>
dmf 4.10.15 <br>
Source info: http://www.jst-mfg.com/product/pdf/eng/eXH.pdf <br>
Note: pin spacing is 2.5 mm <br>
Note: pins are 0.64 mm <b>square</b> cross section. This means the pin diagonal is 0.905 mm.<br>
Hole diameter spec'd by jst is 0.9 mm; hole diameter used here is 1.0 mm<br></description>
<gates>
<gate name="G$1" symbol="4_PIN_JST-XH" x="0" y="-5.08"/>
</gates>
<devices>
<device name="" package="4_PIN_JST-XH">
<connects>
<connect gate="G$1" pin="P$1" pad="P$1"/>
<connect gate="G$1" pin="P$2" pad="P$2"/>
<connect gate="G$1" pin="P$3" pad="P$3"/>
<connect gate="G$1" pin="P$4" pad="P$4"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="3_PIN_JST-XH" prefix="X">
<description>Corrected for XH 3 pin <br>
dmf 4.10.15 <br>
Source info: http://www.jst-mfg.com/product/pdf/eng/eXH.pdf <br>
Note: pin spacing is 2.5 mm <br>
Note: pins are 0.64 mm <b>square</b> cross section. This means the pin diagonal is 0.905 mm.<br>
Hole diameter spec'd by jst is 0.9 mm; hole diameter used here is 1.0 mm<br></description>
<gates>
<gate name="G$1" symbol="3_PIN_JST-XH" x="0" y="-5.08"/>
</gates>
<devices>
<device name="" package="3_PIN_JST-XH">
<connects>
<connect gate="G$1" pin="P$1" pad="P$1"/>
<connect gate="G$1" pin="P$2" pad="P$2"/>
<connect gate="G$1" pin="P$3" pad="P$3"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="2_PIN_JST-XH" prefix="X">
<description>Corrected for XH 2 pin <br>
dmf 4.10.15 <br>
Source info: http://www.jst-mfg.com/product/pdf/eng/eXH.pdf <br>
Note: pin spacing is 2.5 mm <br>
Note: pins are 0.64 mm <b>square</b> cross section. This means the pin diagonal is 0.905 mm.<br>
Hole diameter spec'd by jst is 0.9 mm; hole diameter used here is 1.0 mm<br></description>
<gates>
<gate name="G$1" symbol="2_PIN_JST-XH" x="2.54" y="2.54"/>
</gates>
<devices>
<device name="" package="2_PIN_JST-XH">
<connects>
<connect gate="G$1" pin="P$1" pad="P$1"/>
<connect gate="G$1" pin="P$2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</drawing>
</eagle>