chiark / gitweb /
laptop-camera-tripod-bracket: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 14 Apr 2020 00:35:54 +0000 (01:35 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 14 Apr 2020 00:35:54 +0000 (01:35 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
laptop-camera-tripod-bracket.scad

index b284e808fc6f0e912dfc544ecde480580f7f768e..f5b0bd3294961a5121f0ec6f4addd1770ed1869c 100644 (file)
@@ -3,16 +3,24 @@
 laptop_w       = 310;
 laptop_th_rear  = 14;
 laptop_th_front = 11;
-laptop_halfdepth = 125;
+laptop_halfdepth_real = 125;
+laptop_halfdepth = 115; //125;
 laptop_inner_x_clear = 95;
 
 include <utils.scad>
+include <camera-mount.scad>
 
 bar_w = 20;
 bar_th = 10;
 flex_allow = 3;
 claw_th = 5;
 claw_overlap = 10;
+mount_dia = 50;
+
+min_ceil = 1;
+
+//$test=true;
+$test=false;
 
 module ClawProfile(laptop_th){
   laptop_zmin = bar_th + flex_allow;
@@ -35,16 +43,29 @@ module ClawBar(inner_len, laptop_th){
 }
 
 module Body(){
-  for (m=[0,1]) {
-    mirror([m,0]) {
-      ClawBar(laptop_w/2, laptop_th_rear);
-      translate([ laptop_w/2 - laptop_inner_x_clear + bar_w/2, 0])
-       rotate([0,0,-90])
-       ClawBar(laptop_halfdepth, laptop_th_front);
+  translate([0, laptop_halfdepth - laptop_halfdepth_real, 0])
+    for (m=[0,1]) {
+      mirror([m,0]) {
+       ClawBar(laptop_w/2, laptop_th_rear);
+       translate([ laptop_w/2 - laptop_inner_x_clear + bar_w/2, 0])
+         rotate([0,0,-90])
+         ClawBar(laptop_halfdepth, laptop_th_front);
+      }
     }
+  cylinder(r = mount_dia/2, h= bar_th);
+}
+
+module Bracket(){
+  difference(){
+    Body();
+    rotate([0,180,0])
+      CameraMountThread( bar_th + 2 );
   }
+  translate([0,0, bar_th-min_ceil])
+    cylinder(r= mount_dia/2-1, h=min_ceil);
 }
 
 //ClawProfile(laptop_th_front);
 //ClawBar(125, laptop_th_front);
-Body();
+//Body();
+Bracket();