Procházet zdrojové kódy

add a couple more parameters, first try at ccrma logo

Fernando Pablo Lopez-Lezcano před 10 roky
rodič
revize
71b503fac6
1 změnil soubory, kde provedl 29 přidání a 8 odebrání
  1. 29 8
      TinySpHEAR_mount_pcb.scad

+ 29 - 8
TinySpHEAR_mount_pcb.scad

@@ -217,7 +217,7 @@ module tetra_mount_flare(height, lip, transition, bot_radius, bot_corner, top_ra
 
 // top conical section that plugs into capsule array
 
-module tetra_capsule_array_mount() {
+module tetra_capsule_array_mount(angles) {
     difference() {
         translate([0, 0, 0]) {
             rotate([0, 0, 45]) {
@@ -227,7 +227,11 @@ module tetra_capsule_array_mount() {
                 }
             }
         }
-        
+        // indentations that match the two lower capsule holders
+        translate([0, 0, mount_top_height + (mic_radius - capsule_height) + capsule_height * sin(elev_angle)]) {
+            capsule(angles[0], -elev_angle, [], 0, 1, 0.1, 1);
+            capsule(angles[1], -elev_angle, [], 0, 1, 0.1, 1);
+        }
     }
 }
 
@@ -248,17 +252,23 @@ mount_corner = 10.0;
 pcb_low_exp = 12.0;
 pcb_hi_exp = 8.0;
 
-*tetra_mount_body(pcb_length - pcb_low_exp - pcb_hi_exp, box_radius + wall, mount_corner, mount_lip, mount_lip, 0);
+*translate([0, 0, -(pcb_length - pcb_low_exp - pcb_hi_exp + 10)]) {
+    tetra_mount_body(pcb_length - pcb_low_exp - pcb_hi_exp, box_radius + wall, mount_corner, mount_lip, mount_lip, 0);
+}
 
 // flare to microphone stalk
 //
 // add 12mm of exposed pcb coverage
 
 //translate([0, 0, pcb_length - pcb_low_exp - pcb_hi_exp + 10]) {
+flare_height = 50;
+stalk_height = 40;
+
 translate([0, 0, 0]) {
-    tetra_mount_flare(10 + pcb_hi_exp, mount_lip, 50, box_radius + wall,  mount_corner, 5, 40);
-    translate([0, 0, 10 + pcb_hi_exp + 50 + 40]) {
-        tetra_capsule_array_mount();
+    tetra_mount_flare(10 + pcb_hi_exp, mount_lip, flare_height, box_radius + wall,  mount_corner, 
+                    mount_radius + wall, stalk_height);
+    translate([0, 0, 10 + pcb_hi_exp + flare_height + stalk_height]) {
+        tetra_capsule_array_mount([-45, 135]);
     }
 }
 
@@ -266,7 +276,7 @@ translate([0, 0, 0]) {
 //
 // add 8mm of exposed pcb coverage
 
-*translate([0, 0, -10]) {
+*translate([0, 0, -(10 + pcb_length - pcb_low_exp - pcb_hi_exp + 10)]) {
     rotate([0, 180, 0]) {
         tetra_mount_flare(10 + pcb_low_exp, mount_lip, 20, box_radius + wall, mount_corner, cable_diam / 2, 10);
     }
@@ -275,7 +285,18 @@ translate([0, 0, 0]) {
 // the microphone itself
 rendermic = 1;
 
-translate([0, 0, 10 + pcb_hi_exp + 50 + 40 + 30]) {
+*rotate([90, 0, 0]) {
+    translate([0, 10, box_radius + 1.5]) {
+        scale([0.03, 0.03, 0.02]) {
+            surface(file = "ccrma-black.png", center = true, invert = true);
+        }
+    }
+}
+
+//capsule_radius = 7;
+//mic_radius = 11;
+
+*translate([0, 0, 5 + pcb_hi_exp + flare_height + stalk_height + 30]) {
     // all four capsules
     capsule(45, elev_angle, leg_angles_top, 60, 0, 0.0, 0);
     capsule(-135, elev_angle, leg_angles_top, 60, 0, 0.0, 0);