Commit 20528661 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent d4db36dc
Pipeline #19390 passed with stage
in 1 second
......@@ -1227,6 +1227,58 @@ class choke(part):
# connectors
############################################################
class micro_USB(part):
#
# micro USB
# AMP/FCI 10118194-0001LF
#
def __init__(self,value=''):
w = 0.0049 # pad half width
h = .55/25.4/2 # pad half height
p = .65/25.4 # pad pitch
l = 0.006 # text
pad_header = cube(-w,w,-h,h,0,0)
self.value = value
self.pad = [point(0,0,0)]
self.labels = []
#
# pin 1
#
self.shape = translate(pad_header,-2*p,0,0)
self.pad.append(point(-2*p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'V',line=l))
#
# pin 2
#
self.shape = add(self.shape,translate(pad_header,-p,0,0))
self.pad.append(point(-p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'-',line=l))
#
# pin 3
#
self.shape = add(self.shape,translate(pad_header,0,0,0))
self.pad.append(point(0,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'+',line=l))
#
# pin 4
#
self.shape = add(self.shape,translate(pad_header,p,0,0))
self.pad.append(point(p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'I',line=l))
#
# pin 5
#
self.shape = add(self.shape,translate(pad_header,2*p,0,0))
self.pad.append(point(2*p,0,0))
self.labels.append(self.text(self.pad[-1].x,self.pad[-1].y,self.pad[-1].z,'G',line=l))
#
# holes
#
self.holes = cylinder(2.5/25.4,0,zb,zt,0.016)
self.holes = add(self.holes,cylinder(-2.5/25.4,0,zb,zt,0.016))
self.holes = add(self.holes,cylinder(-3.5/25.4,-2.7/25.4,zb,zt,.9/25.4/2))
self.holes = add(self.holes,cylinder(3.5/25.4,-2.7/25.4,zb,zt,.9/25.4/2))
class header_IMU_2738(part):
#
# Pololu 2736 MinIMU-9 v5 IMU
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment