aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2019-08-12 03:34:04 +0200
committerpacien2019-08-12 03:34:04 +0200
commit83f7ddeee402e27627675846eee0a0855c9ad6f0 (patch)
treed2a5e8c05ee4253403426f157fb4a64fd6a5f691
parentc51d58c001ad2b846e8f6ddc7f19cb378e3c59f0 (diff)
downloadtabletop-tablet-stand-83f7ddeee402e27627675846eee0a0855c9ad6f0.tar.gz
import v2
-rw-r--r--tabletop_tablet_stand_base.scad30
-rw-r--r--tabletop_tablet_stand_clamp.scad49
2 files changed, 48 insertions, 31 deletions
diff --git a/tabletop_tablet_stand_base.scad b/tabletop_tablet_stand_base.scad
index bdb1aab..6383ffd 100644
--- a/tabletop_tablet_stand_base.scad
+++ b/tabletop_tablet_stand_base.scad
@@ -1,20 +1,28 @@
1thickness = 15; 1thickness = 12;
2legWidth = 50; 2legWidth = 20;
3rearLegLength = 40; 3legWallThickness = 2;
4rearLegLength = 30;
4frontLegLength = 90; 5frontLegLength = 90;
5frontLegCenterRotationDegrees = 65; 6frontLegCenterRotationDegrees = 55;
7legLift = 2;
6 8
7nutInsetHeight = 7; 9nutInsetHeight = 4;
8nutInsetDiameter = 20; 10nutInsetDiameter = 15;
9 11threadDiameter = 7;
10threadDiameter = 6;
11 12
12module leg(width, length, thickness) { 13module leg(width, length, thickness) {
13 translate([-width/2, 0, 0]) 14 difference() {
14 cube([width, length, thickness]); 15 translate([-width/2, 0, 0])
16 cube([width, length, thickness]);
17
18 translate([-width/2+legWallThickness, 0, legWallThickness])
19 cube([width - 2*legWallThickness, length, thickness - legWallThickness]);
20 }
15 21
16 translate([0, length, 0]) 22 translate([0, length, 0])
17 cylinder(r = width/2, h = thickness); 23 cylinder(r = width/2, h = thickness + legLift);
24
25 cylinder(r = width/2, h = thickness);
18} 26}
19 27
20difference() { 28difference() {
diff --git a/tabletop_tablet_stand_clamp.scad b/tabletop_tablet_stand_clamp.scad
index b63dcf2..2ade4eb 100644
--- a/tabletop_tablet_stand_clamp.scad
+++ b/tabletop_tablet_stand_clamp.scad
@@ -1,38 +1,47 @@
1module prism(l, w, h) { 1module prism(l, w, h) {
2 polyhedron(points=[ 2 polyhedron(
3 [0,0,h], // 0 front top corner 3 points=[
4 [0,0,0],[w,0,0], // 1, 2 front left & right bottom corners 4 [0,0,h], // 0 front top corner
5 [0,l,h], // 3 back top corner 5 [0,0,0], [w,0,0], // 1, 2 front left & right bottom corners
6 [0,l,0],[w,l,0] // 4, 5 back left & right bottom corners 6 [0,l,h], // 3 back top corner
7 ], faces=[ // points for all faces must be ordered clockwise when looking in 7 [0,l,0], [w,l,0] // 4, 5 back left & right bottom corners
8 [0,2,1], // top face 8 ],
9 [3,4,5], // base face 9 faces=[ // points for all faces must be ordered clockwise when looking in
10 [0,1,4,3], // h face 10 [0,2,1], // top face
11 [1,2,5,4], // w face 11 [3,4,5], // base face
12 [0,3,5,2], // hypotenuse face 12 [0,1,4,3], // h face
13 ]); 13 [1,2,5,4], // w face
14 [0,3,5,2], // hypotenuse face
15 ]
16 );
14} 17}
15 18
16threadDiameter = 7; 19baseThickness = 3;
17threadTubeOuterDiameter = 11;
18
19baseThickness = 4;
20baseHeight = 40; 20baseHeight = 40;
21baseWidth = 80; 21baseWidth = 80;
22 22
23gapWidth = 30; 23gapWidth = 30;
24clampDepth = 15; 24clampDepth = 15;
25clampHeight = 10; 25clampHeight = 5;
26
27threadDiameter = 7;
28threadTubeOuterDiameter = threadDiameter+baseThickness*2;
26 29
27difference() { 30difference() {
28 union() { 31 union() {
29 cube([baseThickness, baseWidth, baseHeight]); 32 cube([baseThickness, baseWidth, baseHeight]);
30 33
31 translate([-clampDepth, 0, 0]) 34 translate([-clampDepth, 0, 0])
32 prism(baseWidth, clampDepth+baseThickness, clampHeight); 35 cube([clampDepth, baseWidth, baseThickness]);
36
37 translate([-clampDepth, 0, baseThickness])
38 prism(baseWidth, clampDepth, clampHeight);
33 39
34 translate([0, (baseWidth - threadTubeOuterDiameter)/2, 0]) 40 translate([0, (baseWidth - threadTubeOuterDiameter)/2, 0])
35 cube([threadTubeOuterDiameter, threadTubeOuterDiameter, baseHeight]); 41 cube([threadTubeOuterDiameter/2, threadTubeOuterDiameter, baseHeight]);
42
43 translate([threadTubeOuterDiameter/2, baseWidth/2, 0])
44 cylinder(r = threadTubeOuterDiameter/2, h = baseHeight);
36 } 45 }
37 46
38 // thread hole 47 // thread hole
@@ -41,5 +50,5 @@ difference() {
41 50
42 // clamp gap 51 // clamp gap
43 translate([-clampDepth, (baseWidth-gapWidth)/2, 0]) 52 translate([-clampDepth, (baseWidth-gapWidth)/2, 0])
44 cube([clampDepth, gapWidth, clampHeight]); 53 cube([clampDepth, gapWidth, clampHeight+baseThickness]);
45} 54}