sixteenmillimeter-tools/models/lomo_spindle_top/lomo_spindle_top.scad

102 lines
3.3 KiB
OpenSCAD
Raw Normal View History

2017-12-12 04:01:03 +00:00
t = 0;
include <../../libraries/threads.scad>;
2018-03-03 15:13:49 +00:00
include <../../libraries/Triangles.scad>;
2017-12-12 04:01:03 +00:00
D = 50;
THICKNESS = 2.5;
H = 19.5;
ROUND = 8;
2018-03-05 20:55:45 +00:00
2018-03-03 15:13:49 +00:00
HANDLE_D = 13.25;
2018-03-05 20:55:45 +00:00
HANDLE_BASE = 16;
HANDLE_TOP = 13;
HANDLE_H = 54.5;
2018-03-03 15:13:49 +00:00
NOTCHES = 17;
NOTCH = 1.5;
FINE = 200;
2017-12-12 04:01:03 +00:00
2018-03-05 20:55:45 +00:00
module lomo_spindle_top () {
2017-12-12 04:01:03 +00:00
difference () {
2018-03-05 20:55:45 +00:00
//cup
translate([0, 0, ROUND - 2]) minkowski () {
cylinder(r = (D / 2) - ROUND, h = (H * 2) - ROUND, center = true, $fn = FINE);
sphere(r = ROUND, center = true, $fn = FINE);
2017-12-12 04:01:03 +00:00
}
2018-03-05 20:55:45 +00:00
translate([0, 0, ROUND - 2 + THICKNESS]) minkowski () {
2018-03-03 15:13:49 +00:00
cylinder(r = (D / 2) - THICKNESS - ROUND, h = (H * 2) - ROUND, center = true, $fn = 200);
sphere(r = ROUND, center = true, $fn = FINE);
2017-12-12 04:01:03 +00:00
}
2018-03-05 20:55:45 +00:00
//hollow out cup
translate([0, 0, H + ROUND - 4 - 3]) {
cylinder(r = (D / 2) + 1, h = H * 2, center = true);
}
2018-03-05 20:55:45 +00:00
//inner cup bevel
translate([0, 0, (H / 2) - ROUND - 1]) {
cylinder(r1 = (D / 2) - 2.5, r2 = (D / 2) - 2.5 + 1, h = 1, center = true, $fn = FINE);
}
//outer cup bevel
translate([0, 0, (H / 2) - ROUND - 1]) {
difference () {
cylinder(r = (D / 2) + .25, h = 1, center = true, $fn = FINE);
cylinder(r2 = (D / 2) - .8, r1 = (D / 2) - .8 + 1, h = 1, center = true, $fn = FINE);
}
}
2018-03-05 20:55:45 +00:00
//hole in cup
translate([21, 0, -10]) cylinder(r = 3 / 2, h = 40, center = true, $fn = 40);
2017-12-12 04:01:03 +00:00
}
//reference cylinder
//translate([0, 0, -6.6]) color("red") cylinder(r = 50 / 2, h = 19.57, center = true);
2018-03-01 15:38:30 +00:00
//handle
translate([0, 0, -15]) {
2018-03-03 15:13:49 +00:00
difference() {
2018-03-05 20:55:45 +00:00
cylinder(r1 = HANDLE_BASE / 2, r2 = HANDLE_TOP / 2, h = HANDLE_H, $fn = FINE);
//ring negative
translate([0, 0, 31 + 14.5]) {
difference () {
cylinder(r = HANDLE_D / 2 + 2, h = 20, center = true);
cylinder(r = HANDLE_D / 2 - .5, h = 20 + 1, center = true);
}
}
2018-03-05 20:55:45 +00:00
//handle notches
2018-03-03 15:13:49 +00:00
for(i = [0 : NOTCHES]) {
rotate([0, 0, i * (360 / NOTCHES)]) {
translate([0, HANDLE_D / 2 - .5, 31 + 14.5]) {
rotate([0.75, 0, 0]) rotate([0, 0, 45]) {
2018-03-03 15:13:49 +00:00
Right_Angled_Triangle(a = NOTCH, b = NOTCH, height = 20, centerXYZ=[true, true, true]);
}
}
}
}
2018-03-05 20:55:45 +00:00
//bevel handle at top
translate([0, 0, 54.01]) {
difference () {
cylinder(r = 13 / 2, h = 1, center = true);
cylinder(r1 = 12.5 / 2, r2 = 11.5 / 2, h = 1.01, center = true);
}
}
2018-03-03 15:13:49 +00:00
}
2018-03-01 15:38:30 +00:00
}
2018-03-05 20:55:45 +00:00
//attach handle with pyramid cylinder
translate ([0, 0, -13.7]) {
cylinder(r1 = 16 / 2 + 2, r2 = 16 / 2 - .1, h = 3, center = true, $fn = FINE);
}
//plate under cup
2018-03-05 20:55:45 +00:00
translate([0, 0, -17.75]) {
cylinder(r = 31.5 / 2, h = 1, center = true, $fn = FINE);
}
2018-03-01 15:38:30 +00:00
//screw
2018-03-05 20:55:45 +00:00
translate([0, 0, -37.5]) {
metric_thread (diameter=13.6, pitch=1.5 ,thread_size = 1.6, length = 21);
}
//cylinder plug
2018-03-05 20:55:45 +00:00
translate([0, 0, -37.5 + (21 / 2) - 1]) {
cylinder(r = 12 / 2, h = 21, center = true, $fn = FINE);
}
2017-12-12 04:01:03 +00:00
}
2018-03-05 20:55:45 +00:00
rotate([0, 0, t]) lomo_spindle_top();