build top and bottom separately
authordaniel watson <ozzloy@gmail.com>
Wed, 30 Oct 2013 17:49:54 +0000 (10:49 -0700)
committerdaniel watson <ozzloy@gmail.com>
Wed, 30 Oct 2013 17:49:54 +0000 (10:49 -0700)
not sure why, but building the top and bottom by cutting
 the whole in 2 pieces would print waay of the platform.
 the nozzle would start extruding 5 inches above the
 platform.
constructing the top and bottom separately is printing as expected.

caster-standoff.scad

index 7325c2f9153e6c4b71333607be69d94885b43955..32b301b98fd14446283b6adbe82de8e308bbbffe 100644 (file)
@@ -72,25 +72,24 @@ module nut(size, height){
 
 module nuts(){
   translate([standoff_radius, 0, nut_height/2])
 
 module nuts(){
   translate([standoff_radius, 0, nut_height/2])
-    nut(nut_short_side, nut_height);
+    nut(nut_short_side, nut_height + .1);
   translate([-standoff_radius, 0, nut_height/2])
   translate([-standoff_radius, 0, nut_height/2])
-    nut(nut_short_side, nut_height);}
+    nut(nut_short_side, nut_height + .1);}
 
 module _2_screw (){
   //measured with calipers
 
 module _2_screw (){
   //measured with calipers
-  screw_height = 8;
+  screw_length = 8;
   thread_radius = 2.17 / 2 - 0.1; // subtract 0.1 to make squeeze fit
   head_height = 1.8;
   head_radius = 4.1 / 2;
   cylinder(r = thread_radius, h = screw_height, $fn = 20);
   cylinder(r = head_radius, h = head_height, $fn = 20);}
 
   thread_radius = 2.17 / 2 - 0.1; // subtract 0.1 to make squeeze fit
   head_height = 1.8;
   head_radius = 4.1 / 2;
   cylinder(r = thread_radius, h = screw_height, $fn = 20);
   cylinder(r = head_radius, h = head_height, $fn = 20);}
 
-module caster_standoff(){
+module caster_standoff_deck_side(){
   difference(){
   difference(){
-    union(){
-      cylinder(h = standoff_height, r = standoff_radius);
-      translate([0, 0, standoff_height - caster_flange_height])
-        caster_flange();}
+    cylinder(h = standoff_height - caster_flange_height,
+             r = standoff_radius,
+             $fn = 50);
     translate([0, 0, standoff_height - caster_flange_screw_length * 1.1 + 0.1])
       scale([1, 1, 1.1])
         caster_flange_screws();
     translate([0, 0, standoff_height - caster_flange_screw_length * 1.1 + 0.1])
       scale([1, 1, 1.1])
         caster_flange_screws();
@@ -107,13 +106,18 @@ module caster_standoff(){
     rotate([0, 0, 45 + 90 * ii])
       deck_flange_reinforcement();}}
 
     rotate([0, 0, 45 + 90 * ii])
       deck_flange_reinforcement();}}
 
-module caster_standoff_top(){
-  translate([0, 0, caster_flange_height - standoff_height]){
-    difference(){
-      caster_standoff();
-      translate([-deck_flange_radius, -deck_flange_radius, -0.1])
-        cube([deck_flange_radius * 2,
-              deck_flange_radius * 2,
-              standoff_height - caster_flange_height + 0.1]);}}}
+module caster_standoff_caster_side(){
+  difference(){
+    caster_flange();
+    translate([0, 0, caster_flange_height - 0.7]){
+      rotate([180, 0, 0]){
+        _2_screw();}}
+    // make hole to get to screw head
+    translate([0, 0, caster_flange_height - 0.8]){
+      cylinder(r = 4.1 / 2, h = 10, $fn = 20);}
+    translate([0, 0, -.1]){
+      caster_flange_screws();}}}
 
 
-caster_standoff_top();
+caster_standoff_deck_side();
+translate([caster_flange_width / 2 + deck_flange_radius + 1, 0, 0]){
+  caster_standoff_caster_side();}