add mid-part from z-holder

This commit is contained in:
lukas 2021-12-19 19:20:46 +01:00
parent 9a0fe87ae3
commit 4419c00713
5 changed files with 152 additions and 42 deletions

View File

@ -11,8 +11,8 @@ module Slider_back() {
dist=(heightMain-holeDist)/2; dist=(heightMain-holeDist)/2;
translate([0,0,dist]) bearingHalfHole(); translate([0,0,dist]) bearingHalfHoles();
translate([0,0,dist+holeDist]) bearingHalfHole(); translate([0,0,dist+holeDist]) bearingHalfHoles();
cubecenter=heightMain/2-rollWithRodDist/2; cubecenter=heightMain/2-rollWithRodDist/2;
translate([0, 0, heightMain/2]) cube([width, 5, rollWithRodDist]); translate([0, 0, heightMain/2]) cube([width, 5, rollWithRodDist]);
@ -44,12 +44,19 @@ module zcube() {
translate([0, 0, cubez]) rotate([-90,0,-90]) linear_extrude(width) #polygon([[0,0],[5,0],[0,5]]); translate([0, 0, cubez]) rotate([-90,0,-90]) linear_extrude(width) #polygon([[0,0],[5,0],[0,5]]);
} }
module bearingHalfHole() { function getBearingLength() = bearingLength;
module bearingHalfHoles() {
sideDist=3; sideDist=3;
rotate([0, 90, 0]) cylinder(h = width, d = 8+2); // we are defining +1mm to fit the rod in the hole... //rotate([0, 90, 0]) cylinder(h = width, d = 8+2); // we are defining +1mm to fit the rod in the hole...
translate([sideDist,0,0]) rotate([0, 90, 0]) cylinder(h = bearingLength, d = bearingDiam); translate([sideDist,0,0]) bearingHalfHole();
translate([width-bearingLength-sideDist,0,0]) rotate([0, 90, 0]) cylinder(h = bearingLength, d = bearingDiam); translate([width-bearingLength-sideDist,0,0]) bearingHalfHole();
}
module bearingHalfHole(rodln=bearingLength+10) {
#translate([(bearingLength - rodln)/2,0,0]) rotate([0, 90, 0]) cylinder(h = rodln, d = 8+2);
rotate([0, 90, 0]) cylinder(h = bearingLength, d = bearingDiam);
} }
module beltHolder() { module beltHolder() {

72
ZSlider_holder.scad Normal file
View File

@ -0,0 +1,72 @@
use <Slider_back.scad>;
use <helpers/Holes.scad>;
$fn=75;
width = 30;
length= 40;
height = 10;
module body() {
edgeRound=5;
translate([edgeRound, edgeRound, 0]) minkowski() {
cube([width-edgeRound*2,length-edgeRound*2,height/2]);
rotate([0, 0, 0]) cylinder(r=edgeRound,h=height/2);
}
}
main();
module main() {
difference() {
body();
#translate([(width-getBearingLength())/2,20,height]) bearingHalfHole();
#holes(11);
}
}
// the four mount holes
module holes(h,nuts=true,head=false) {
translate([7.5,7.5,0]) {
rotate([0,-90,0]) M3Hole(h);
if (nuts) {
rotate([0,-90,0]) M3Nut(5);
}
if (head) {
translate([0,0,h-5]) rotate([0,-90,0]) M3Head(5);
}
}
translate([22.5,7.5,0]) {
rotate([0,-90,0]) M3Hole(h);
if (nuts) {
rotate([0,-90,0]) M3Nut(5);
}
if (head) {
translate([0,0,h-5]) rotate([0,-90,0]) M3Head(5);
}
}
translate([7.5,32.5,0]) {
rotate([0,-90,0]) M3Hole(h);
if (nuts) {
rotate([0,-90,0]) M3Nut(5);
}
if (head) {
translate([0,0,h-5]) rotate([0,-90,0]) M3Head(5);
}
}
translate([22.5,32.5,0]) {
rotate([0,-90,0]) M3Hole(h);
if (nuts) {
rotate([0,-90,0]) M3Nut(5);
}
if (head) {
translate([0,0,h-5]) rotate([0,-90,0]) M3Head(5);
}
}
}

View File

@ -1,35 +0,0 @@
use <Slider_back.scad>;
use <helpers/Holes.scad>;
$fn=75;
main();
module main() {
difference() {
cube([30,40,10]);
translate([0,20,10]) bearingHalfHole();
holes();
}
}
// the four mount holes
module holes() {
translate([7.5,7.5,0]) {
rotate([0,-90,0]) M3Hole(10);
rotate([0,-90,0]) M3Nut(5);
}
translate([22.5,7.5,0]) {
rotate([0,-90,0]) M3Hole(10);
rotate([0,-90,0]) M3Nut(5);
}
translate([7.5,32.5,0]) {
rotate([0,-90,0]) M3Hole(10);
rotate([0,-90,0]) M3Nut(5);
}
translate([22.5,32.5,0]) {
rotate([0,-90,0]) M3Hole(10);
rotate([0,-90,0]) M3Nut(5);
}
}

58
ZSlider_mid.scad Normal file
View File

@ -0,0 +1,58 @@
use <Slider_back.scad>;
use <helpers/Holes.scad>;
use <ZSlider_holder.scad>;
$fn=75;
module roundcube(x,y,z,rad=5) {
hull() {
translate([rad,rad,0]) cylinder(r=rad,h=z);
translate([x-rad,rad,0]) cylinder(r=rad,h=z);
translate([x-rad,y-rad,0]) cylinder(r=rad,h=z);
translate([rad,y-rad,0]) cylinder(r=rad,h=z);
}
}
module body() {
//cube([49,40,10]);
difference(){
roundcube(49,40,20);
translate([4.5,0,10]) cube([40.3,40,11]);
}
}
difference() {
body();
#translate([(30 - getBearingLength())/2,20,0]) bearingHalfHole(80);
hholes();
bigholes();
}
use <ZSlider_holder.scad>;
translate([0,0,-10]) main();
module hholes() {
holes(11,false, true);
}
module bigholes() {
translate([15,7.5,0]) rotate([0,-90,0]) {
M4Hole(11);
M4Head(5);
};
translate([15,32.5,0]) rotate([0,-90,0]) {
M4Hole(11);
M4Head(5);
};
translate([49-15,7.5,0]) rotate([0,-90,0]) {
M4Hole(11);
M4Head(5);
};
translate([49-15,32.5,0]) rotate([0,-90,0]) {
M4Hole(11);
M4Head(5);
};
}

View File

@ -1,9 +1,13 @@
//https://de.wikipedia.org/wiki/Durchgangsbohrung
M3HoleDiam = 3.4; M3HoleDiam = 3.4;
M4HoleDiam = 4.4; M4HoleDiam = 4.4;
M3NutDiam=6.01+.4; M3NutDiam=6.01+.4;
M3HeadDiam = 5.8; _printoffset=.3;
M3HeadDiam = 5.5+_printoffset;
M4HeadDiam = 7+_printoffset;
module M3Hole(thickness) { module M3Hole(thickness) {
rotate([0, 90, 0]) cylinder(h = thickness, d = M3HoleDiam); rotate([0, 90, 0]) cylinder(h = thickness, d = M3HoleDiam);
@ -19,4 +23,8 @@ module M3Nut(thickness) {
module M3Head(thickness) { module M3Head(thickness) {
rotate([0, 90, 0]) cylinder(h = thickness, d = M3HeadDiam); rotate([0, 90, 0]) cylinder(h = thickness, d = M3HeadDiam);
}
module M4Head(thickness) {
rotate([0, 90, 0]) cylinder(h = thickness, d = M4HeadDiam);
} }