add holes file to define a global m4 and m3 hole
This commit is contained in:
parent
be6e100a7f
commit
7694a63883
@ -9,6 +9,7 @@ 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
|
||||
artifacts:
|
||||
expire_in: 2 days
|
||||
paths:
|
||||
|
10
Holes.scad
Normal file
10
Holes.scad
Normal file
@ -0,0 +1,10 @@
|
||||
M3HoleDiam = 3.4;
|
||||
M4HoleDiam = 4.4;
|
||||
|
||||
module M3Hole(thickness) {
|
||||
rotate([0, 90, 0]) cylinder(h = thickness, d = M3HoleDiam);
|
||||
}
|
||||
|
||||
module M4Hole(thickness) {
|
||||
rotate([0, 90, 0]) cylinder(h = thickness, d = M4HoleDiam);
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
use <Holes.scad>;
|
||||
|
||||
$fn = 50;
|
||||
|
||||
motorheight = 42.1;
|
||||
@ -16,7 +18,7 @@ M3HeadDiam = 5.8;
|
||||
Motorhalter();
|
||||
|
||||
module Motorhalter() {
|
||||
render() difference() {
|
||||
difference() {
|
||||
mainbody();
|
||||
translate([motorwidth, wanddickelinks, 0]) motorholes(wanddickemotor);
|
||||
leftholes();
|
||||
@ -39,13 +41,13 @@ module motorholes(thickness) {
|
||||
translate([0, motorheight / 2, motorheight / 2])rotate([0, 90, 0])cylinder(h = thickness, d = cylinderdiameter,
|
||||
$fn = 130);
|
||||
|
||||
translate([0, motorheight - motorholedistance, motorheight - motorholedistance]) MotorM3Hole(thickness);
|
||||
translate([0, motorheight - motorholedistance, motorheight - motorholedistance]) M3Hole(thickness);
|
||||
|
||||
translate([0, motorheight - motorholedistance, motorholedistance]) MotorM3Hole(thickness);
|
||||
translate([0, motorheight - motorholedistance, motorholedistance]) M3Hole(thickness);
|
||||
|
||||
translate([0, motorholedistance, motorheight - motorholedistance]) MotorM3Hole(thickness);
|
||||
translate([0, motorholedistance, motorheight - motorholedistance]) M3Hole(thickness);
|
||||
|
||||
translate([0, motorholedistance, motorholedistance]) MotorM3Hole(thickness);
|
||||
translate([0, motorholedistance, motorholedistance]) M3Hole(thickness);
|
||||
}
|
||||
|
||||
module leftholes() {
|
||||
@ -59,13 +61,10 @@ module leftholes() {
|
||||
translate([motorwidth - leftholedist, 0, motorwidth - leftholedist]) LeftM3Hole();
|
||||
}
|
||||
|
||||
|
||||
module MotorM3Hole(thickness) {
|
||||
rotate([0, 90, 0])cylinder(h = thickness, d = M3HoleDiam);
|
||||
}
|
||||
|
||||
// todo move this into Holes
|
||||
module LeftM3Hole() {
|
||||
rotate([270, 0, 0])cylinder(h = wanddickelinks, d = M3HoleDiam);
|
||||
// rotate([270, 0, 0])cylinder(h = wanddickelinks, d = M3HoleDiam);
|
||||
rotate([270, 0, 90]) M3Hole(wanddickelinks);
|
||||
translate([0, wanddickelinks - 3, 0]) rotate([270, 0, 0])cylinder(h = 3, d = M3HeadDiam);
|
||||
}
|
||||
|
||||
|
3
Slider.scad
Normal file
3
Slider.scad
Normal file
@ -0,0 +1,3 @@
|
||||
$fn=50;
|
||||
|
||||
cube();
|
@ -1,6 +1,5 @@
|
||||
use <Motorhalter.scad>;
|
||||
|
||||
M3HoleDiam = 3.4;
|
||||
use <Holes.scad>;
|
||||
|
||||
MountSize = 40;
|
||||
BodyWidth = 55;
|
||||
@ -45,14 +44,12 @@ module YRodHoles(){
|
||||
translate([55, 30, -12.5]) rotate([0, 90, 0]) #cylinder(h = 6, d = 8);
|
||||
|
||||
translate([55, 25, 10]) #union() {
|
||||
cube([6,10,20]);
|
||||
// create the ovale hole with the hull of two holes
|
||||
hull() {
|
||||
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) {
|
||||
rotate([0, 90, 0])cylinder(h = thickness, d = M3HoleDiam);
|
||||
}
|
||||
|
||||
module MainBody() {
|
||||
|
@ -1,6 +1,7 @@
|
||||
use <Motorhalter.scad>;
|
||||
use <Holes.scad>;
|
||||
|
||||
$fn = 50;
|
||||
M4HoleDiam = 4.4;
|
||||
|
||||
height = 42.1;
|
||||
thickness = 4;
|
||||
@ -11,15 +12,11 @@ difference() {
|
||||
|
||||
l = 47;
|
||||
r = 64;
|
||||
translate([l, 6]) rotate([0, -90, -90]) #MotorM4Hole(thickness+1);
|
||||
translate([l, height-5]) rotate([0, -90, -90]) #MotorM4Hole(thickness+1);
|
||||
translate([l, 6]) rotate([0, -90, -90]) #M4Hole(thickness+1);
|
||||
translate([l, height-5]) rotate([0, -90, -90]) #M4Hole(thickness+1);
|
||||
|
||||
translate([r, 6]) rotate([0, -90, -90]) #MotorM4Hole(thickness+1);
|
||||
translate([r, height-5]) rotate([0, -90, -90]) #MotorM4Hole(thickness+1);
|
||||
translate([r, 6]) rotate([0, -90, -90]) #M4Hole(thickness+1);
|
||||
translate([r, height-5]) rotate([0, -90, -90]) #M4Hole(thickness+1);
|
||||
|
||||
translate([l+(r-l)/2, height/2]) rotate([0, -90, -90]) #MotorM4Hole(thickness+1);
|
||||
}
|
||||
|
||||
module MotorM4Hole(thickness) {
|
||||
rotate([0, 90, 0])cylinder(h = thickness, d = M4HoleDiam);
|
||||
translate([l+(r-l)/2, height/2]) rotate([0, -90, -90]) #M4Hole(thickness+1);
|
||||
}
|
Loading…
Reference in New Issue
Block a user