Compare commits

..

No commits in common. "3e0132f91c5ae8876be29b8a81c15d43ab98854b" and "385baa8233c6cfc390a474353c5f1f455003861b" have entirely different histories.

4 changed files with 9 additions and 18 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
*.DS_Store

View File

@ -10,6 +10,4 @@ for part in "${PARTS[@]}"
do
stl="./stl/takeup_${part}.stl"
openscad -o "${stl}" -D "PART=\"${part}\";" "./takeup.scad"
done
openscad --preview -o debug.png -D "PART=\"preview\";" "./takeup.scad"
done

BIN
debug.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -65,7 +65,7 @@ module magnetic_coupling (MAGNETS = 4, MAGNET_D = 8.1, MAGNET_H = 2.5) {
}
}
module slip_coupling (MAGNET_H = 2.5) {
module slip_attach (MAGNET_H = 2.5) {
H = 12;
difference () {
cylinder(r = 45 / 2, h = H, center = true, $fn = 100);
@ -75,6 +75,11 @@ module slip_coupling (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
@ -121,23 +126,12 @@ module mount_plate () {
translate([-X_CORNER + (CORNER / 2), -Y_CORNER + (CORNER / 2), 3.26 - .5]) cylinder(r = CORNER, h = 7, center = true, $fn = 40);
}
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";
PART = "slip_coupling";
if (PART == "slip_coupling") {
slip_coupling();
slip_attach();
} else if (PART == "magnetic_coupling") {
magnetic_coupling();
} else if (PART == "mount_plate") {
mount_plate();
} else if (PART == "debug") {
debug_assembled();
}