add FPC connector

This commit is contained in:
King Kévin 2023-01-20 07:46:58 +01:00
parent 9aa6355cec
commit a74e8a551e
2 changed files with 694 additions and 0 deletions

41
connector/fpc_afa07.rb Executable file
View File

@ -0,0 +1,41 @@
#!/usr/bin/env ruby
# encoding: utf-8
# ruby: 3.0.1
# number of possible pins
variations = (4..30).to_a
puts "name: AFA07"
puts "description: connector, FPC, ZIF, SMD, 1.0 mm pitch"
puts "variations: " + variations.collect{|p| p.to_s+"P"}*", "
puts "datasheet: https://datasheet.lcsc.com/lcsc/1811021315_JUSHUO-AFA07-S06FCC-00_C72727.pdf"
puts "distributors: LCSC C72727"
variations.each do |v|
puts "pinout@#{v}P: 1-#{v}"
puts ""
puts "schematic@#{v}P:"
puts " suffix: -S%02dP" % v
puts " symbol: connector"
puts " left: 1-#{v}"
puts ""
puts "housing@#{v}P:"
puts " suffix: -S%02dP" % v
puts " pattern: custom"
puts " bodyWidth: #{(v + 7.0).round(0)} # D"
puts " bodyLength: 5.3"
puts " height: 2.5"
puts " pitch: 1.0"
puts " padWidth: 0.6"
puts " padHeight: 1.8"
puts " columnCount: #{v}"
puts " rowCount: 1"
puts " rowDY: #{(-5.30 / 2 - 1.80 / 2).round(2)}"
puts " # mounting pads"
puts " padWidth1: 2.6"
puts " padHeight1: 3.0"
x = ((1.0 * v - 1.0) / -2 - 3.65 + 2.6 / 2).round(2)
y = (-5.30 / 2 - 1.80 + 4.57 - 3.0 / 2).round(2)
puts " padPosition1: #{x},#{y},#{-x},#{y}"
puts ""
end

653
connector/fpc_afa07.yaml Normal file
View File

