Work on rails
This commit is contained in:
parent
a8a33a823a
commit
10c452c1b3
|
@ -43,3 +43,4 @@ module end () {
|
||||||
|
|
||||||
color("blue") rails();
|
color("blue") rails();
|
||||||
translate([0, RAIL_LEN / 2, 0]) end();
|
translate([0, RAIL_LEN / 2, 0]) end();
|
||||||
|
translate([0, -RAIL_LEN / 2, 0]) rotate([0, 0, 180]) end();
|
|
@ -1,6 +1,13 @@
|
||||||
use <2020_profile.scad>
|
use <2020_profile.scad>
|
||||||
//translate([-35, 0, -25]) linear_extrude(height=175) 2020_profile();
|
//include <jk_rails.scad>
|
||||||
translate([35, 0, -25]) linear_extrude(height=175) 2020_profile();
|
include <./common/motors.scad>
|
||||||
|
include <./common/rod.scad>
|
||||||
|
|
||||||
|
RailSpacing = 100;
|
||||||
|
ThreadedRodSpacing = 30;
|
||||||
|
RailEndX = 140;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module rounded_cube (c, d) {
|
module rounded_cube (c, d) {
|
||||||
r = d / 2;
|
r = d / 2;
|
||||||
|
@ -11,14 +18,22 @@ module rounded_cube (c, d) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$fn = 100;
|
module rail_end (pos = [0, 0, 0], rot = [90, 0, 0]) {
|
||||||
difference () {
|
translate(pos) rotate(rot) difference () {
|
||||||
rounded_cube([120, 60, 40], d=10);
|
rounded_cube([RailEndX, 60, 40], d = 10, $fn = 50);
|
||||||
//rails
|
//rails
|
||||||
translate([-35, 0, 0]) cube([21, 21, 40 + 1], center = true);
|
translate([-RailSpacing / 2, 0, 0]) cube([21, 21, 40 + 1], center = true);
|
||||||
translate([35, 0, 0]) cube([21, 21, 40 + 1], center = true);
|
translate([RailSpacing / 2, 0, 0]) cube([21, 21, 40 + 1], center = true);
|
||||||
//threaded rods
|
//threaded rods motors
|
||||||
translate([0, 0, 0])cylinder(r = 5, h = 40 + 1, center = true);
|
translate([-ThreadedRodSpacing / 2, 0, 0]) cylinder(r = R(10), h = 60, center = true, $fn = 100);
|
||||||
//translate([-10, 0, 0])cylinder(r = 5, h = 40 + 1, center = true);
|
translate([ThreadedRodSpacing / 2, 0, 0]) cylinder(r = R(NEMA17PadD), h = 60, center = true, $fn = 100);
|
||||||
|
//translate([0, 0, 0])cylinder(r = 5, h = 40 + 1, center = true);
|
||||||
|
//translate([-10, 0, 0])cylinder(r = 5, h = 40 + 1, center = true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
rail_end();
|
||||||
|
|
||||||
|
//translate([-35, 0, -25]) linear_extrude(height=175) 2020_profile();
|
||||||
|
translate([RailSpacing / 2, 0, 0]) rotate([90, 0, 0]) linear_extrude(height=175) 2020_profile();
|
||||||
|
|
||||||
|
translate([ThreadedRodSpacing / 2, 40, 0]) rotate([90, 0, 0]) color("blue") NEMA17();
|
Loading…
Reference in New Issue