add ci job and Zmotorholder
This commit is contained in:
parent
4954e5b93d
commit
5db97d9c1d
14
.gitlab-ci.yml
Normal file
14
.gitlab-ci.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Build_STL:
|
||||||
|
image: bbassett/openscad:latest
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- openscad -o Motorhalter.stl Motorhalter.scad
|
||||||
|
- openscad -o SliderLeft.stl SliderLeft.scad
|
||||||
|
- openscad -o YRollHolder.stl YRollHolder.scad
|
||||||
|
- openscad -o angle_bracket.stl angle_bracket.scad
|
||||||
|
- openscad -o horizontal_angle_bracket.stl horizontal_angle_bracket.scad
|
||||||
|
- openscad -o ZMotorHalter.stl ZMotorHalter.scad
|
||||||
|
artifacts:
|
||||||
|
expire_in: 2 days
|
||||||
|
paths:
|
||||||
|
- "./latexautoinstaller*"
|
@ -10,7 +10,10 @@ $fn = 100;
|
|||||||
difference() {
|
difference() {
|
||||||
MainBody();
|
MainBody();
|
||||||
M3MountHoles();
|
M3MountHoles();
|
||||||
BottomZRodHoles();
|
|
||||||
|
xcenter = 49;
|
||||||
|
ycenter = MountSize/2 - 10;
|
||||||
|
translate([xcenter, ycenter, -5]) #BottomZRodHoles();
|
||||||
YRodHoles();
|
YRodHoles();
|
||||||
|
|
||||||
translate([10, 45, 0]) rotate([0, 0, -90]) #motorholes(6);
|
translate([10, 45, 0]) rotate([0, 0, -90]) #motorholes(6);
|
||||||
@ -26,27 +29,25 @@ module M3MountHoles(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
module BottomZRodHoles(){
|
module BottomZRodHoles(){
|
||||||
xcenter = 49;
|
|
||||||
ycenter = MountSize/2 - 10;
|
|
||||||
holedistance = 10.6;
|
holedistance = 10.6;
|
||||||
|
|
||||||
translate([xcenter + holedistance/2, ycenter + holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
|
translate([holedistance/2, holedistance/2, 0]) rotate([0,270,0]) M3Hole(6);
|
||||||
translate([xcenter - holedistance/2, ycenter + holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
|
translate([-holedistance/2, holedistance/2, 0]) rotate([0,270,0]) M3Hole(6);
|
||||||
translate([xcenter + holedistance/2, ycenter - holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
|
translate([holedistance/2, -holedistance/2, 0]) rotate([0,270,0]) M3Hole(6);
|
||||||
translate([xcenter - holedistance/2, ycenter - holedistance/2, -5]) rotate([0,270,0]) #M3Hole(6);
|
translate([-holedistance/2, -holedistance/2, 0]) rotate([0,270,0]) M3Hole(6);
|
||||||
|
|
||||||
// center hole
|
// center hole
|
||||||
translate([xcenter, ycenter, -5]) rotate([0,0,0]) #cylinder(h = 6, d = 10.1);
|
cylinder(h = 6, d = 10.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
module YRodHoles(){
|
module YRodHoles(){
|
||||||
translate([55, 30, 52.5]) rotate([0, 90, 0]) #cylinder(h = 6, d = 8);
|
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, 30, -12.5]) rotate([0, 90, 0]) #cylinder(h = 6, d = 8);
|
||||||
|
|
||||||
translate([55, 25, 10]) union() {
|
translate([55, 25, 10]) #union() {
|
||||||
#cube([6,10,20]);
|
cube([6,10,20]);
|
||||||
translate([0, 5, 0]) rotate([0, 90, 0]) #cylinder(h = 6, d = 10);
|
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);
|
translate([0, 5, 20]) rotate([0, 90, 0]) cylinder(h = 6, d = 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
25
ZMotorHalter.scad
Normal file
25
ZMotorHalter.scad
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
use <Motorhalter.scad>;
|
||||||
|
$fn = 50;
|
||||||
|
M4HoleDiam = 4.4;
|
||||||
|
|
||||||
|
height = 42.1;
|
||||||
|
thickness = 4;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
cube([70, height, thickness]);
|
||||||
|
rotate([0, -90, -90]) #motorholes(thickness+1);
|
||||||
|
|
||||||
|
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([r, 6]) rotate([0, -90, -90]) #MotorM4Hole(thickness+1);
|
||||||
|
translate([r, height-5]) rotate([0, -90, -90]) #MotorM4Hole(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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user