add barrier terminal
This commit is contained in:
parent
da67991d35
commit
3384d33139
|
@ -0,0 +1,45 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
# encoding: utf-8
|
||||||
|
# ruby: 3.0.1
|
||||||
|
|
||||||
|
# number of possible pins
|
||||||
|
variations = (2..10).to_a
|
||||||
|
|
||||||
|
puts "name: MX25C-7.62
|
||||||
|
description: barrier terminal, 7.62mm pitch
|
||||||
|
variations: #{variations.collect {|p| p.to_s + 'P'} * ', '}
|
||||||
|
datasheet: https://www.lcsc.com/product-detail/Barrier-Terminal-Blocks_MAX-MX25C-7-62-02P-BK01-Cu-S-A_C5188509.html
|
||||||
|
|
||||||
|
housing: &template
|
||||||
|
pattern: custom
|
||||||
|
height: 14.8
|
||||||
|
bodyLength: 13.3
|
||||||
|
leadHeight: 0.7
|
||||||
|
leadWidth: 1.1
|
||||||
|
leadLength: 4.0
|
||||||
|
holeDiameter: 1.7
|
||||||
|
pitch: 7.62
|
||||||
|
rowCount: 1
|
||||||
|
"
|
||||||
|
|
||||||
|
variations.each do |v|
|
||||||
|
v_pad = v.to_s.rjust(2,'0')
|
||||||
|
puts "
|
||||||
|
pinout@#{v}P: 1-#{v}
|
||||||
|
|
||||||
|
schematic@#{v}P:
|
||||||
|
suffix: -#{v_pad}P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-#{v}
|
||||||
|
|
||||||
|
housing@#{v}P:
|
||||||
|
suffix: -#{v_pad}P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: #{((v-1)*7.62+9.38).round(2)}
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-#{v_pad}P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: #{v}
|
||||||
|
"
|
||||||
|
end
|
|
@ -0,0 +1,168 @@
|
||||||
|
name: MX25C-7.62
|
||||||
|
description: barrier terminal, 7.62mm pitch
|
||||||
|
variations: 2P, 3P, 4P, 5P, 6P, 7P, 8P, 9P, 10P
|
||||||
|
datasheet: https://www.lcsc.com/product-detail/Barrier-Terminal-Blocks_MAX-MX25C-7-62-02P-BK01-Cu-S-A_C5188509.html
|
||||||
|
|
||||||
|
housing: &template
|
||||||
|
pattern: custom
|
||||||
|
height: 14.8
|
||||||
|
bodyLength: 13.3
|
||||||
|
leadHeight: 0.7
|
||||||
|
leadWidth: 1.1
|
||||||
|
leadLength: 4.0
|
||||||
|
holeDiameter: 1.7
|
||||||
|
pitch: 7.62
|
||||||
|
rowCount: 1
|
||||||
|
|
||||||
|
pinout@2P: 1-2
|
||||||
|
|
||||||
|
schematic@2P:
|
||||||
|
suffix: -02P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-2
|
||||||
|
|
||||||
|
housing@2P:
|
||||||
|
suffix: -02P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 17.0
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-02P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 2
|
||||||
|
|
||||||
|
pinout@3P: 1-3
|
||||||
|
|
||||||
|
schematic@3P:
|
||||||
|
suffix: -03P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-3
|
||||||
|
|
||||||
|
housing@3P:
|
||||||
|
suffix: -03P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 24.62
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-03P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 3
|
||||||
|
|
||||||
|
pinout@4P: 1-4
|
||||||
|
|
||||||
|
schematic@4P:
|
||||||
|
suffix: -04P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-4
|
||||||
|
|
||||||
|
housing@4P:
|
||||||
|
suffix: -04P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 32.24
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-04P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 4
|
||||||
|
|
||||||
|
pinout@5P: 1-5
|
||||||
|
|
||||||
|
schematic@5P:
|
||||||
|
suffix: -05P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-5
|
||||||
|
|
||||||
|
housing@5P:
|
||||||
|
suffix: -05P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 39.86
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-05P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 5
|
||||||
|
|
||||||
|
pinout@6P: 1-6
|
||||||
|
|
||||||
|
schematic@6P:
|
||||||
|
suffix: -06P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-6
|
||||||
|
|
||||||
|
housing@6P:
|
||||||
|
suffix: -06P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 47.48
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-06P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 6
|
||||||
|
|
||||||
|
pinout@7P: 1-7
|
||||||
|
|
||||||
|
schematic@7P:
|
||||||
|
suffix: -07P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-7
|
||||||
|
|
||||||
|
housing@7P:
|
||||||
|
suffix: -07P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 55.1
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-07P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 7
|
||||||
|
|
||||||
|
pinout@8P: 1-8
|
||||||
|
|
||||||
|
schematic@8P:
|
||||||
|
suffix: -08P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-8
|
||||||
|
|
||||||
|
housing@8P:
|
||||||
|
suffix: -08P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 62.72
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-08P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 8
|
||||||
|
|
||||||
|
pinout@9P: 1-9
|
||||||
|
|
||||||
|
schematic@9P:
|
||||||
|
suffix: -09P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-9
|
||||||
|
|
||||||
|
housing@9P:
|
||||||
|
suffix: -09P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 70.34
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-09P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 9
|
||||||
|
|
||||||
|
pinout@10P: 1-10
|
||||||
|
|
||||||
|
schematic@10P:
|
||||||
|
suffix: -10P
|
||||||
|
symbol: connector
|
||||||
|
left: 1-10
|
||||||
|
|
||||||
|
housing@10P:
|
||||||
|
suffix: -10P
|
||||||
|
<<: *template
|
||||||
|
bodyWidth: 77.96
|
||||||
|
model: # from JLCPCB
|
||||||
|
file: 'library/connector/terminal-barrier_mx25c-7.62/MX25C-7.62-10P.step'
|
||||||
|
rotation: 0,0,0
|
||||||
|
position: 7.62,0,0
|
||||||
|
columnCount: 10
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue