sixteenmillimeter-tools/models/lomo_bottom_screw/lomo_bottom_screw.scad

68 lines
2.1 KiB
OpenSCAD
Raw Normal View History

2017-12-12 04:01:03 +00:00
t = 0;
include <../../libraries/threads.scad>;
2018-03-04 23:42:22 +00:00
FINE = 60;
2017-12-12 04:01:03 +00:00
module base () {
2018-03-04 23:42:22 +00:00
$fn = FINE;
2018-03-04 20:20:44 +00:00
BUMP = 2;
BUMPS = 6;
TOP_H = 9.5;
2017-12-12 04:01:03 +00:00
union() {
translate([0, 0, -15])cylinder(r = 8.45, h = 20, center = true);
2018-03-04 23:42:22 +00:00
//hex top
2018-03-01 15:38:30 +00:00
//translate([0, 0, -24.5])cylinder(r = 11.1, h = 9.5, center = true, $fn = 6);
2018-03-04 20:20:44 +00:00
translate([0, 0, -24.5]) cylinder(r = 19 / 2, h = TOP_H, center = true);
for (i = [0 : BUMPS]) {
rotate([0, 0, (360 / BUMPS) * i]) translate([0, 8.9, -24.5]) cylinder(r = BUMP, h = TOP_H, center = true, $fn = 60);
}
2017-12-12 04:01:03 +00:00
}
}
module lomo_bottom_screw () {
2018-03-04 20:20:44 +00:00
difference () {
base();
2018-03-04 23:42:22 +00:00
//negative cylinder (reference)
//translate([0, 0, -20]) cylinder(r = 13.6 / 2, h = 20, center = true, $fn = 100);
//negative plug (reference)
//translate([0, 0, -20]) cylinder(r = 12 / 2, h = 20, center = true, $fn = FINE);
translate([0, 0, -30]) {
metric_thread (diameter=13.6 + .5, pitch=1.5, thread_size = 1.6, length = 20);
translate([0, 0, 0.25]) metric_thread (diameter=13.6 + .5, pitch=1.5, thread_size = 1.6, length = 20);
}
}
2018-03-04 20:20:44 +00:00
2017-12-12 04:01:03 +00:00
difference () {
//outer screw
2018-03-04 23:42:22 +00:00
//translate([0, 0, -7.1]) metric_thread (diameter=10, pitch=1.5, length=27.1);
2017-12-12 04:01:03 +00:00
//taper top of screw
translate([0, 0, 19]) difference() {
2018-03-04 23:42:22 +00:00
cylinder(r = 8, h = 3.5, center = true, $fn = FINE);
cylinder(r1 = 6, r2 = 3, h = 4.5, center = true, $fn = FINE);
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
}
}
difference() {
2018-02-27 18:05:27 +00:00
//color("green")
2018-03-01 15:38:30 +00:00
//center
2018-03-04 20:20:44 +00:00
translate([0, 0, 29]) lomo_bottom_screw();
2018-03-04 23:46:16 +00:00
2018-03-04 23:42:22 +00:00
translate([-25, 0, 29]) cube([50, 50, 100], center = true);
2017-12-12 04:01:03 +00:00
}
2018-03-04 20:20:44 +00:00
2018-03-04 23:42:22 +00:00
//translate([0, 0, 7]) cylinder(r = 13.6 / 2, h = 20, center = true, $fn = 100);
2018-03-04 20:20:44 +00:00
translate([0, 0, -20]) rotate([0, 0, t]) difference() {
2018-03-04 23:46:16 +00:00
2018-03-04 20:20:44 +00:00
//translate([-100, 0, 0])cube([200, 200, 200], center = true);
2017-12-12 04:01:03 +00:00
}
2018-03-04 20:20:44 +00:00
translate([0, 0, -30]) {
//metric_thread (diameter=13.6, pitch=1.5 ,thread_size = 1.6, length = 20);
}
2018-03-04 20:20:44 +00:00