add sot23-6 scad model
authorBdale Garbee <bdale@gag.com>
Thu, 29 Oct 2020 16:44:25 +0000 (10:44 -0600)
committerBdale Garbee <bdale@gag.com>
Thu, 29 Oct 2020 16:44:25 +0000 (10:44 -0600)
packages/SOT23-6.fp
packages/sot23-5.scad
packages/sot23-6.scad [new file with mode: 0644]

index 024ad3fa79db7311ca4271e9edb535afd655d47d..7b497e47a87a748f3a852820545d6990ec59048b 100644 (file)
@@ -1,6 +1,7 @@
 
 Element["" "SOT23-6" "" "" 5615 7584 -10161 -12011 0 100 ""]
 (
+       Attribute("openscad" "sot23-6")
        Pad[-3739 -5708 -3739 -4527 2756 984 3356 "pin6" "6" "square"]
        Pad[-3739 4528 -3739 5709 2756 984 3356 "pin1" "1" "square,edge2"]
        Pad[0 -5708 0 -4527 2756 984 3356 "pin5" "5" "square"]
index 10ff8f711b9e7dd2d404ef77c0c643deda04af93..2f29327ffdd985a38ed255a301fa1ed8d9633ab1 100644 (file)
@@ -1,5 +1,5 @@
 
-module sot23()
+module sot23_5()
 {
 
        // pin prototype
@@ -30,10 +30,8 @@ module sot23()
                        translate([-0.5,0,0.5-0.43/2])
                                pin(-0.5, 0.4, 0.43);
             
-           translate([-0.5,0,2.3-0.43/2])
+            translate([-0.5,0,2.3-0.43/2])
                                pin(-0.5, 0.4, 0.43);
                }
        }
 }
-
-sot23();
diff --git a/packages/sot23-6.scad b/packages/sot23-6.scad
new file mode 100644 (file)
index 0000000..cf5dff8
--- /dev/null
@@ -0,0 +1,41 @@
+
+module sot23_6()
+{
+
+       // pin prototype
+       module pin(length, height, thick)
+       {
+               linear_extrude(height=thick)
+                       scale([length, -height, 1])
+                               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]]);
+       }
+
+       rotate([90,0,-90]) scale([1.13,1.13,1.13]) translate([-0.9, 0.4, -2.1 - 0.43/2]) {
+               // body
+               color([0.1,0.1,0.1])
+                       linear_extrude(height=2.9)
+                               polygon([[-0.55,0],[-0.45,0.53],[0.45,0.53],[0.55,0],[0.45,-0.35],[-0.45,-0.35]]);
+
+               // 3 pins
+               color([0.9, 0.9, 0.9]) {
+                       translate([0.5,0,0.5-0.43/2])
+                               pin(0.5, 0.4, 0.43);
+
+                       translate([0.5,0,1.4-0.43/2])
+                               pin(0.5, 0.4, 0.43);
+
+            translate([0.5,0,2.3-0.43/2])
+                               pin(0.5, 0.4, 0.43);
+            
+                       translate([-0.5,0,0.5-0.43/2])
+                               pin(-0.5, 0.4, 0.43);
+            
+            translate([-0.5,0,1.4-0.43/2])
+                               pin(-0.5, 0.4, 0.43);
+            
+            translate([-0.5,0,2.3-0.43/2])
+                               pin(-0.5, 0.4, 0.43);
+               }
+       }
+}
+