From: Bdale Garbee Date: Thu, 29 Apr 2021 01:51:07 +0000 (-0600) Subject: footprint for new beeper we want to try X-Git-Tag: telelco-v3.0~235 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d374ef07b792ab74dc5f0b3da627eb87d0cdedca;p=hw%2Faltusmetrum footprint for new beeper we want to try --- diff --git a/datasheets/puiaudio/AT-1220-TT-11-R.pdf b/datasheets/puiaudio/AT-1220-TT-11-R.pdf new file mode 100644 index 0000000..c3ca9a0 Binary files /dev/null and b/datasheets/puiaudio/AT-1220-TT-11-R.pdf differ diff --git a/packages/AT1220.py b/packages/AT1220.py new file mode 100755 index 0000000..7d336c3 --- /dev/null +++ b/packages/AT1220.py @@ -0,0 +1,53 @@ +#!/usr/bin/python3 +# Copyright 2021 by Bdale Garbee . GPLv3 +# +# Program to emit PCB footprint for TDK beeper +# + +# dimensions in mm from puiaudio/AT-1220-TT-11-R.pdf datasheet +BodyDiam = 12.2 +PinSpacing = 6.5 +PinDiam = 0.6 + +import sys + +# we're going to use the 1/100 of a mil fundamental unit form +def mm2mils100( mm ): + return int( mm / 25.4 * 1000.0 * 100.0 + 0.5 ) + +print('# author: Bdale Garbee') +print('# email: bdale@gag.com') +print('# dist-license: GPL 3') +print('# use-license: unlimited') + +print('Element[0x0 "TDK_PS12" "" "" 0 0 0 0 0 100 0x0]') +print("(") +print(' Pin[',\ + mm2mils100(-PinSpacing/2), \ + 0, \ + mm2mils100(PinDiam * 2.5), \ + 1200, \ + mm2mils100(PinDiam * 2.5), \ + mm2mils100(PinDiam), \ + '"pin1" "1" 0x0101]') + +print(' Pin[',\ + mm2mils100(PinSpacing/2), \ + 0, \ + mm2mils100(PinDiam * 2.5), \ + 1200, \ + mm2mils100(PinDiam * 2.5), \ + mm2mils100(PinDiam), \ + '"pin2" "2" 0x0001]') + +print(' ElementArc[',\ + 0, \ + 0, \ + mm2mils100(BodyDiam/2), \ + mm2mils100(BodyDiam/2), \ + 0, \ + 360, \ + 1000, \ + ']') + +print(")") diff --git a/packages/Makefile b/packages/Makefile index aeb8ec5..9cb944d 100644 --- a/packages/Makefile +++ b/packages/Makefile @@ -144,7 +144,8 @@ FOOTPRINTS= \ ECX2236.fp \ trapc5mx.fp \ SOIJ4.fp \ - SOIJ8.fp + SOIJ8.fp \ + AT1220.fp .5c.fp: nickle $*.5c -o $@