From a1c849d2d800ce6ef8fe29efd948d52367ecd11f Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Fri, 17 Apr 2015 12:14:47 -0600 Subject: [PATCH] footprint for littlefuse pcb-mount fuse holder - greenhouse project --- packages/littlefuse345.py | 78 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100755 packages/littlefuse345.py diff --git a/packages/littlefuse345.py b/packages/littlefuse345.py new file mode 100755 index 0000000..97336e7 --- /dev/null +++ b/packages/littlefuse345.py @@ -0,0 +1,78 @@ +#!/usr/bin/python +# Copyright 2015 by Bdale Garbee . GPLv2 +# +# Program to emit PCB footprint for littlefuse 345 fuse holder +# + +# dimensions in mils from footprint drawing at DigiKey +BodyWidth = 1570 # body outline (width not counting projection) +BodyHeight = 490 +PinSpace1 = 700 +PinSpace2 = 600 + +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 "littlefuse345" "" "" 0 0 0 0 0 100 0x0]' +print "(" +print ' Pin(',\ + 0, \ + 0, \ + 125, \ + 30, \ + 150, \ + 56, \ + '"pin1" "1" 0x0001)' + +print ' Pin(',\ + PinSpace1, \ + 0, \ + 125, \ + 30, \ + 150, \ + 56, \ + '"pin2" "2" 0x0001)' + +print ' Pin(',\ + PinSpace1 + PinSpace2, \ + 0, \ + 125, \ + 30, \ + 150, \ + 56, \ + '"pin3" "3" 0x0001)' + + +print ' ElementLine(',\ + 0, \ + -(BodyHeight/2), \ + 0, \ + (BodyHeight/2), \ + 5, \ + ')' + +print ' ElementLine(',\ + 0, \ + -(BodyHeight/2), \ + BodyWidth, \ + -(BodyHeight/2), \ + 5, \ + ')' + +print ' ElementLine(',\ + 0, \ + (BodyHeight/2), \ + BodyWidth, \ + (BodyHeight/2), \ + 5, \ + ')' + +print ")" -- 2.47.2