From bb5ff995524d881c9a5471efb353be760fa9a013 Mon Sep 17 00:00:00 2001 From: Christopher Olah Date: Mon, 20 Dec 2010 19:40:42 -0500 Subject: [PATCH 1/4] z-motor-mount nows works with the new verteces, angle based. --- common.scad | 6 +++--- configuration.scad | 4 +--- z-motor-mount.scad | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/common.scad b/common.scad index b1aa305..11d038d 100644 --- a/common.scad +++ b/common.scad @@ -17,12 +17,12 @@ module motor() { module diagonal_rod(grip = true) { - if (grip) for (y=[-1,1]) translate([0,39*y,-40]) rotate([30*y,0,0]) cylinder (h=100,r=4.0); - if (!grip) for (y=[-1,1]) translate([0,39*y,-40]) rotate([30*y,0,0]) cylinder (h=100,r=4.2); + if (grip) for (y=[-1,1]) translate([0,15*y,0]) rotate([(90-vert_angle)*y,0,0]) translate([0,0,-50]) cylinder (h=100,r=4.0); + if (!grip) for (y=[-1,1]) translate([0,15*y,0]) rotate([(90-vert_angle)*y,0,0]) translate([0,0,-50]) cylinder (h=100,r=4.2); } module diagonal_rod_cube (slide = 0, size = [16,16,10]) { - for (y=[-1,1]) translate([0,39*y,-40]) rotate([30*y,0,0]) translate([0,0,50+slide]) cube(size=size,center=true); + for (y=[-1,1]) translate([0,15*y,0]) rotate([(90-vert_angle)*y,0,0]) translate([0,0,slide]) cube(size=size,center=true); } module vertical_rods() { diff --git a/configuration.scad b/configuration.scad index 5d324af..457b40a 100644 --- a/configuration.scad +++ b/configuration.scad @@ -51,7 +51,7 @@ threaded_rod_vertical_clearance = 2; tear_shape = false; //Use tear shaped holes for rods? not compatable with tight_grip = true -tight_grip = true; // Use tight holes where possible so that parts will self tap when +tight_grip = false; // Use tight holes where possible so that parts will self tap when // threaded rod is drilled in. Reduces need for nuts. // tight_grip = false not compatable with two_top_rods = false @@ -100,8 +100,6 @@ vert_angle = atan( 2*(build_volume[Z]+total_unprintable_area[Z])/(build_volume[Y echo("Frame Vertex Angle: ",vert_angle); - - // Legacy //================= diff --git a/z-motor-mount.scad b/z-motor-mount.scad index 2361f13..e51bed4 100644 --- a/z-motor-mount.scad +++ b/z-motor-mount.scad @@ -21,6 +21,7 @@ difference(){ for (y=[-1,1]) translate ([-40,30*y,0]) rotate([0,90,0]) cylinder(h = 70, r=8, $fn=30); }else { translate([-5,0,-0.5]) cube(size = [70,60,15], center = true); + translate ([-32,0,0]) diagonal_rod_cube(slide=9); } translate ([26.5,0,-8]) cylinder(h=15,r=8); } @@ -31,10 +32,10 @@ difference(){ //Diagonal rod and nut space translate ([-32,0,0]) diagonal_rod(); - translate ([-32,0,0]) diagonal_rod_cube(slide=4); //top rod(s): if (two_top_rods) { for (y=[-1,1]) translate([-50,30*y,0]) rotate([0,90,0]) cylinder(h = 100, r=4.5); + translate ([-32,0,0]) diagonal_rod_cube(slide=9); }else { translate([-50,0,0]) rotate([0,90,0]) cylinder(h = 22.5, r=4.0); } From 2302081a94121213103fa6764541616668b2811b Mon Sep 17 00:00:00 2001 From: Christopher Olah Date: Mon, 20 Dec 2010 19:45:09 -0500 Subject: [PATCH 2/4] Adds partlist file. Compiles to give partlist. WIP --- partlist.scad | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 partlist.scad diff --git a/partlist.scad b/partlist.scad new file mode 100644 index 0000000..700cb64 --- /dev/null +++ b/partlist.scad @@ -0,0 +1,16 @@ +//When built, this file will echo a partlist, specific to your configurations. + +include + + +echo("Part list for build_volume", build_volume); +echo("Many ", nut_diameter, " diameter nuts."); +echo ("4x stepper motor."); +echo("4x frame-vertex"); +echo("8x pla-bushing"); +echo("6x bar-clamp"); +echo("1x build platform mount"); +echo("1x ", build_volume[X], "x", build_volume[Y], "mm build platform"); +echo("2x z-motor-mount"); +echo("1x x-end-motor"); +echo("1x x-end-idler"); From e70f222ed2768c667ea561d3a94e20eeeac28ef8 Mon Sep 17 00:00:00 2001 From: Henning Meyer Date: Fri, 24 Dec 2010 21:07:03 +0100 Subject: [PATCH 3/4] avoid rebuilding everything - still not working for pulley.stl - why? --- Makefile | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 3c4c4ce..be9111c 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,13 @@ endif BUILDDIR=./build -# PARTS = bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing prusalogo rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount -## prusalogo.scad depends on bitmap.scad -PARTS = bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount z-motor-mount-onerod +#_PARTS = pulley bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing prusalogo rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount +### prusalogo.scad depends on bitmap.scad +_PARTS = pulley bar-clamp belt-clamp coupling endstop-holder frame-vertex pla-bushing prusalogo rod-clamp x-carriage x-end-idler x-end-motor y-slider-better z-motor-mount -.PHONY : usage all clean $(PARTS) MakerbotPlates MendelPlate +PARTS = $(patsubst %,$(BUILDDIR)/%.stl,$(_PARTS)) + +.PHONY : usage all clean _PARTS MakerbotPlates MendelPlate default : usage @@ -34,10 +36,9 @@ parts : $(PARTS) $(BUILDDIR) : mkdir -p $(BUILDDIR) -MakerbotPlates : $(BUILDDIR) $(BUILDDIR)/pulley.stl +MakerbotPlates : parts cp makerbot.scad $(BUILDDIR) - cp frame-vertex-foot.stl $(BUILDDIR) - cp prusalogo.stl $(BUILDDIR) +# cp prusalogo.stl $(BUILDDIR) cp y-motor-bracket_1off.stl $(BUILDDIR) cp z-bar-top-clamp_4off.stl $(BUILDDIR) $(OPENSCAD) -D render_plate=1 -s $(BUILDDIR)/mbplate1.stl $(BUILDDIR)/makerbot.scad @@ -46,21 +47,23 @@ MakerbotPlates : $(BUILDDIR) $(BUILDDIR)/pulley.stl $(OPENSCAD) -D render_plate=4 -s $(BUILDDIR)/mbplate4.stl $(BUILDDIR)/makerbot.scad $(OPENSCAD) -D render_plate=5 -s $(BUILDDIR)/mbplate5.stl $(BUILDDIR)/makerbot.scad -MendelPlate : $(BUILDDIR) $(BUILDDIR)/pulley.stl +MendelPlate : parts cp plate1.scad $(BUILDDIR) - cp frame-vertex-foot.stl $(BUILDDIR) - cp prusalogo.stl $(BUILDDIR) +# cp prusalogo.stl $(BUILDDIR) cp y-motor-bracket_1off.stl $(BUILDDIR) cp z-bar-top-clamp_4off.stl $(BUILDDIR) $(OPENSCAD) -s $(BUILDDIR)/plate1.stl $(BUILDDIR)/plate1.scad -$(PARTS) : $(BUILDDIR) $(BUILDDIR)/pulley.stl - @echo "Processing $@" - $(OPENSCAD) -s $(BUILDDIR)/$@.stl $@.scad +$(_PARTS) : + $(MAKE) $(BUILDDIR)/$@.stl + +$(BUILDDIR)/%.stl : $(BUILDDIR) %.scad + @echo "Processing $*" + $(OPENSCAD) -s $(BUILDDIR)/$*.stl $< $(BUILDDIR)/pulley.stl : $(BUILDDIR) @echo "Fetching nophead's pulley.stl..." - pushd $(BUILDDIR); wget http://www.thingiverse.com/download:5914; popd + pushd $(BUILDDIR); wget http://www.thingiverse.com/download:5914 -O pulley.stl; popd clean : $(RM) -rf $(BUILDDIR) From a77ea7912d9ca72a27c50d7f2fc63dbd6f1d8f73 Mon Sep 17 00:00:00 2001 From: Henning Meyer Date: Sat, 25 Dec 2010 22:53:20 +0100 Subject: [PATCH 4/4] fixed make rebuild/redownload issues --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index be9111c..7310315 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,8 @@ $(BUILDDIR)/%.stl : $(BUILDDIR) %.scad $(BUILDDIR)/pulley.stl : $(BUILDDIR) @echo "Fetching nophead's pulley.stl..." - pushd $(BUILDDIR); wget http://www.thingiverse.com/download:5914 -O pulley.stl; popd + wget http://www.thingiverse.com/download:5914 -O $(BUILDDIR)/pulley.stl + touch $(BUILDDIR)/pulley.stl clean : $(RM) -rf $(BUILDDIR)