mirror of
https://github.com/nophead/Mendel90.git
synced 2025-09-03 10:02:51 +02:00
Now combines some STLs into single files and puts all the ones that need printing the the plates directory.
Added hash bangs for Linux users.
This commit is contained in:
@@ -36,6 +36,7 @@ module bar_clamp_holes(d)
|
||||
child();
|
||||
|
||||
module bar_clamp(d, h, w, switch = false, yaxis = false) {
|
||||
stl(str(yaxis ? "y_bar_clamp" : "z_bar_clamp", switch ? "_switch" : ""));
|
||||
gap = 1.5;
|
||||
inner_rad = bar_clamp_inner_rad(d);
|
||||
outer_rad = bar_clamp_outer_rad(d);
|
||||
@@ -133,14 +134,12 @@ module bar_clamp(d, h, w, switch = false, yaxis = false) {
|
||||
}
|
||||
}
|
||||
|
||||
module bar_clamp_assembly(d, h, w, name, switch = false, yaxis = true) {
|
||||
module bar_clamp_assembly(d, h, w, switch = false, yaxis = true) {
|
||||
inner_rad = bar_clamp_inner_rad(d);
|
||||
outer_rad = bar_clamp_outer_rad(d);
|
||||
length = bar_clamp_length(d);
|
||||
rail_offset = bar_rail_offset(d);
|
||||
|
||||
//assembly(name);
|
||||
stl(str(name, switch ? "_switch" : ""));
|
||||
color(clamp_color) render() bar_clamp(d, h, w, switch, yaxis);
|
||||
//
|
||||
// screw and washer for clamp
|
||||
@@ -183,16 +182,15 @@ module bar_clamp_assembly(d, h, w, name, switch = false, yaxis = true) {
|
||||
screw_and_washer(No2_screw, 13);
|
||||
}
|
||||
|
||||
//end(name);
|
||||
}
|
||||
|
||||
|
||||
module y_bar_clamp_assembly(d, h, w, switch = false) {
|
||||
bar_clamp_assembly(d, h, w, "y_bar_clamp", switch, yaxis = true);
|
||||
bar_clamp_assembly(d, h, w, switch, yaxis = true);
|
||||
}
|
||||
|
||||
module z_bar_clamp_assembly(d, h, w, switch = false) {
|
||||
bar_clamp_assembly(d, h, w, "z_bar_clamp", switch, yaxis = false);
|
||||
bar_clamp_assembly(d, h, w, switch, yaxis = false);
|
||||
}
|
||||
|
||||
//bar_clamp(Z_bar_dia, gantry_setback, bar_clamp_depth, true);
|
||||
@@ -203,14 +201,18 @@ module y_bar_clamp_switch_stl() translate([0,0,bar_clamp_depth/2]) rotate([0,90,
|
||||
module z_bar_clamp_stl() translate([0,0,bar_clamp_depth/2]) rotate([0,90,0]) bar_clamp(Z_bar_dia, gantry_setback, bar_clamp_depth, false, false);
|
||||
module z_bar_clamp_switch_stl() translate([0,0,bar_clamp_depth/2]) rotate([0,90,0]) bar_clamp(Z_bar_dia, gantry_setback, bar_clamp_depth, true, false);
|
||||
|
||||
if(0) {
|
||||
module bar_clamps_stl() {
|
||||
z_bar_clamp_switch_stl();
|
||||
translate([gantry_setback + 15, 0, 0]) z_bar_clamp_stl() ;
|
||||
|
||||
translate([10, 40, 0]) y_bar_clamp_switch_stl();
|
||||
translate([gantry_setback + 25, 40, 0]) y_bar_clamp_stl();
|
||||
translate([gantry_setback + 15, 80, 0]) y_bar_clamp_stl();
|
||||
translate([0, 80, 0]) y_bar_clamp_stl();
|
||||
}
|
||||
|
||||
if(0)
|
||||
bar_clamps_stl();
|
||||
else {
|
||||
z_bar_clamp_assembly(Z_bar_dia, gantry_setback, bar_clamp_depth, true);
|
||||
//bar_clamp(Z_bar_dia, gantry_setback, bar_clamp_depth, true, false);
|
||||
|
@@ -74,22 +74,24 @@ module cable_clip_assembly(screw, screw_length, cable1, cable2 = 0) {
|
||||
|
||||
module cable_clip_AB_stl() cable_clip(base_clip_screw, endstop_wires, motor_wires);
|
||||
module cable_clip_AD_stl() cable_clip(frame_clip_screw, endstop_wires, fan_motor_wires);
|
||||
module cable_clip_CA_stl() cable_clip(base_clip_screw, thermistor_wires, bed_wires);
|
||||
module cable_clip_CA_stl() cable_clip(base_clip_screw, bed_wires, thermistor_wires);
|
||||
|
||||
spacing = cable_clip_height(motor_wires) + 1;
|
||||
|
||||
if(1)
|
||||
cable_clip_assembly(base_clip_screw, base_screw_length, endstop_wires, motor_wires);
|
||||
else {
|
||||
module cable_clips_stl() {
|
||||
translate([0, -cable_clip_height(bed_wires) - 1, 0])
|
||||
cable_clip(base_clip_screw, thermistor_wires, bed_wires);
|
||||
cable_clip_CA_stl();
|
||||
|
||||
for(i=[0:1])
|
||||
translate([0, spacing * i, 0])
|
||||
cable_clip(base_clip_screw, endstop_wires, motor_wires);
|
||||
cable_clip_AB_stl();
|
||||
|
||||
for(i=[2:3])
|
||||
translate([0, spacing * i, 0])
|
||||
cable_clip(frame_clip_screw, endstop_wires, fan_motor_wires);
|
||||
|
||||
cable_clip_AD_stl();
|
||||
}
|
||||
|
||||
if(1)
|
||||
cable_clip_assembly(base_clip_screw, base_screw_length, endstop_wires, motor_wires);
|
||||
else
|
||||
cable_clips_stl();
|
||||
|
@@ -9,7 +9,7 @@
|
||||
//
|
||||
include <conf/config.scad>
|
||||
|
||||
module cal() {
|
||||
module cal_stl() {
|
||||
difference() {
|
||||
union() {
|
||||
cube([10,40,5]);
|
||||
@@ -31,4 +31,4 @@ module cal() {
|
||||
}
|
||||
}
|
||||
|
||||
cal();
|
||||
cal_stl();
|
||||
|
@@ -312,15 +312,7 @@ module d_motor_bracket_assembly(motor) {
|
||||
screw_and_washer(M3_cap_screw, 45);
|
||||
}
|
||||
|
||||
|
||||
if(1) {
|
||||
NEMA(NEMA17);
|
||||
d_motor_bracket_assembly(NEMA17);
|
||||
translate([0, 0, exploded ? - 20 : 0])
|
||||
d_shell_assembly(NEMA17);
|
||||
|
||||
}
|
||||
else {
|
||||
module d_motor_brackets_stl() {
|
||||
d_motor_bracket_stl(NEMA17);
|
||||
translate([11, 35, 0])
|
||||
d_motor_bracket_lid_stl(NEMA17);
|
||||
@@ -335,3 +327,13 @@ else {
|
||||
ribbon_clamp(extruder_ways, cable_screw);
|
||||
|
||||
}
|
||||
|
||||
if(1) {
|
||||
NEMA(NEMA17);
|
||||
d_motor_bracket_assembly(NEMA17);
|
||||
translate([0, 0, exploded ? - 20 : 0])
|
||||
d_shell_assembly(NEMA17);
|
||||
|
||||
}
|
||||
else
|
||||
d_motor_brackets_stl();
|
||||
|
@@ -29,7 +29,7 @@ include <positions.scad>
|
||||
|
||||
X = 0 * X_travel / 2; //sin(360 * $t) * bed_width / 2;
|
||||
Y = 0 * Y_travel / 2; //cos(360 * $t) * bed_depth / 2;
|
||||
Z = 0 * Z_travel;
|
||||
Z = 0.5 * Z_travel;
|
||||
|
||||
|
||||
//
|
||||
|
@@ -77,10 +77,7 @@ module ribbon_clamp_22_33_stl() translate([0,0,thickness]) ribbon_clamp(22, M3_c
|
||||
module ribbon_clamp_22_40_stl() translate([0,0,thickness]) ribbon_clamp(22, No6_screw);
|
||||
module ribbon_clamp_22_44_stl() translate([0,0,thickness]) ribbon_clamp(22, M4_cap_screw);
|
||||
|
||||
if(1)
|
||||
ribbon_clamp_assembly(20, M4_cap_screw, 20, 4);
|
||||
|
||||
else {
|
||||
module ribbon_clamps_stl() {
|
||||
translate([0,-12,0]) ribbon_clamp(bed_ways, cap_screw);
|
||||
translate([0,0,0]) ribbon_clamp(bed_ways, cap_screw);
|
||||
translate([0,12,0]) ribbon_clamp(bed_ways, base_screw);
|
||||
@@ -89,3 +86,9 @@ else {
|
||||
translate([0,48,0]) ribbon_clamp(extruder_ways, M3_cap_screw);
|
||||
translate([0,59,0]) ribbon_clamp(extruder_ways, M3_cap_screw);
|
||||
}
|
||||
|
||||
if(1)
|
||||
ribbon_clamp_assembly(20, M4_cap_screw, 20, 4);
|
||||
|
||||
else
|
||||
ribbon_clamps_stl();
|
||||
|
@@ -341,15 +341,13 @@ module wades_assembly() {
|
||||
|
||||
end("wades_assembly");
|
||||
}
|
||||
|
||||
if(1)
|
||||
rotate([90, 0, 0])
|
||||
wades_assembly();
|
||||
|
||||
|
||||
else {
|
||||
|
||||
wades_block_stl();
|
||||
*wades_idler_block_stl();
|
||||
*wades_gear_spacer_stl();
|
||||
|
||||
}
|
||||
|
@@ -446,13 +446,14 @@ module x_carriage_assembly(show_extruder = false) {
|
||||
end("x_carriage_assembly");
|
||||
}
|
||||
|
||||
|
||||
if(0) {
|
||||
module x_carriage_parts_stl() {
|
||||
x_belt_clamp_stl();
|
||||
translate([-(lug_width + 2),0,0]) x_belt_grip_stl();
|
||||
x_carriage_stl();
|
||||
translate([6, 8, 0]) rotate([0, 0, -90]) x_belt_tensioner_stl();
|
||||
}
|
||||
|
||||
if(0)
|
||||
x_carriage_parts_stl();
|
||||
else
|
||||
x_carriage_assembly(true);
|
||||
//belt_lug(false);
|
||||
|
@@ -94,10 +94,14 @@ module y_bearing_assembly(height, endstop = false)
|
||||
module y_bearing_mount_stl() translate([0,0, Y_bearing_holder_height]) bearing_mount(Y_bearings, Y_bearing_holder_height, false);
|
||||
module y_bearing_mount_switch_stl() translate([0,0, Y_bearing_holder_height]) bearing_mount(Y_bearings, Y_bearing_holder_height, true);
|
||||
|
||||
if(1)
|
||||
y_bearing_assembly(Y_bearing_holder_height, false);
|
||||
else {
|
||||
module y_bearing_mounts_stl()
|
||||
{
|
||||
y_bearing_mount_stl();
|
||||
translate([ bearing_mount_width(Y_bearings) - tab_length + 2, 0, 0]) y_bearing_mount_stl();
|
||||
translate([-(bearing_mount_width(Y_bearings) - tab_length + 2), 0, 0]) y_bearing_mount_switch_stl();
|
||||
};
|
||||
}
|
||||
|
||||
if(1)
|
||||
y_bearing_assembly(Y_bearing_holder_height, false);
|
||||
else
|
||||
y_bearing_mounts_stl();
|
||||
|
@@ -137,11 +137,14 @@ module y_belt_anchor_toothed_stl() y_belt_anchor(Y_belt_clamp_height, true);
|
||||
module y_belt_clip_stl() y_belt_clip(false);
|
||||
module y_belt_clip_toothed_stl() y_belt_clip(true);
|
||||
|
||||
if(1)
|
||||
y_belt_anchor_assembly(Y_belt_clamp_height, true);
|
||||
else {
|
||||
module y_belt_anchors_stl() {
|
||||
translate([0, 0, 0]) y_belt_anchor_toothed_stl();
|
||||
translate([0, 25, 0]) y_belt_anchor_stl();
|
||||
translate([15, 5, 0]) rotate([0,0,90])y_belt_clip_toothed_stl();
|
||||
translate([15,30, 0]) rotate([0,0,90]) y_belt_clip_stl();
|
||||
}
|
||||
|
||||
if(1)
|
||||
y_belt_anchor_assembly(Y_belt_clamp_height, true);
|
||||
else
|
||||
y_belt_anchors_stl();
|
||||
|
@@ -171,12 +171,15 @@ module z_motor_assembly(gantry_setback, rhs, standalone = false) {
|
||||
|
||||
}
|
||||
|
||||
module z_motor_bracket_lhs_stl() z_motor_bracket(gantry_setback, false);
|
||||
module z_motor_bracket_rhs_stl()mirror([1,0,0]) z_motor_bracket(gantry_setback, true);
|
||||
module z_motor_bracket_lhs_stl() z_motor_bracket(gantry_setback, false);
|
||||
module z_motor_bracket_rhs_stl() mirror([1,0,0]) z_motor_bracket(gantry_setback, true);
|
||||
|
||||
if(0) {
|
||||
module z_motor_brackets_stl() {
|
||||
translate([length + 2, 0, 0]) z_motor_bracket_lhs_stl();
|
||||
z_motor_bracket_rhs_stl();
|
||||
}
|
||||
|
||||
if(0)
|
||||
z_motor_brackets_stl();
|
||||
else
|
||||
z_motor_assembly(gantry_setback, false);
|
||||
|
Reference in New Issue
Block a user