Compare commits

...

3 Commits

Author SHA1 Message Date
mmcwilliams 3e0132f91c Render a preview image 2021-11-14 09:06:30 -05:00
mmcwilliams cab23f67cc Add an assembled debug view 2021-11-14 09:04:50 -05:00
mmcwilliams f41029e963 Ignore .DS_Store 2021-11-14 09:04:28 -05:00
4 changed files with 18 additions and 9 deletions

1
.gitignore vendored Normal file
View File

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

View File

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

BIN
debug.png Normal file

Binary file not shown.

After

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_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();
}