]> git.gag.com Git - hw/altusmetrum/commitdiff
footprint for new beeper we want to try
authorBdale Garbee <bdale@gag.com>
Thu, 29 Apr 2021 01:51:07 +0000 (19:51 -0600)
committerBdale Garbee <bdale@gag.com>
Thu, 29 Apr 2021 01:51:07 +0000 (19:51 -0600)
datasheets/puiaudio/AT-1220-TT-11-R.pdf [new file with mode: 0644]
packages/AT1220.py [new file with mode: 0755]
packages/Makefile

diff --git a/datasheets/puiaudio/AT-1220-TT-11-R.pdf b/datasheets/puiaudio/AT-1220-TT-11-R.pdf
new file mode 100644 (file)
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 (executable)
index 0000000..7d336c3
--- /dev/null
@@ -0,0 +1,53 @@
+#!/usr/bin/python3
+# Copyright 2021 by Bdale Garbee <bdale@gag.com>.  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(")")
index aeb8ec5ae3655a4f68722e50c10310d7902988ba..9cb944d6e8f6c166b6ded8fab8c9f497d4b3fee7 100644 (file)
@@ -144,7 +144,8 @@ FOOTPRINTS= \
        ECX2236.fp \
        trapc5mx.fp \
        SOIJ4.fp \
-       SOIJ8.fp
+       SOIJ8.fp \
+       AT1220.fp
 
 .5c.fp:
        nickle $*.5c -o $@