From: Jan "Yenya" Kasprzak Date: Mon, 20 Jul 2015 14:15:33 +0000 (+0200) Subject: hc-sr04.scad: cable hole X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=openparking.git;a=commitdiff_plain;h=9ffdbb358d9e188174b0836be0e11de6fe793d16 hc-sr04.scad: cable hole + small adjustments (size of the PCB, thickness of the cable hole wall, etc.) --- diff --git a/things/hc-sr04.scad b/things/hc-sr04.scad index 334ac63..e660cad 100644 --- a/things/hc-sr04.scad +++ b/things/hc-sr04.scad @@ -3,12 +3,12 @@ infty = 100; wall = 1.5; -cyl_r = 8 + 0.6; -cyl_x = 26.6 / 2; +cyl_r = 8 + 0.8; +cyl_x = 26.4 / 2; cyl_h = 8; // above pcb, max 13.8; -pcb_x = 45.6 + 1.2; -pcb_y = 20.2 + 1.0; +pcb_x = 45.6 + 1.5; +pcb_y = 20.2 + 1.3; xtal_h = 5; pcb_supp = 3; // side support thickness pcb_h = 8; // 1.2 + space for connector etc @@ -40,10 +40,10 @@ module sensor() { } // cable cover hole hull() { - translate([-conn_x0/2+wall, conn_y+pcb_y/2-eps, conn_z0-wall-eps]) - cube([conn_x0-2*wall, conn_len+2*eps, pcb_h+cyl_h+wall+eps-conn_z0]); - translate([-conn_x/2+wall, conn_y+pcb_y/2-eps, -wall]) - cube([conn_x-2*wall, conn_len+2*eps, pcb_h+cyl_h+wall-conn_z0]); + translate([-conn_x0/2+wall, pcb_y/2-eps, conn_z0-1.5*wall-eps]) + cube([conn_x0-2*wall, conn_y+conn_len+2*eps, pcb_h+cyl_h+wall+eps-conn_z0]); + translate([-conn_x/2+1.5*wall, pcb_y/2-eps, -wall]) + cube([conn_x-3*wall, conn_y+conn_len+2*eps, pcb_h+cyl_h+wall-conn_z0]); } // cylinders