add screw terminal
This commit is contained in:
parent
3059d17746
commit
2e1e395fd2
41
connector/mx126-5.0.rb
Executable file
41
connector/mx126-5.0.rb
Executable file
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env ruby
|
||||
# encoding: utf-8
|
||||
# ruby: 3.0.1
|
||||
|
||||
# number of possible pins
|
||||
variations = (2..3).to_a
|
||||
|
||||
puts "name: MX126-5.0
|
||||
description: screw terminal, 5.0 mm pitch
|
||||
variations: #{variations.collect {|p| p.to_s + 'P'} * ', '}
|
||||
datasheet: https://datasheet.lcsc.com/lcsc/2309141733_MAX-MX126-5-0-02P-GN01-Cu-S-A_C5188434.pdf
|
||||
|
||||
housing: &template
|
||||
pattern: custom
|
||||
height: 10.3
|
||||
bodyLength: 7.8
|
||||
leadHeight: 4.0
|
||||
leadWidth: 0.6
|
||||
leadLength: 1.0
|
||||
holeDiameter: 1.3
|
||||
pitch: 5.0
|
||||
rowCount: 1
|
||||
bodyPosition: 0, #{(7.8/2 -4.0).round(2)}
|
||||
"
|
||||
|
||||
variations.each do |v|
|
||||
puts "
|
||||
pinout@#{v}P: 1-#{v}
|
||||
|
||||
schematic@#{v}P:
|
||||
suffix: -#{v.to_s.rjust(2, '0')}P
|
||||
symbol: connector
|
||||
left: 1-#{v}
|
||||
|
||||
housing@#{v}P:
|
||||
suffix: -#{v.to_s.rjust(2, '0')}P
|
||||
<<: *template
|
||||
bodyWidth: #{(5.0 * v).round(2)}
|
||||
columnCount: #{v}
|
||||
"
|
||||
end
|
42
connector/mx126-5.0.yaml
Normal file
42
connector/mx126-5.0.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
name: MX126-5.0
|
||||
description: screw terminal, 5.0 mm pitch
|
||||
variations: 2P, 3P
|
||||
datasheet: https://datasheet.lcsc.com/lcsc/2309141733_MAX-MX126-5-0-02P-GN01-Cu-S-A_C5188434.pdf
|
||||
|
||||
housing: &template
|
||||
pattern: custom
|
||||
height: 10.3
|
||||
bodyLength: 7.8
|
||||
leadHeight: 4.0
|
||||
leadWidth: 0.6
|
||||
leadLength: 1.0
|
||||
holeDiameter: 1.3
|
||||
pitch: 5.0
|
||||
rowCount: 1
|
||||
bodyPosition: 0, -0.1
|
||||
|
||||
pinout@2P: 1-2
|
||||
|
||||
schematic@2P:
|
||||
suffix: -02P
|
||||
symbol: connector
|
||||
left: 1-2
|
||||
|
||||
housing@2P:
|
||||
suffix: -02P
|
||||
<<: *template
|
||||
bodyWidth: 10.0
|
||||
columnCount: 2
|
||||
|
||||
pinout@3P: 1-3
|
||||
|
||||
schematic@3P:
|
||||
suffix: -03P
|
||||
symbol: connector
|
||||
left: 1-3
|
||||
|
||||
housing@3P:
|
||||
suffix: -03P
|
||||
<<: *template
|
||||
bodyWidth: 15.0
|
||||
columnCount: 3
|
Loading…
Reference in New Issue
Block a user