@ -0,0 +1,653 @@
name: AFA07
description: connector, FPC, ZIF, SMD, 1.0 mm pitch
variations: 4P, 5P, 6P, 7P, 8P, 9P, 10P, 11P, 12P, 13P, 14P, 15P, 16P, 17P, 18P, 19P, 20P, 21P, 22P, 23P, 24P, 25P, 26P, 27P, 28P, 29P, 30P
datasheet: https://datasheet.lcsc.com/lcsc/1811021315_JUSHUO-AFA07-S06FCC-00_C72727.pdf
distributors: LCSC C72727
pinout@4P: 1-4
schematic@4P:
suffix: -S04P
symbol: connector
left: 1-4
housing@4P:
suffix: -S04P
pattern: custom
bodyWidth: 11 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 4
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -3.85,-1.38,3.85,-1.38
pinout@5P: 1-5
schematic@5P:
suffix: -S05P
symbol: connector
left: 1-5
housing@5P:
suffix: -S05P
pattern: custom
bodyWidth: 12 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 5
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -4.35,-1.38,4.35,-1.38
pinout@6P: 1-6
schematic@6P:
suffix: -S06P
symbol: connector
left: 1-6
housing@6P:
suffix: -S06P
pattern: custom
bodyWidth: 13 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 6
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -4.85,-1.38,4.85,-1.38
pinout@7P: 1-7
schematic@7P:
suffix: -S07P
symbol: connector
left: 1-7
housing@7P:
suffix: -S07P
pattern: custom
bodyWidth: 14 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 7
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -5.35,-1.38,5.35,-1.38
pinout@8P: 1-8
schematic@8P:
suffix: -S08P
symbol: connector
left: 1-8
housing@8P:
suffix: -S08P
pattern: custom
bodyWidth: 15 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 8
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -5.85,-1.38,5.85,-1.38
pinout@9P: 1-9
schematic@9P:
suffix: -S09P
symbol: connector
left: 1-9
housing@9P:
suffix: -S09P
pattern: custom
bodyWidth: 16 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 9
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -6.35,-1.38,6.35,-1.38
pinout@10P: 1-10
schematic@10P:
suffix: -S10P
symbol: connector
left: 1-10
housing@10P:
suffix: -S10P
pattern: custom
bodyWidth: 17 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 10
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -6.85,-1.38,6.85,-1.38
pinout@11P: 1-11
schematic@11P:
suffix: -S11P
symbol: connector
left: 1-11
housing@11P:
suffix: -S11P
pattern: custom
bodyWidth: 18 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 11
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -7.35,-1.38,7.35,-1.38
pinout@12P: 1-12
schematic@12P:
suffix: -S12P
symbol: connector
left: 1-12
housing@12P:
suffix: -S12P
pattern: custom
bodyWidth: 19 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 12
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -7.85,-1.38,7.85,-1.38
pinout@13P: 1-13
schematic@13P:
suffix: -S13P
symbol: connector
left: 1-13
housing@13P:
suffix: -S13P
pattern: custom
bodyWidth: 20 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 13
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -8.35,-1.38,8.35,-1.38
pinout@14P: 1-14
schematic@14P:
suffix: -S14P
symbol: connector
left: 1-14
housing@14P:
suffix: -S14P
pattern: custom
bodyWidth: 21 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 14
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -8.85,-1.38,8.85,-1.38
pinout@15P: 1-15
schematic@15P:
suffix: -S15P
symbol: connector
left: 1-15
housing@15P:
suffix: -S15P
pattern: custom
bodyWidth: 22 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 15
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -9.35,-1.38,9.35,-1.38
pinout@16P: 1-16
schematic@16P:
suffix: -S16P
symbol: connector
left: 1-16
housing@16P:
suffix: -S16P
pattern: custom
bodyWidth: 23 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 16
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -9.85,-1.38,9.85,-1.38
pinout@17P: 1-17
schematic@17P:
suffix: -S17P
symbol: connector
left: 1-17
housing@17P:
suffix: -S17P
pattern: custom
bodyWidth: 24 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 17
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -10.35,-1.38,10.35,-1.38
pinout@18P: 1-18
schematic@18P:
suffix: -S18P
symbol: connector
left: 1-18
housing@18P:
suffix: -S18P
pattern: custom
bodyWidth: 25 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 18
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -10.85,-1.38,10.85,-1.38
pinout@19P: 1-19
schematic@19P:
suffix: -S19P
symbol: connector
left: 1-19
housing@19P:
suffix: -S19P
pattern: custom
bodyWidth: 26 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 19
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -11.35,-1.38,11.35,-1.38
pinout@20P: 1-20
schematic@20P:
suffix: -S20P
symbol: connector
left: 1-20
housing@20P:
suffix: -S20P
pattern: custom
bodyWidth: 27 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 20
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -11.85,-1.38,11.85,-1.38
pinout@21P: 1-21
schematic@21P:
suffix: -S21P
symbol: connector
left: 1-21
housing@21P:
suffix: -S21P
pattern: custom
bodyWidth: 28 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 21
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -12.35,-1.38,12.35,-1.38
pinout@22P: 1-22
schematic@22P:
suffix: -S22P
symbol: connector
left: 1-22
housing@22P:
suffix: -S22P
pattern: custom
bodyWidth: 29 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 22
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -12.85,-1.38,12.85,-1.38
pinout@23P: 1-23
schematic@23P:
suffix: -S23P
symbol: connector
left: 1-23
housing@23P:
suffix: -S23P
pattern: custom
bodyWidth: 30 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 23
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -13.35,-1.38,13.35,-1.38
pinout@24P: 1-24
schematic@24P:
suffix: -S24P
symbol: connector
left: 1-24
housing@24P:
suffix: -S24P
pattern: custom
bodyWidth: 31 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 24
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -13.85,-1.38,13.85,-1.38
pinout@25P: 1-25
schematic@25P:
suffix: -S25P
symbol: connector
left: 1-25
housing@25P:
suffix: -S25P
pattern: custom
bodyWidth: 32 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 25
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -14.35,-1.38,14.35,-1.38
pinout@26P: 1-26
schematic@26P:
suffix: -S26P
symbol: connector
left: 1-26
housing@26P:
suffix: -S26P
pattern: custom
bodyWidth: 33 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 26
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -14.85,-1.38,14.85,-1.38
pinout@27P: 1-27
schematic@27P:
suffix: -S27P
symbol: connector
left: 1-27
housing@27P:
suffix: -S27P
pattern: custom
bodyWidth: 34 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 27
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -15.35,-1.38,15.35,-1.38
pinout@28P: 1-28
schematic@28P:
suffix: -S28P
symbol: connector
left: 1-28
housing@28P:
suffix: -S28P
pattern: custom
bodyWidth: 35 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 28
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -15.85,-1.38,15.85,-1.38
pinout@29P: 1-29
schematic@29P:
suffix: -S29P
symbol: connector
left: 1-29
housing@29P:
suffix: -S29P
pattern: custom
bodyWidth: 36 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 29
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -16.35,-1.38,16.35,-1.38
pinout@30P: 1-30
schematic@30P:
suffix: -S30P
symbol: connector
left: 1-30
housing@30P:
suffix: -S30P
pattern: custom
bodyWidth: 37 # D
bodyLength: 5.3
height: 2.5
pitch: 1.0
padWidth: 0.6
padHeight: 1.8
columnCount: 30
rowCount: 1
rowDY: -3.55
# mounting pads
padWidth1: 2.6
padHeight1: 3.0
padPosition1: -16.85,-1.38,16.85,-1.38