From 83f7ddeee402e27627675846eee0a0855c9ad6f0 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 12 Aug 2019 03:34:04 +0200 Subject: import v2 --- tabletop_tablet_stand_base.scad | 30 +++++++++++++++--------- tabletop_tablet_stand_clamp.scad | 49 ++++++++++++++++++++++++---------------- 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 @@ -thickness = 15; -legWidth = 50; -rearLegLength = 40; +thickness = 12; +legWidth = 20; +legWallThickness = 2; +rearLegLength = 30; frontLegLength = 90; -frontLegCenterRotationDegrees = 65; +frontLegCenterRotationDegrees = 55; +legLift = 2; -nutInsetHeight = 7; -nutInsetDiameter = 20; - -threadDiameter = 6; +nutInsetHeight = 4; +nutInsetDiameter = 15; +threadDiameter = 7; module leg(width, length, thickness) { - translate([-width/2, 0, 0]) - cube([width, length, thickness]); + difference() { + translate([-width/2, 0, 0]) + cube([width, length, thickness]); + + translate([-width/2+legWallThickness, 0, legWallThickness]) + cube([width - 2*legWallThickness, length, thickness - legWallThickness]); + } translate([0, length, 0]) - cylinder(r = width/2, h = thickness); + cylinder(r = width/2, h = thickness + legLift); + + cylinder(r = width/2, h = thickness); } difference() { 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 @@ module prism(l, w, h) { - polyhedron(points=[ - [0,0,h], // 0 front top corner - [0,0,0],[w,0,0], // 1, 2 front left & right bottom corners - [0,l,h], // 3 back top corner - [0,l,0],[w,l,0] // 4, 5 back left & right bottom corners - ], faces=[ // points for all faces must be ordered clockwise when looking in - [0,2,1], // top face - [3,4,5], // base face - [0,1,4,3], // h face - [1,2,5,4], // w face - [0,3,5,2], // hypotenuse face - ]); + polyhedron( + points=[ + [0,0,h], // 0 front top corner + [0,0,0], [w,0,0], // 1, 2 front left & right bottom corners + [0,l,h], // 3 back top corner + [0,l,0], [w,l,0] // 4, 5 back left & right bottom corners + ], + faces=[ // points for all faces must be ordered clockwise when looking in + [0,2,1], // top face + [3,4,5], // base face + [0,1,4,3], // h face + [1,2,5,4], // w face + [0,3,5,2], // hypotenuse face + ] + ); } -threadDiameter = 7; -threadTubeOuterDiameter = 11; - -baseThickness = 4; +baseThickness = 3; baseHeight = 40; baseWidth = 80; gapWidth = 30; clampDepth = 15; -clampHeight = 10; +clampHeight = 5; + +threadDiameter = 7; +threadTubeOuterDiameter = threadDiameter+baseThickness*2; difference() { union() { cube([baseThickness, baseWidth, baseHeight]); translate([-clampDepth, 0, 0]) - prism(baseWidth, clampDepth+baseThickness, clampHeight); + cube([clampDepth, baseWidth, baseThickness]); + + translate([-clampDepth, 0, baseThickness]) + prism(baseWidth, clampDepth, clampHeight); translate([0, (baseWidth - threadTubeOuterDiameter)/2, 0]) - cube([threadTubeOuterDiameter, threadTubeOuterDiameter, baseHeight]); + cube([threadTubeOuterDiameter/2, threadTubeOuterDiameter, baseHeight]); + + translate([threadTubeOuterDiameter/2, baseWidth/2, 0]) + cylinder(r = threadTubeOuterDiameter/2, h = baseHeight); } // thread hole @@ -41,5 +50,5 @@ difference() { // clamp gap translate([-clampDepth, (baseWidth-gapWidth)/2, 0]) - cube([clampDepth, gapWidth, clampHeight]); + cube([clampDepth, gapWidth, clampHeight+baseThickness]); } -- cgit v1.2.3