summaryrefslogtreecommitdiff
path: root/hardware/enclosure
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-06-22 15:33:55 +0200
committerjaseg <git@jaseg.net>2018-06-22 15:33:55 +0200
commit5b5a380a4b7d1d5f4adc288e0b6759631c7b893d (patch)
tree39246ed76277c4c78cab8b79d80326b4eabe383c /hardware/enclosure
parenta282ef4099698674c9b07d0c89351e78b3d8dedf (diff)
downloadolsndot-5b5a380a4b7d1d5f4adc288e0b6759631c7b893d.tar.gz
olsndot-5b5a380a4b7d1d5f4adc288e0b6759631c7b893d.tar.bz2
olsndot-5b5a380a4b7d1d5f4adc288e0b6759631c7b893d.zip
clamp: Add rail mounts
Diffstat (limited to 'hardware/enclosure')
-rw-r--r--hardware/enclosure/olsndot_clamp_base.scad41
1 files changed, 35 insertions, 6 deletions
diff --git a/hardware/enclosure/olsndot_clamp_base.scad b/hardware/enclosure/olsndot_clamp_base.scad
index 726a907..177a61a 100644
--- a/hardware/enclosure/olsndot_clamp_base.scad
+++ b/hardware/enclosure/olsndot_clamp_base.scad
@@ -13,9 +13,9 @@ module clamp(
nw=7.8,
nd=3,
notch_sf=0.75,
- notch_d=2,
+ notch_d=3,
notch_a=10,
- notch_o=1,
+ notch_o=0.5,
edge_a=5,
edge_d=12) {
translate([-h-l/2, -w/2, 0]) union() {
@@ -54,23 +54,52 @@ nut_depth=5.5;
nut_off_y = 80/2;
nut_off_x = 20;
-module base($fn=25, cw=90, sw=15, sh=15, strut_spacing=30, clamp_dist=90) {
+module nut_holder(
+ a = 30,
+ b = 15,
+ c = 10,
+ d = 5.0,
+ e = 4.0,
+ ) {
+
difference() {
+ union() {
+ translate([-b/2, -(a-b)/2, 0]) cube([b, a-b, c]);
+ translate([0, -(a-b)/2, 0]) cylinder(d=b, h=c);
+ translate([0, (a-b)/2, 0]) cylinder(d=b, h=c);
+ }
+ translate([0, a/2 - d, -eps]) {
+ translate([0, 0, c-nut_depth+2*eps]) cylinder(d=nut_dia, h=nut_depth);
+ cylinder(d=e, h=c+2*eps);
+ }
+ translate([0, -a/2 + d, -eps]) {
+ translate([0, 0, c-nut_depth+2*eps]) cylinder(d=nut_dia, h=nut_depth);
+ cylinder(d=e, h=c+2*eps);
+ }
+ }
+}
+
+module base($fn=25, cw=90, sw=15, sh=15, strut_spacing=30, clamp_dist=90) {
+ d = 30;
+ clamp(l=cw, h=sh);
+ translate([-d, 0, 0]) nut_holder();
+ translate([d, 0, 0]) nut_holder();
+ /*difference() {
translate([0, -clamp_dist/2, 0]) union() {
- translate([0, clamp_dist, 0]) clamp(l=cw, h=sh);
+ */
/*
translate([0, 0, 0]) clamp(l=cw, h=sh);
translate([-strut_spacing/2-sw, 0, 0]) cube([sw, clamp_dist, sh]);
translate([ strut_spacing/2, 0, 0]) cube([sw, clamp_dist, sh]);
*/
- }
+ //}
/*
translate([nut_off_x, nut_off_y, -eps]) cylinder(d=nut_dia, h=nut_depth+eps);
translate([nut_off_x, -nut_off_y, -eps]) cylinder(d=nut_dia, h=nut_depth+eps);
translate([-nut_off_x, nut_off_y, -eps]) cylinder(d=nut_dia, h=nut_depth+eps);
translate([-nut_off_x, -nut_off_y, -eps]) cylinder(d=nut_dia, h=nut_depth+eps);
*/
- }
+ //}
}
base(); \ No newline at end of file