From 979e5ce480ef8318d7b68c70de722f9957a8f961 Mon Sep 17 00:00:00 2001 From: Neil Gershenfeld <gersh@cba.mit.edu> Date: Wed, 10 Apr 2024 20:57:01 -0400 Subject: [PATCH] wip --- python/pcb.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/python/pcb.py b/python/pcb.py index 614273f..98518a9 100755 --- a/python/pcb.py +++ b/python/pcb.py @@ -6639,6 +6639,53 @@ class VL53L1X(part): # ICs ############################################################ +class TLV3601DBVR(part): + # + # TLV3601DBVR + # TI comparator SOT23-5 + # + def __init__(self,value=''): + self.value = value + self.pad = [point(0,0,0)] + self.labels = [] + d = 1.325/25.4 + w = 0.5/25.4/2 + h = 0.75/25.4/2 + p = 0.95/25.4 + pad = cube(-w,w,-h,h,0,0) + s = 0.003 + # + # pin 1 + # + self.shape = translate(pad,-p,-d,0) + self.shape = add(self.shape,cylinder(-p,-d-h,0,0,w)) + self.pad.append(point(-p,-d,0)) + self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'OUT',line=s,angle=90)) + # + # pin 2 + # + self.shape = add(self.shape,translate(pad,0,-d,0)) + self.pad.append(point(0,-d,0)) + self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'GND',line=s,angle=90)) + # + # pin 3 + # + self.shape = add(self.shape,translate(pad,p,-d,0)) + self.pad.append(point(p,-d,0)) + self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'IN+',line=s,angle=90)) + # + # pin 4 + # + self.shape = add(self.shape,translate(pad,p,d,0)) + self.pad.append(point(p,d,0)) + self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'IN-',line=s,angle=90)) + # + # pin 5 + # + self.shape = add(self.shape,translate(pad,-p,d,0)) + self.pad.append(point(-p,d,0)) + self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'VCC',line=s,angle=90)) + class PicoW(part): # # Pico W -- GitLab