speaker for teleterra
authorBdale Garbee <bdale@gag.com>
Tue, 14 Sep 2010 00:08:09 +0000 (18:08 -0600)
committerBdale Garbee <bdale@gag.com>
Tue, 14 Sep 2010 00:08:09 +0000 (18:08 -0600)
pkg/newlib/CLF0381MP-1.py [new file with mode: 0755]
sym/speaker.sym [new file with mode: 0644]

diff --git a/pkg/newlib/CLF0381MP-1.py b/pkg/newlib/CLF0381MP-1.py
new file mode 100755 (executable)
index 0000000..2ffa6cf
--- /dev/null
@@ -0,0 +1,53 @@
+#!/usr/bin/python
+# Copyright 2007 by Bdale Garbee <bdale@gag.com>.  GPLv2
+#
+# Program to emit PCB footprint for CUI CLF0381MP-1 speaker
+#
+
+# dimensions in mm from abm8.pdf Abracon datasheet
+BodyDiam = 38
+PinSpacing = 5.00
+PinOffCenter = 23.0
+
+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 2'
+print '# use-license: unlimited'
+
+print 'Element[0x0 "CLF0381MP-1" "" "" 0 0 0 0 0 100 0x0]'
+print "("
+print '   Pin[',\
+       mm2mils100(PinOffCenter), \
+       mm2mils100(-PinSpacing/2), \
+       mm2mils100(2), \
+       mm2mils100(1), \
+       mm2mils100(2.2), \
+       mm2mils100(0.70), \
+       '"pin1" "1" 0x0101]'
+
+print '   Pin[',\
+       mm2mils100(PinOffCenter), \
+       mm2mils100(PinSpacing/2), \
+       mm2mils100(2), \
+       mm2mils100(1), \
+       mm2mils100(2.2), \
+       mm2mils100(0.70), \
+       '"pin2" "2" 0x0001]'
+
+print '   ElementArc[',\
+       0, \
+       0, \
+       mm2mils100(BodyDiam/2), \
+       mm2mils100(BodyDiam/2), \
+       0, \
+       360, \
+       mm2mils100(0.1), \
+       ']'
+
+print ")"
diff --git a/sym/speaker.sym b/sym/speaker.sym
new file mode 100644 (file)
index 0000000..a03e271
--- /dev/null
@@ -0,0 +1,36 @@
+v 20100214 2
+P 0 300 200 300 1 0 0
+{
+T 150 350 5 8 1 1 0 6 1
+pinnumber=1
+T 150 250 5 8 0 1 0 8 1
+pinseq=1
+T 250 300 9 8 0 1 0 0 1
+pinlabel=1
+T 250 300 5 8 0 1 0 2 1
+pintype=pas
+}
+P 1000 300 800 300 1 0 0
+{
+T 850 350 5 8 1 1 0 0 1
+pinnumber=2
+T 850 250 5 8 0 1 0 2 1
+pinseq=2
+T 800 300 9 8 0 1 0 6 1
+pinlabel=2
+T 800 300 5 8 0 1 0 8 1
+pintype=pas
+}
+T 300 900 5 10 0 0 0 0 1
+device=BEEPER
+T 300 700 8 10 1 1 0 0 1
+refdes=X?
+V 500 300 300 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
+T 300 1500 5 10 0 0 0 0 1
+description=pieco beeper
+T 300 1300 5 10 0 0 0 0 1
+numslots=0
+T 300 1100 5 10 0 0 0 0 1
+symversion=0.1
+T 227 255 9 8 1 0 0 0 1
+Speaker