Selaa lähdekoodia

tinysphear: the flare to the bottom connector is created upside down with respect to the flare to the capsules so the screw rotation has to be reversed, otherwise the screw holes do not match with the body

Fernando Pablo Lopez-Lezcano 8 vuotta sitten
vanhempi
sitoutus
8bb538dd21
1 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 6 6
      TinySpHEAR_mount_pcb.scad

+ 6 - 6
TinySpHEAR_mount_pcb.scad

@@ -214,7 +214,7 @@ module tetra_pcb_clear(length, width, thick, slot_depth, front, back, side, twis
 
 // the main body of the microphone mount
 
-module tetra_mount_body(height, radius, corner, lower_lip, upper_lip, clear) {
+module tetra_mount_body(height, radius, corner, lower_lip, upper_lip, screw_rotation, clear) {
     // lateral offset of pcb's
     side = 1.4;
     // twist of pcbs inside body
@@ -343,7 +343,7 @@ module tetra_mount_body(height, radius, corner, lower_lip, upper_lip, clear) {
 
 // flares from the body to the microphone stalk and cable
 
-module tetra_mount_flare(height, lip, transition, bot_radius, bot_corner, top_radius, windscreen) {
+module tetra_mount_flare(height, lip, transition, bot_radius, bot_corner, top_radius, screw_rotation, windscreen) {
     // bottom rounded box
     difference() {
         union() {
@@ -685,7 +685,7 @@ module tetra_capsule_array_mount(angles, mount_radius, mount_wall) {
 module render_tetra_capsule_flare(z_offset) {
     translate([0, 0, z_offset]) {
         tetra_mount_flare(pcb_hi_clear + pcb_hi_exp, 
-                    mount_lip, flare_height, box_radius + wall,  mount_corner, mount_radius + wall, true);
+                    mount_lip, flare_height, box_radius + wall,  mount_corner, mount_radius + wall, screw_rotation, true);
         translate([0, 0, pcb_hi_clear + pcb_hi_exp + flare_height]) {
             tetra_mount_array_stalk(stalk_height, mount_radius + wall);
         }
@@ -701,7 +701,7 @@ tetra_pcb_mount_height = pcb_length - pcb_low_exp - pcb_hi_exp;
 
 module render_tetra_pcb_mount(z_offset, showint) {
     translate([0, 0, z_offset]) {
-        tetra_mount_body(tetra_pcb_mount_height, box_radius + wall, mount_corner, mount_lip, mount_lip, showint);
+        tetra_mount_body(tetra_pcb_mount_height, box_radius + wall, mount_corner, mount_lip, mount_lip, screw_rotation, showint);
         // add ccrma logo
         rotate([0, 0, -90]) {
             translate([0, -(box_radius - 0.5), tetra_pcb_mount_height / 2]) {
@@ -721,7 +721,7 @@ module render_tetra_pcb_mount(z_offset, showint) {
 
 module render_tetra_cable_flare(z_offset, flip) {
     translate([0, 0, z_offset]) {
-        tetra_mount_flare(pcb_low_clear + pcb_low_exp, mount_lip, 20, box_radius + wall, mount_corner, cable_diam / 2 + wall, false);
+        tetra_mount_flare(pcb_low_clear + pcb_low_exp, mount_lip, 20, box_radius + wall, mount_corner, cable_diam / 2 + wall, - screw_rotation, false);
         translate([0, 0, pcb_low_clear + pcb_low_exp + 20]) {
             tetra_mount_cable_holder(10, cable_diam / 2 + wall);
         }
@@ -736,7 +736,7 @@ module render_tetra_connector_flare(z_offset, flip) {
         // make the upper sleeve shorter
         flare_adjust = 6.0;
         flare_height = 20;
-        tetra_mount_flare(pcb_low_clear + pcb_low_exp - flare_adjust, mount_lip, flare_height, box_radius + wall, mount_corner, conn_core_o_diam / 2, false);
+        tetra_mount_flare(pcb_low_clear + pcb_low_exp - flare_adjust, mount_lip, flare_height, box_radius + wall, mount_corner, conn_core_o_diam / 2, - screw_rotation, false);
         rotate([0, 0, -90]) translate([0, 0, pcb_low_clear + pcb_low_exp + 20 - flare_adjust]) {
             tetra_mount_connector_holder(conn_core_sleeve, conn_core_o_diam / 2, conn_core_diam / 2, conn_core_overlap, conn_core_s_diam / 2);
         }