finish holes

This commit is contained in:
lukas 2021-08-27 22:32:05 +02:00
parent ca56434f15
commit 0ca4c9f80f
2 changed files with 42 additions and 26 deletions

View File

@ -18,7 +18,7 @@ Motorhalter();
module Motorhalter() { module Motorhalter() {
render() difference() { render() difference() {
mainbody(); mainbody();
translate([motorwidth, wanddickelinks, 0]) motorholes(); translate([motorwidth, wanddickelinks, 0]) motorholes(wanddickemotor);
leftholes(); leftholes();
} }
} }
@ -35,17 +35,17 @@ module mainbody() {
polygon([[0, 0], [0, motorheight * 2 / 3], [motorwidth * 2 / 3, motorheight * 2 / 3]]); polygon([[0, 0], [0, motorheight * 2 / 3], [motorwidth * 2 / 3, motorheight * 2 / 3]]);
} }
module motorholes() { module motorholes(thickness) {
translate([0, motorheight / 2, motorheight / 2])rotate([0, 90, 0])cylinder(h = wanddickemotor, d = cylinderdiameter, translate([0, motorheight / 2, motorheight / 2])rotate([0, 90, 0])cylinder(h = thickness, d = cylinderdiameter,
$fn = 130); $fn = 130);
translate([0, motorheight - motorholedistance, motorheight - motorholedistance]) MotorM3Hole(); translate([0, motorheight - motorholedistance, motorheight - motorholedistance]) MotorM3Hole(thickness);
translate([0, motorheight - motorholedistance, motorholedistance]) MotorM3Hole(); translate([0, motorheight - motorholedistance, motorholedistance]) MotorM3Hole(thickness);
translate([0, motorholedistance, motorheight - motorholedistance]) MotorM3Hole(); translate([0, motorholedistance, motorheight - motorholedistance]) MotorM3Hole(thickness);
translate([0, motorholedistance, motorholedistance]) MotorM3Hole(); translate([0, motorholedistance, motorholedistance]) MotorM3Hole(thickness);
} }
module leftholes() { module leftholes() {
@ -60,8 +60,8 @@ module leftholes() {
} }
module MotorM3Hole() { module MotorM3Hole(thickness) {
rotate([0, 90, 0])cylinder(h = wanddickemotor, d = M3HoleDiam); rotate([0, 90, 0])cylinder(h = thickness, d = M3HoleDiam);
} }
module LeftM3Hole() { module LeftM3Hole() {

View File

@ -1,7 +1,9 @@
use <Motorhalter.scad>;
M3HoleDiam = 3.4; M3HoleDiam = 3.4;
MountSize = 40; MountSize = 40;
BodyWidth = 60; BodyWidth = 55;
$fn = 100; $fn = 100;
@ -9,15 +11,18 @@ difference() {
MainBody(); MainBody();
M3MountHoles(); M3MountHoles();
BottomZRodHoles(); BottomZRodHoles();
YRodHoles();
translate([10, 45, 0]) rotate([0, 0, -90]) #motorholes(6);
} }
module M3MountHoles(){ module M3MountHoles(){
edgeDistance = (MountSize-20)/2; edgeDistance = (MountSize-20)/2;
translate([0, edgeDistance, edgeDistance]) M3Hole(40); translate([0, edgeDistance, edgeDistance]) #M3Hole(6);
translate([0, MountSize-edgeDistance, edgeDistance]) M3Hole(40); translate([0, MountSize-edgeDistance, edgeDistance]) #M3Hole(6);
translate([0, edgeDistance, MountSize-edgeDistance]) M3Hole(40); translate([0, edgeDistance, MountSize-edgeDistance]) #M3Hole(6);
translate([0, MountSize-edgeDistance, MountSize-edgeDistance]) M3Hole(40); translate([0, MountSize-edgeDistance, MountSize-edgeDistance]) #M3Hole(6);
} }
module BottomZRodHoles(){ module BottomZRodHoles(){
@ -25,13 +30,24 @@ module BottomZRodHoles(){
ycenter = MountSize/2 - 10; ycenter = MountSize/2 - 10;
holedistance = 10.6; holedistance = 10.6;
translate([xcenter + holedistance/2, ycenter + holedistance/2, 0]) rotate([0,270,0]) M3Hole(5); translate([xcenter + holedistance/2, ycenter + holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
translate([xcenter - holedistance/2, ycenter + holedistance/2, 0]) rotate([0,270,0]) M3Hole(5); translate([xcenter - holedistance/2, ycenter + holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
translate([xcenter + holedistance/2, ycenter - holedistance/2, 0]) rotate([0,270,0]) M3Hole(5); translate([xcenter + holedistance/2, ycenter - holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
translate([xcenter - holedistance/2, ycenter - holedistance/2, 0]) rotate([0,270,0]) M3Hole(5); translate([xcenter - holedistance/2, ycenter - holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
// center hole // center hole
translate([xcenter, ycenter, 0]) rotate([0,0,0]) cylinder(h = 5, d = 10.1); translate([xcenter, ycenter, -5]) rotate([0,0,0]) #cylinder(h = 6, d = 10.1);
}
module YRodHoles(){
translate([55, 30, 52.5]) rotate([0, 90, 0]) #cylinder(h = 6, d = 8);
translate([55, 30, -12.5]) rotate([0, 90, 0]) #cylinder(h = 6, d = 8);
translate([55, 25, 10]) union() {
#cube([6,10,20]);
translate([0, 5, 0]) rotate([0, 90, 0]) #cylinder(h = 6, d = 10);
translate([0, 5, 20]) rotate([0, 90, 0]) #cylinder(h = 6, d = 10);
}
} }
module M3Hole(thickness) { module M3Hole(thickness) {
@ -40,16 +56,16 @@ module M3Hole(thickness) {
module MainBody() { module MainBody() {
// left mount plate // left mount plate
cube([5, MountSize, MountSize]); translate([0,0,-5]) cube([5, MountSize, MountSize+10]);
// bottom frame plate // bottom frame plate
translate([5, 0,0 ]) cube([BodyWidth, MountSize, 5]); translate([5, 0,-5 ]) cube([BodyWidth, MountSize, 5]);
// up frame plate
translate([5, 20,40 ]) cube([BodyWidth, 20, 3]);
// motorholder plate // motorholder plate
translate([0, MountSize,0 ]) cube([40+5, 5, 40]); translate([0, MountSize,-5 ]) cube([40+20, 5, 50]);
// top rod holde // rod holder
translate([BodyWidth, 10,5 ]) cube([5, 20, 30]); translate([BodyWidth, 20,-20 ]) cube([5, 25, 80]);
translate([BodyWidth, 10, -35 ]) cube([5, 20, 35]);
} }