summaryrefslogtreecommitdiff
path: root/body/m12_lense_holder.scad
diff options
context:
space:
mode:
Diffstat (limited to 'body/m12_lense_holder.scad')
-rw-r--r--body/m12_lense_holder.scad38
1 files changed, 37 insertions, 1 deletions
diff --git a/body/m12_lense_holder.scad b/body/m12_lense_holder.scad
index 5907720..26a4a10 100644
--- a/body/m12_lense_holder.scad
+++ b/body/m12_lense_holder.scad
@@ -1,4 +1,5 @@
use <helpers.scad>
+include <helpers.scad>
include <veye_imx287.scad>
// m12 cam holder size
@@ -64,7 +65,8 @@ module m12_lense_holder_base()
//m12_lense_holder_wo_holes(th = 0.001, bh = 0.001);
$S = $m12_lense_holder_size;
//$cube_size = [$S, $S, 1];
- $cube_size = [veye_imx287_pcb_w, $S, 1];
+ padding = 2;
+ $cube_size = [veye_imx287_pcb_w + padding * 2, $S, 1];
rotate([-90, 0, 0])
{
@@ -87,6 +89,28 @@ module m12_lense_holder_top()
}
}
+module m12_lense_holder_screw_holes()
+{
+ rotate([-90, 0, 0])
+ {
+ // left screw hole
+ translate($m12_lense_holder_l_hole_offset)
+ cylinder(
+ $fn = diameterToFn($m12_lense_holder_sh_inner_d),
+ h = $m12_lense_holder_bottom_h * 3,
+ d = $m12_lense_holder_sh_inner_d,
+ center = true);
+
+ // right screw hole
+ translate($m12_lense_holder_r_hole_offset)
+ cylinder(
+ $fn = diameterToFn($m12_lense_holder_sh_inner_d),
+ h = $m12_lense_holder_bottom_h * 3,
+ d = $m12_lense_holder_sh_inner_d,
+ center = true);
+ }
+}
+
module m12_lense_holder_holes()
{
rotate([-90, 0, 0])
@@ -126,7 +150,19 @@ module m12_lense_holder()
}
}
+module m12_lense_holder_mount_holes()
+{
+ m = 2;
+ h = 4;
+
+ rotate([90, 0, 0])
+ cylinder($fn = dToFn(m), h = h * 2, d = m, center = true);
+}
+
*m12_lense_holder();
+*m12_lense_holder_holes();
+*m12_lense_holder_screw_holes();
+*m12_lense_holder_mount_holes();
*m12_lense_holder_wo_holes();
*m12_lense_holder_base();
*m12_lense_holder_top(); \ No newline at end of file