From 72830c5b1658cb3337384ca3a061b6ccb99e74d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 4 Feb 2020 19:00:48 +0100 Subject: [PATCH] add part for CR2450 battery holder (though hole) --- connector/connector_battery_cr2450.yaml | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 connector/connector_battery_cr2450.yaml diff --git a/connector/connector_battery_cr2450.yaml b/connector/connector_battery_cr2450.yaml new file mode 100644 index 0000000..8e8607a --- /dev/null +++ b/connector/connector_battery_cr2450.yaml @@ -0,0 +1,51 @@ +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