X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=crossbar-computer-led-mount.scad;h=535c680599d00addd496d5221d0a191e1425fe70;hp=e1118f23b2c8ed65df144b6ad057ffd6678211b1;hb=f1824fce4c0b4420e0ba377d8d8a4e43e42e4a7d;hpb=c6e69a2c4507b6cc616a02395c102ead1448a5d3 diff --git a/crossbar-computer-led-mount.scad b/crossbar-computer-led-mount.scad index e1118f2..535c680 100644 --- a/crossbar-computer-led-mount.scad +++ b/crossbar-computer-led-mount.scad @@ -12,26 +12,26 @@ backfront_space_inside = 12; width_space_inside = 10; backfront_mate_size = 25; -tower_frontheight = 20; +tower_frontheight = 10; +tower_base_height = 20; tower_slot_width = 3; -cableclamp_ctie_width = 3 + 0.5; -cableclamp_ctie_thick = 2 + 0.5; +cableclamp_ctie_width = 4.0 + 1.0; +cableclamp_ctie_thick = 2.5 + 0.5; -lidclamp_ctie_width = 4.0 + 0.5; +lidclamp_ctie_width = 4.0 + 1.0; lidclamp_ctie_thick = 2.5 + 0.5; -base_ctie_width = 4.0 + 0.5; +base_ctie_width = 4.0 + 1.0; base_ctie_thick = 2.5 + 0.5; -tube_ctie_width = 5 + 0.5; -tube_ctie_thick = 3 + 0.5; +tube_ctie_width = 4.0 + 1.0; +tube_ctie_thick = 2.5 + 0.5; // tuning tower_over_angle = 45; tower_wall_thick = 1.6; -tower_base_height = 10; tower_forehead_angle = 30; lid_wall_thick = 1.6; lid_slop = 0.75; @@ -41,9 +41,19 @@ base_ctie_anchor = 5; tube_ctie_anchor = 5; protrusion_size = 2; protrusion_none_frontback = 10; -protrusion_slop = 0.5; +protrusion_slop = 0.25; cableclamp_ctie_z = tower_frontheight/2; +towerleg_backfront = 5; +towerleg_width = 3; +towerleg_foot_gap = 2; +towerleg_foot_backfront = 20; +towerleg_foot_width = 40; +towerleg_foot_height = 10; +towerleg_yslope = 0.7; +towerleg_xslope = 0.3; +echo(sqrt(towerleg_yslope*towerleg_yslope+towerleg_xslope*towerleg_xslope)); + //--- tests --- test_width = 24; @@ -184,12 +194,12 @@ module TowerMain(){ module LedHole(){ translate([0, led_head_y, led_head_z]) - rotate([90 + led_angle]) + rotate([90 + led_angle, 0, 0]) translate([0,0,-10]) - cylinder(r=led_dia/2, h=led_depth+0.1+10, $fn=30); + cylinder(r=led_dia/2, h=led_depth+1+10, $fn=26, $fa=10); } -module Tower(){ ////toplevel +module TowerProper(){ difference(){ TowerMain(); LedHole(); @@ -227,6 +237,28 @@ module Tower(){ ////toplevel } } +module Tower(){ ////toplevel + TowerProper(); + for (mir=[0,1]) { + mirror([mir,0,0]){ + translate([0, + tower_rearwall_y + 0.1, + -1]) + mirror([0,0,1]) + multmatrix([[1,0, towerleg_xslope,0], + [0,1,-towerleg_yslope,0], + [0,0,1,0], + [0,0,0,1]]) + cube([towerleg_width, towerleg_backfront, tower_base_height-2]); + } + } + translate([-towerleg_foot_width/2, + tower_rearwall_y - towerleg_foot_gap, + -tower_base_height]) + mirror([0,1,0]) + cube([towerleg_foot_width, towerleg_foot_backfront, towerleg_foot_height]); +} + module TowerMainHull(){ hull(){ TowerMain(); } } @@ -236,11 +268,11 @@ module Lid(){ difference(){ minkowski(){ TowerMainHull(); - sphere(r=lid_wall_thick+lid_slop, $fn=4); + sphere(r=lid_wall_thick+lid_slop, $fn=8); } minkowski(){ TowerMainHull(); - sphere(r=lid_slop, $fn=4); + sphere(r=lid_slop, $fn=6); } } translate([-50,-50,led_head_z]) cube([100,100,100]); @@ -263,7 +295,7 @@ module BaseRegistrationProtrusion(extra){ } } -module Base(){ ////toplevel +module Base(){ difference(){ mirror([0,0,1]){ hull(){ @@ -273,9 +305,9 @@ module Base(){ ////toplevel cube([base_width, base_backfront, crossbar_dia/2]); } } - translate([-50, base_backfront/2, -base_ctie_anchor_eff]) + translate([0, base_backfront/2, -base_ctie_anchor_eff]) cube([100, base_ctie_width, base_ctie_thick], center=true); - translate([-50, base_backfront/2, -base_height + tube_ctie_anchor_eff]) + translate([0, base_backfront/2, -base_height + tube_ctie_anchor_eff]) cube([100, tube_ctie_width, tube_ctie_thick], center=true); translate([0, -1, -(base_height + crossbar_dia/2)]) rotate([-90,0,0]) @@ -305,4 +337,4 @@ module Demo(){ //BaseRegistrationProtrusion(); //Base(); //BaseT(); -Demo(); +//Demo();