]> git.gag.com Git - hw/altusmetrum/blob - packages/sot23-5.scad
data sheet for new MAX-M10S on TeleGPS v3.0
[hw/altusmetrum] / packages / sot23-5.scad
1
2 module sot23_5()
3 {
4
5         // pin prototype
6         module pin(length, height, thick)
7         {
8                 linear_extrude(height=thick)
9                         scale([length, -height, 1])
10                                 polygon([[0.3400,0.0000],[0.3900,0.0100],[0.4300,0.0300],[0.4600,0.0600],[0.4789,0.0908],[0.6279,0.8307],[0.6500,0.8600],[0.6900,0.8900],[0.7300,0.9000],[1.0000,0.9000],[1.0000,1.0000],[0.6700,1.0012],[0.6100,0.9900],[0.5600,0.9600],[0.5300,0.9200],[0.5200,0.9000],[0.3721,0.1693],[0.3500,0.1400],[0.3100,0.1100],[0.2700,0.1000],[0.0000,0.1000],[0.0000,0.0000]]);
11         }
12
13         rotate([90,0,-90]) scale([1.13,1.13,1.13]) translate([-0.9, 0.4, -2.1 - 0.43/2]) {
14                 // body
15                 color([0.1,0.1,0.1])
16                         linear_extrude(height=2.9)
17                                 polygon([[-0.55,0],[-0.45,0.53],[0.45,0.53],[0.55,0],[0.45,-0.35],[-0.45,-0.35]]);
18
19                 // 3 pins
20                 color([0.9, 0.9, 0.9]) {
21                         translate([0.5,0,0.5-0.43/2])
22                                 pin(0.5, 0.4, 0.43);
23
24                         translate([0.5,0,1.4-0.43/2])
25                                 pin(0.5, 0.4, 0.43);
26
27             translate([0.5,0,2.3-0.43/2])
28                                 pin(0.5, 0.4, 0.43);
29             
30                         translate([-0.5,0,0.5-0.43/2])
31                                 pin(-0.5, 0.4, 0.43);
32             
33             translate([-0.5,0,2.3-0.43/2])
34                                 pin(-0.5, 0.4, 0.43);
35                 }
36         }
37 }