Added hole for grub screw to shaft coupling.

This commit is contained in:
Martin Budden 2020-11-10 14:49:11 +00:00
parent 03beaec470
commit b583202fb7

View File

@ -35,27 +35,39 @@ module shaft_coupling(type, colour = "silver") { //! Draw the shaft coupling
d1 = sc_diameter1(type); d1 = sc_diameter1(type);
d2 = sc_diameter2(type); d2 = sc_diameter2(type);
color(colour) { grub_length = 3;
translate_z(-length / 2) module grub_screw_positions() {
linear_extrude(length / 2) grub_offset_z = 5;
difference() { for(z = [-length / 2 + grub_offset_z, length / 2 - grub_offset_z])
circle(d = diameter); translate_z(z)
circle(d = d1); for(a = [0, 90])
} rotate([-90, 0, a])
linear_extrude(length / 2) translate_z(diameter / 2 + 1)
difference() { children();
circle(d = diameter);
circle(d = d2);
}
} }
grub_offset_z = 5; color(colour) {
grub_length = 3; render(convexity=2) difference() {
for(z = [-length / 2 + grub_offset_z, length / 2 - grub_offset_z]) union() {
translate_z(z) translate_z(-length / 2)
for(a = [0, 90]) linear_extrude(length / 2)
rotate([-90, 0, a]) difference() {
translate_z(diameter / 2 + 1) circle(d = diameter);
not_on_bom() screw(M3_grub_screw, grub_length); circle(d = d1);
}
linear_extrude(length / 2)
difference() {
circle(d = diameter);
circle(d = d2);
}
}
grub_screw_positions()
rotate([180, 0, 0])
cylinder(r = screw_radius(M3_grub_screw), h = 5);
}
}
grub_screw_positions()
not_on_bom() screw(M3_grub_screw, grub_length);
} }