Преглед на файлове

change pcb dimensions and tolerances, adjust parameters for ccrma logo

Fernando Pablo Lopez-Lezcano преди 10 години
родител
ревизия
ecfb059220
променени са 1 файла, в които са добавени 22 реда и са изтрити 12 реда
  1. 22 12
      TinySpHEAR_mount_pcb.scad

+ 22 - 12
TinySpHEAR_mount_pcb.scad

@@ -32,12 +32,28 @@ include <CCRMA_logo.scad>;
 ////
 
 // size of Zapnspark printed circuit board
-pcb_length = 81.915;
-// measured = 16.26 (fit = 0.25)
+// (ideal size in Kicad design)
+pcb_length = 79.375;
 pcb_width = 19.050;
-// measured = 1.33 (fit = 0.28)
+// (specification of ultimaker pcb material)
 pcb_thickness = 1.61;
 
+// tolerance to add to length and width of pcb
+//
+// printed with pcb_fit = 0.25 -> 19.05 + 0.25 = 19.3 (ideal printed)
+//   measured printed = 19.04 - 0.25 = 18.79 (ultimaker 2 plus, 2016.08.23)
+//   measured pcb width = 18.85 (diff = 0.06, othermill)
+//
+pcb_fit = 0.2;
+
+// tolerance add to thickness of pcb
+//
+// printed with pcb_tfit = 0.3 -> 1.61 + 0.3 = 1.91 (ideal printed)
+// measured print channel = 1.85 : 0.06 thinner (ultimaker 2 plus, 2016.08.23)
+// measured pcb thickness = 1.58 (othermill)
+//
+pcb_tfit = 0.15;
+
 // we leave part of the pcb exposed on the bottom of the body so that we
 // can solder the wires that connect the microphone with the
 // preamplifier, same at the top of the pcb to solder the wires
@@ -63,12 +79,6 @@ mount_corner = 15.0;
 flare_height = 50;
 stalk_height = 40;
 
-// add to length and width of pcb
-pcb_fit = 0.25 / 2;
-
-// add to thickness of pcb
-pcb_tfit = 0.3;
-
 // lip fit for flares
 // 0.20 seems to be fine (0.3 was too lose)
 lip_fit = 0.20 / 2;
@@ -127,7 +137,7 @@ module pcb_clear(length, width, thick, slot_depth, front, back) {
 module tetra_pcb_clear(length, width, thick, slot_depth, front, back) {
     for (rot = [0, 90, 180, 270]) {
         rotate([0, 0, rot]) {
-            pcb_clear(pcb_length + 2*pcb_fit, pcb_width + 2*pcb_fit, pcb_thickness + pcb_tfit, slot_depth, front, back);
+            pcb_clear(pcb_length + pcb_fit, pcb_width + pcb_fit, pcb_thickness + pcb_tfit, slot_depth, front, back);
         }
     }
 }
@@ -513,11 +523,11 @@ module render_tetra_pcb_mount(z_offset, showint) {
     }
     // add ccrma logo
     rotate([0, 0, -90]) {
-        translate([0, -(box_radius + 0.5), tetra_pcb_mount_height / 2]) {
+        translate([0, -(box_radius - 0.5), tetra_pcb_mount_height / 2]) {
             rotate([90, 270, 0]) {
                 logo_scale = 1/2;
                 scale([logo_scale, logo_scale, 1.0]) {
-                    ccrma_logo(1.0);
+                    ccrma_logo(1.75);
                 }
             }
         }