Add an assembled debug view
This commit is contained in:
parent
f41029e963
commit
cab23f67cc
22
takeup.scad
22
takeup.scad
|
@ -65,7 +65,7 @@ module magnetic_coupling (MAGNETS = 4, MAGNET_D = 8.1, MAGNET_H = 2.5) {
|
|||
}
|
||||
}
|
||||
|
||||
module slip_attach (MAGNET_H = 2.5) {
|
||||
module slip_coupling (MAGNET_H = 2.5) {
|
||||
H = 12;
|
||||
difference () {
|
||||
cylinder(r = 45 / 2, h = H, center = true, $fn = 100);
|
||||
|
@ -75,11 +75,6 @@ module slip_attach (MAGNET_H = 2.5) {
|
|||
translate([0, 0, 18.25]) reel_holder();
|
||||
}
|
||||
|
||||
module takeup () {
|
||||
magnetic_coupling();
|
||||
translate([0, 0, 4]) reel_attach();
|
||||
}
|
||||
|
||||
module motor_mount_void (D, Z) {
|
||||
cylinder(r = D / 2, h = Z, center = true, $fn = 40);
|
||||
//bolt void
|
||||
|
@ -126,12 +121,23 @@ module mount_plate () {
|
|||
translate([-X_CORNER + (CORNER / 2), -Y_CORNER + (CORNER / 2), 3.26 - .5]) cylinder(r = CORNER, h = 7, center = true, $fn = 40);
|
||||
}
|
||||
|
||||
PART = "slip_coupling";
|
||||
module debug_assembled () {
|
||||
translate([(46 / 2) - 14.5, 0, 0]) rotate([180, 0, 0]) motor();
|
||||
color("blue") translate([0, 0, 23]) rotate([0, 0, -90]) magnetic_coupling();
|
||||
color("green") translate([8, 0, 11]) mount_plate();
|
||||
translate([0, 0, 26.5]) slip_coupling();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
PART = "debug";
|
||||
|
||||
if (PART == "slip_coupling") {
|
||||
slip_attach();
|
||||
slip_coupling();
|
||||
} else if (PART == "magnetic_coupling") {
|
||||
magnetic_coupling();
|
||||
} else if (PART == "mount_plate") {
|
||||
mount_plate();
|
||||
} else if (PART == "debug") {
|
||||
debug_assembled();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue