add a basic front side for slider

This commit is contained in:
lukas 2021-09-09 16:23:19 +02:00
parent 87f8985718
commit 7bb43947b1
4 changed files with 74 additions and 30 deletions

View File

@ -9,7 +9,8 @@ Build_STL:
- openscad -o horizontal_angle_bracket.stl horizontal_angle_bracket.scad
- openscad -o ZMotorHalter.stl ZMotorHalter.scad
- openscad -o SliderRight.stl SliderRight.scad
- openscad -o Slider.stl Slider.scad
- openscad -o Slider_back.stl Slider_back.scad
- openscad -o Slider_front.stl Slider_front.scad
artifacts:
expire_in: 2 days
paths:

View File

@ -1,30 +1,13 @@
use <Holes.scad>;
include <Slider_dims.scad>;
$fn=75;
// distance between two rods
holeDist=65;
// diameter of rod sticks
rodDiameter=8;
// overall height
heightMain=90;
width=60;
depth=10;
bearingLength=24;
bearingDiam=15;
twoRodSize=2.2;
middleCylinderRad=2.5;
middleCylinderOuterRad=4;
rollWithRodDist=13.6; // rolle mit rod drauf
difference() {
body();
union() {
body();
zcube();
}
dist=(heightMain-holeDist)/2;
translate([0,0,dist]) bearingHalfHole();
@ -47,7 +30,10 @@ module body() {
cube([width-edgeRound*2, depth/2, heightMain-edgeRound*2]);
rotate([-90, 0, 0]) cylinder(r=edgeRound,h=depth/2);
}
}
// add the offset cube with the triangle to have space for the belts in it
module zcube() {
cubez=heightMain/2-rollWithRodDist;
translate([0, -5, cubez]) cube([width, 5, rollWithRodDist]);
@ -79,22 +65,22 @@ module beltHolder() {
}
module MountHoles() {
translate([10,0,65]) {
translate([holeLeftRightMargin,0,holeTop]) {
rotate([0,0,90]) #M3Hole(10);
translate([0,5,0]) rotate([0,0,90]) M3Nut(5);
}
translate([width-10,0,65]) {
translate([width-holeLeftRightMargin,0,holeTop]) {
rotate([0,0,90]) #M3Hole(10);
translate([0,5,0]) rotate([0,0,90]) M3Nut(5);
}
translate([10,0,30]) {
translate([holeLeftRightMargin,0,holeBottom]) {
translate([0,-5,0]) rotate([0,0,90]) #M3Hole(15);
translate([0,5,0]) rotate([0,0,90]) M3Nut(10);
}
translate([width-10,0,30]) {
translate([width-holeLeftRightMargin,0,holeBottom]) {
translate([0,-5,0]) rotate([0,0,90]) #M3Hole(15);
translate([0,5,0]) rotate([0,0,90]) M3Nut(10);
}

28
Slider_dims.scad Normal file
View File

@ -0,0 +1,28 @@
$fn=75;
// distance between two rods
holeDist=65;
// diameter of rod sticks
rodDiameter=8;
// overall height
heightMain=90;
width=60;
depth=10;
bearingLength=24;
bearingDiam=15;
twoRodSize=2.2;
middleCylinderRad=2.5;
middleCylinderOuterRad=4;
rollWithRodDist=13.6; // rolle mit rod drauf
// hole positions
holeLeftRightMargin=10;
holeBottom=30;
holeTop=65;

29
Slider_front.scad Normal file
View File

@ -0,0 +1,29 @@
use <Slider_back.scad>
use <Holes.scad>
include <Slider_dims.scad>
difference() {
translate([0,-10,0]) body();
dist=(heightMain-holeDist)/2;
translate([0,0,dist]) bearingHalfHole();
translate([0,0,dist+holeDist]) bearingHalfHole();
zcube();
cubecenter=heightMain/2-rollWithRodDist/2;
translate([0, -5, heightMain/2]) cube([width, 5, rollWithRodDist]);
// add the 4 mountholes
translate([0, -5, 0]) MountHolesFront();
}
// Similar function from Slider_back without the hexagonal holes
module MountHolesFront() {
translate([holeLeftRightMargin,-5,holeTop]) rotate([0,0,90]) #M3Hole(10);
translate([width-holeLeftRightMargin,-5,holeTop]) rotate([0,0,90]) #M3Hole(10);
translate([holeLeftRightMargin,-5,holeBottom]) rotate([0,0,90]) #M3Hole(10);
translate([width-holeLeftRightMargin,-5,holeBottom]) rotate([0,0,90]) #M3Hole(10);
}