From 3bbb71b13088210a210390af496c5d077e63b8ed Mon Sep 17 00:00:00 2001 From: Emard Date: Fri, 31 Aug 2018 20:34:14 +0200 Subject: [PATCH] box: updating dimensions and enlarging screw feet for increased mechanical strength --- box/ulx3s-v19.scad | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/box/ulx3s-v19.scad b/box/ulx3s-v19.scad index 266375c..67e6e3e 100644 --- a/box/ulx3s-v19.scad +++ b/box/ulx3s-v19.scad @@ -12,6 +12,7 @@ include // Font color: at height 2.7: M600; change filament // button pins Pins = 1; // button pins + Pin = 0; // one pin //Texte façade - Front text Text = 1;// [0:No, 1:Yes] @@ -220,10 +221,12 @@ module top_add() } for(i = [0:3]) { + upbase=1; translate([0,0,Height-Fh/2]) translate(Fxy[i]) { - cylinder(d=6,h=Fh,$fn=12,center=true); + translate([0,0,-upbase/2]) + cylinder(d1=6,d2=11,h=Fh-upbase,$fn=12,center=true); // small in-hole centering cylinders translate([0,0,-Fh/2-(PCBThick-0.1-0.001)]) cylinder(d=3,h=PCBThick-0.1,$fn=32); @@ -231,20 +234,13 @@ module top_add() } } - -module button_pins() +module button_pin() { pin_d1=6; // top dia pin_h=Height/2+2; // total height pin_d2=8; // button touch dia pin_h2=2; // button touch h - //footx = 2*Thick+FootClrX; - //footy = Thick+FootClrY; - - translate([Footx,Footy,Height/2+0.5]) - for(i = [0:6]) - translate(button_pos[i]) union() { cylinder(d=pin_d1,h=pin_h,$fn=32); @@ -252,6 +248,14 @@ module button_pins() } } +module button_pins() +{ + translate([Footx,Footy,Height/2+0.5]) + for(i = [0:6]) + translate(button_pos[i]) + button_pin(); +} + module top_cut() { @@ -295,10 +299,12 @@ BFclr = 0.5; // bottom feet clearance // add bottom custom feet module bottom_add() { + upbase=1; bfh=Height-Fh-PCBThick-BFclr; // bottom feet height for(i=[0:3]) translate(Fxy[i]) - cylinder(d=6.5,h=bfh,$fn=12,center=false); + translate([0,0,upbase]) + cylinder(d2=6.5,d1=8,h=bfh-upbase,$fn=12,center=false); } @@ -442,3 +448,6 @@ color( Couleur1,1){ if(Pins==1) button_pins(); + +if(Pin==1) + button_pin();