52 lines
1.7 KiB
YAML
52 lines
1.7 KiB
YAML
name: CR2450
|
|
description: CR2450 coin cell battery holder, through hole
|
|
datasheet: https://www.mouser.de/datasheet/2/215/053-745375.pdf
|
|
# AliExpress: https://www.aliexpress.com/item/32339026573.html
|
|
|
|
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: 29.35
|
|
bodyLength: 26.75
|
|
height: 9.50
|
|
silkscreen: M 14.675,-5.4 14.675,5.4 10.936,5.4 10.283,6.687 8.946,8.597 7.297,10.246 5.388,11.583 3.275,12.568 1.023,13.172 -1.3,13.375 -3.623,13.172 -5.875,12.568 -7.987,11.583 -9.897,10.246 -11.546,8.597 -12.883,6.687 -13.868,4.575 -14.472,2.323 -14.675,0.0 -14.472,-2.323 -13.868,-4.575 -12.883,-6.688 -11.546,-8.597 -9.897,-10.246 -7.988,-11.583 -5.875,-12.568 -3.623,-13.172 -1.3,-13.375 1.023,-13.172 3.275,-12.568 5.388,-11.583 7.297,-10.246 8.946,-8.597 10.283,-6.688 10.936,-5.4 14.675,-5.4
|
|
holeDiameter: 1.3
|
|
padDiameter: 1.7
|
|
padPosition: 13.455, 0, -6.565, 0 # 29.35 / 2 - 1.22, 29.35 / 2 - 1.22 - 20.02
|
|
|
|
# ruby script to draw form
|
|
# START = Math.asin((10.80 / 2) / (26.75 / 2)) / (2 * Math::PI) * 360 # 23.81
|
|
# 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
|
|
# DIA = 26.75
|
|
# RADIUS = DIA / 2
|
|
# OFFSET = 29.35 / 2 - RADIUS
|
|
#
|
|
# print("M ")
|
|
# print("#{29.35 / 2},#{10.80 / -2} ")
|
|
# print("#{29.35 / 2},#{10.80 / 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("#{29.35 / 2},#{10.80 / -2} ")
|
|
# puts
|