2019-03-27 22:41:23 +00:00
|
|
|
time = 0;
|
2017-12-12 04:01:03 +00:00
|
|
|
include <../../libraries/threads.scad>;
|
|
|
|
|
2018-03-05 19:55:51 +00:00
|
|
|
//RESOLUTION
|
|
|
|
FINE = 200;
|
2018-03-04 23:42:22 +00:00
|
|
|
|
2018-03-05 19:55:51 +00:00
|
|
|
module base ( HEX = false) {
|
|
|
|
D = 8.45 * 2;
|
|
|
|
H = 20;
|
|
|
|
//for grip
|
|
|
|
BUMP = 2; //diameter
|
|
|
|
BUMPS = 6;
|
|
|
|
TOP_D = 19;
|
|
|
|
TOP_H = 9.5;
|
|
|
|
TOP_OFFSET = -24.5;
|
|
|
|
|
2017-12-12 04:01:03 +00:00
|
|
|
union() {
|
2018-03-05 19:55:51 +00:00
|
|
|
translate([0, 0, -15]) {
|
|
|
|
cylinder(r = D / 2, h = H, center = true, $fn = FINE);
|
|
|
|
}
|
|
|
|
//hex version
|
|
|
|
if (HEX) {
|
|
|
|
translate([0, 0, TOP_OFFSET]) {
|
|
|
|
cylinder(r = 11.1, h = TOP_H, center = true, $fn = 6);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
translate([0, 0, TOP_OFFSET]) {
|
|
|
|
cylinder(r = TOP_D / 2, h = TOP_H, center = true, $fn = FINE);
|
|
|
|
}
|
|
|
|
}
|
2018-03-04 20:20:44 +00:00
|
|
|
for (i = [0 : BUMPS]) {
|
2018-03-05 19:55:51 +00:00
|
|
|
rotate([0, 0, (360 / BUMPS) * i]) {
|
|
|
|
translate([0, 8.9, TOP_OFFSET]) {
|
|
|
|
cylinder(r = BUMP, h = TOP_H, center = true, $fn = 60);
|
|
|
|
}
|
|
|
|
}
|
2018-03-04 20:20:44 +00:00
|
|
|
}
|
2017-12-12 04:01:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-05 19:55:51 +00:00
|
|
|
module outer_screw (LEN) {
|
|
|
|
OD = 10;
|
|
|
|
PITCH = 1.5;
|
|
|
|
THREAD = 1.6;
|
|
|
|
|
|
|
|
difference () {
|
|
|
|
translate([0, 0, -7.1]) metric_thread (diameter=OD, pitch=PITCH, thread_size = THREAD, length=LEN);
|
|
|
|
//bevel top of screw
|
|
|
|
translate([0, 0, LEN - 8]) difference() {
|
|
|
|
cylinder(r = 8, h = 3, center = true, $fn = FINE);
|
|
|
|
cylinder(r1 = 6, r2 = 3, h = 3.01, center = true, $fn = FINE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-05 20:20:18 +00:00
|
|
|
module lomo_spindle_bottom (ALT = false, HEX = false) {
|
2018-03-05 19:55:51 +00:00
|
|
|
OD = 13.6 + .5;
|
|
|
|
PITCH = 1.5;
|
|
|
|
THREAD = 1.6;
|
|
|
|
IN_LEN = 21;
|
|
|
|
|
|
|
|
LEN = 17.1;
|
|
|
|
ALT_LEN = 27.1;
|
2018-03-04 20:20:44 +00:00
|
|
|
difference () {
|
2018-03-05 19:55:51 +00:00
|
|
|
base(HEX);
|
|
|
|
//inner screw negative
|
2018-03-05 00:45:40 +00:00
|
|
|
translate([0, 0, -30]) union() {
|
2018-03-05 19:55:51 +00:00
|
|
|
metric_thread (diameter=OD, pitch=PITCH, thread_size = THREAD, length = IN_LEN);
|
|
|
|
translate([0, 0, 0.2]) {
|
|
|
|
metric_thread (diameter=OD, pitch=PITCH, thread_size = THREAD, length = IN_LEN);
|
|
|
|
}
|
2018-03-05 00:05:18 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-04 20:20:44 +00:00
|
|
|
|
2017-12-12 04:01:03 +00:00
|
|
|
difference () {
|
|
|
|
//outer screw
|
2018-03-05 19:55:51 +00:00
|
|
|
if (ALT) {
|
|
|
|
outer_screw(ALT_LEN);
|
|
|
|
} else {
|
|
|
|
outer_screw(LEN);
|
|
|
|
}
|
2017-12-12 04:01:03 +00:00
|
|
|
//hollow center
|
2018-03-01 15:38:30 +00:00
|
|
|
cylinder(r = 3.8 / 2, h = 100, center = true, $fn = 60);
|
2017-12-12 04:01:03 +00:00
|
|
|
}
|
2018-03-05 00:45:40 +00:00
|
|
|
|
2017-12-12 04:01:03 +00:00
|
|
|
}
|
2018-03-04 20:20:44 +00:00
|
|
|
|
2019-03-27 22:41:23 +00:00
|
|
|
translate([0, 0, 29]) rotate([0, 0, time]) lomo_spindle_bottom();
|
2018-03-05 00:05:18 +00:00
|
|
|
|
2018-03-04 20:20:44 +00:00
|
|
|
|