From: Bdale Garbee Date: Thu, 12 Jun 2025 19:05:40 +0000 (-0600) Subject: toggle switches chosen for QuantiMotor X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=cf2d6b0d05333d2940a84ce8134bc0b0a44e4186;p=hw%2Faltusmetrum toggle switches chosen for QuantiMotor --- diff --git a/datasheets/dailywell/Dailywell_10082019_1M_Series-1660460.pdf b/datasheets/dailywell/Dailywell_10082019_1M_Series-1660460.pdf new file mode 100644 index 0000000..118043a Binary files /dev/null and b/datasheets/dailywell/Dailywell_10082019_1M_Series-1660460.pdf differ diff --git a/packages/switches/.gitignore b/packages/switches/.gitignore index 720d469..1c7c369 100644 --- a/packages/switches/.gitignore +++ b/packages/switches/.gitignore @@ -1,5 +1,7 @@ +.gitignore 20571.fp cus-12.fp lph.fp PNswitchDPDT.fp SK12F17.fp +1MS1T1B4M7.fp diff --git a/packages/switches/1MS1T1B4M7.py b/packages/switches/1MS1T1B4M7.py new file mode 100755 index 0000000..9b9c105 --- /dev/null +++ b/packages/switches/1MS1T1B4M7.py @@ -0,0 +1,108 @@ +#!/usr/bin/python3 +# Copyright 2025 by Bdale Garbee . GPLv3 +# +# Program to emit PCB footprint for Dailywell SPDT right-angle vertical switch +# + +# dimensions in mm from dailywell/Dailywell_10082019_1M_Series-1660460.pdf +BodyX = 12.7 +BodyY = 6.86 + +MntY = 5.08 +PinSpacing = 3.81 + +Drill = 1.85 # diameter of drill hole +Thickness = 2.85 # outer diameter of copper annulus +Clearance = 1 # delta in diameter above Thickness for plane clearance +Mask = 3.0 # mask opening diameter + +SilkWidth = 10 # in units of 1/1000 inch +SilkNative = SilkWidth * 100 + +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 "1MS1T1B4M7" "" "" 0 0 0 0 0 100 0x0]') +print("(") +print(' Pin[',\ + mm2mils100(BodyX+2*PinSpacing), \ + 0, \ + mm2mils100(Thickness), \ + mm2mils100(Clearance), \ + mm2mils100(Mask), \ + mm2mils100(Drill), \ + '"pin1" "1" 0x0101]') + +print(' Pin[',\ + mm2mils100(BodyX+PinSpacing), \ + 0, \ + mm2mils100(Thickness), \ + mm2mils100(Clearance), \ + mm2mils100(Mask), \ + mm2mils100(Drill), \ + '"pin2" "2" 0x0001]') + +print(' Pin[',\ + mm2mils100(BodyX), \ + 0, \ + mm2mils100(Thickness), \ + mm2mils100(Clearance), \ + mm2mils100(Mask), \ + mm2mils100(Drill), \ + '"pin3" "3" 0x0001]') + +print(' Pin[',\ + 0, \ + mm2mils100(MntY/2), \ + mm2mils100(Thickness), \ + mm2mils100(Clearance), \ + mm2mils100(Mask), \ + mm2mils100(Drill), \ + '"GND" "4" 0x0001]') + +print(' Pin[',\ + 0, \ + mm2mils100(-MntY/2), \ + mm2mils100(Thickness), \ + mm2mils100(Clearance), \ + mm2mils100(Mask), \ + mm2mils100(Drill), \ + '"GND" "4" 0x0001]') + +print(' ElementLine[',\ + 0, \ + mm2mils100(-BodyY/2), \ + 0, \ + mm2mils100(BodyY/2), \ + SilkNative, ']') + +print(' ElementLine[',\ + 0, \ + mm2mils100(-BodyY/2), \ + mm2mils100(BodyX), \ + mm2mils100(-BodyY/2), \ + SilkNative, ']') + +print(' ElementLine[',\ + mm2mils100(BodyX), \ + mm2mils100(-BodyY/2), \ + mm2mils100(BodyX), \ + mm2mils100(BodyY/2), \ + SilkNative, ']') + +print(' ElementLine[',\ + 0, \ + mm2mils100(BodyY/2), \ + mm2mils100(BodyX), \ + mm2mils100(BodyY/2), \ + SilkNative, ']') + +print(")") diff --git a/packages/switches/Makefile b/packages/switches/Makefile index 09a72b3..6c6c0fb 100644 --- a/packages/switches/Makefile +++ b/packages/switches/Makefile @@ -5,7 +5,8 @@ FOOTPRINTS = \ cus-12.fp \ lph.fp \ PNswitchDPDT.fp \ - SK12F17.fp + SK12F17.fp \ + 1MS1T1B4M7.fp .5c.fp: nickle $*.5c -o $@ diff --git a/preferred-parts.ods b/preferred-parts.ods index 8fe20f3..cb1899a 100644 Binary files a/preferred-parts.ods and b/preferred-parts.ods differ