]> git.gag.com Git - hw/altusmetrum/commitdiff
add a 10mm diameter electrolytic cap footprint for QuantiMotor
authorBdale Garbee <bdale@gag.com>
Wed, 11 Jun 2025 04:16:07 +0000 (22:16 -0600)
committerBdale Garbee <bdale@gag.com>
Wed, 11 Jun 2025 04:16:07 +0000 (22:16 -0600)
packages/CAP_FC10.py [new file with mode: 0755]
packages/Makefile

diff --git a/packages/CAP_FC10.py b/packages/CAP_FC10.py
new file mode 100755 (executable)
index 0000000..8be3ed2
--- /dev/null
@@ -0,0 +1,69 @@
+#!/usr/bin/python3
+# Copyright 2025 by Bdale Garbee <bdale@gag.com>.  GPLv2
+#
+# Program to emit PCB footprint for 10mm diameter through-hole electrolytic 
+# capacitors with 5mm hole spacing
+#
+
+# dimensions in mm from Panasonic ABA0000CE22.pdf
+BodyDiam = 10.0
+PinSpacing = 5.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 3')
+print('# use-license: unlimited')
+
+print('Element[0x0 "CAP_FC8" "" "" 0 0 0 0 0 100 0x0]')
+print("(")
+print('   Pin[',\
+       mm2mils100(-PinSpacing/2), \
+       0, \
+       mm2mils100(2), \
+       mm2mils100(1), \
+       mm2mils100(2.2), \
+       mm2mils100(0.80), \
+       '"pin1" "1" 0x0101]')
+
+print('   Pin[',\
+       mm2mils100(PinSpacing/2), \
+       0, \
+       mm2mils100(2), \
+       mm2mils100(1), \
+       mm2mils100(2.2), \
+       mm2mils100(0.80), \
+       '"pin2" "2" 0x0001]')
+
+print('   ElementArc[',\
+       0, \
+       0, \
+       mm2mils100(BodyDiam/2), \
+       mm2mils100(BodyDiam/2), \
+       0, \
+       360, \
+       1000, \
+       ']')
+
+print('   ElementLine[',\
+       mm2mils100(-BodyDiam/2), \
+       mm2mils100(-BodyDiam/2), \
+       mm2mils100(-BodyDiam/4), \
+       mm2mils100(-BodyDiam/2), \
+       1000, \
+       ']')
+
+print('   ElementLine[',\
+       mm2mils100(-3*BodyDiam/8), \
+       mm2mils100(-5*BodyDiam/8), \
+       mm2mils100(-3*BodyDiam/8), \
+       mm2mils100(-3*BodyDiam/8), \
+       1000, \
+       ']')
+
+print(")")
index 986fe314a7f3d69680ef96ddf004ec907ef8e28f..8fab3a3029d6a0c6531b4191184162c3bdd90c14 100644 (file)
@@ -129,6 +129,7 @@ FOOTPRINTS= \
        servo-motor.fp \
        TDK_PS12-small.fp \
        CAP_FC8.fp \
+       CAP_FC10.fp \
        fuse3568.fp \
        ABM12.fp \
        MD-60S.fp \