qeda_library/connector/battery_cr2032.yaml

53 lines
1.6 KiB
YAML

name: CR2032
description: CR2032 coin cell battery holder, through hole
datasheet: https://insom.github.io/img/BTH2032-3.jpg
pinout:
BAT+: 1
BAT-: 2
properties:
power: BAT+
ground: BAT-
schematic:
symbol: ic # connector makes weird stuff
top: BAT+
bottom: BAT-
housing:
pattern: custom
bodyWidth: 24.30
bodyLength: 22.10
height: 8.70
silkscreen: M 12.15,-3.95 12.15,3.95 9.22,3.95 8.47,5.525 7.365,7.103 6.003,8.465 4.425,9.57 2.679,10.384 0.819,10.882 -1.1,11.05 -3.019,10.882 -4.879,10.384 -6.625,9.57 -8.203,8.465 -9.565,7.103 -10.67,5.525 -11.484,3.779 -11.982,1.919 -12.15,0.0 -11.982,-1.919 -11.484,-3.779 -10.67,-5.525 -9.565,-7.103 -8.203,-8.465 -6.625,-9.57 -4.879,-10.384 -3.019,-10.882 -1.1,-11.05 0.819,-10.882 2.679,-10.384 4.425,-9.57 6.003,-8.465 7.365,-7.103 8.47,-5.525 9.22,-3.95 12.15,-3.95
holeDiameter: 1.3
padDiameter: 1.7
padPosition: 10.95, 0, -9.05, 0 # 24.30 / 2 - 1.2, 24.30 / 2 - 1.2 - 20
# ruby script to draw form
# WIDTH = 24.30
# DIA = 22.10
# TAB = 7.9
# RADIUS = DIA / 2
# OFFSET = WIDTH / 2 - RADIUS
# START = Math.asin((TAB / 2) / (DIA / 2)) / (2 * Math::PI) * 360
# ANGLE = 10
# angles = []
# angles << START
# (360 / ANGLE).times do |i|
# angle = ANGLE * i
# next if angle < START or angle > 360 - START
# angles << angle
# end
# angles << 360 - START
#
# print("M ")
# print("#{WIDTH / 2},#{TAB / -2} ")
# print("#{WIDTH / 2},#{TAB / 2} ")
# angles.each do |angle|
# print("#{(Math.cos(angle / 360.0 * 2 * Math::PI) * RADIUS - OFFSET).round(3)},#{(Math.sin(angle / 360.0 * 2 * Math::PI) * RADIUS).round(3)} ")
# end
# print("#{WIDTH / 2},#{TAB / -2} ")
# puts