summaryrefslogtreecommitdiff
path: root/body/veye_imx287.scad
diff options
context:
space:
mode:
Diffstat (limited to 'body/veye_imx287.scad')
-rw-r--r--body/veye_imx287.scad37
1 files changed, 33 insertions, 4 deletions
diff --git a/body/veye_imx287.scad b/body/veye_imx287.scad
index dd08c0b..aed7db0 100644
--- a/body/veye_imx287.scad
+++ b/body/veye_imx287.scad
@@ -1,5 +1,6 @@
include <design.scad>
include <helpers.scad>
+include <holes.scad>
veye_imx287_pcb_w = 29;
veye_imx287_pcb_h = 29;
@@ -113,8 +114,9 @@ module veye_imx287_natural()
module veye_imx287_mount_plate_outer()
{
- w = veye_imx287_pcb_w;
- h = veye_imx287_pcb_h;
+ padding = 2;
+ w = veye_imx287_pcb_w + padding * 2;
+ h = veye_imx287_pcb_h + padding * 2;
t = veye_imx287_mount_plate_thickness;
cr = veye_imx287_mount_plate_corner_radius;
@@ -229,16 +231,43 @@ module veye_imx287_mount_plate()
}
}
-color("yellow", 0.4)
+
+module veye_imx287_mount_holes()
+{
+ id = 4;
+ m2 = 2;
+
+ // distance between holes
+ h_delta = 25;
+
+ translate([0, -imx287_thickness - $tiny_padding, 0])
+ for (
+ dx = [h_delta / 2, -h_delta / 2],
+ dy = [h_delta / 2, -h_delta / 2])
+ {
+ translate([dx, 0, dy])
+ screw_hole(
+ m = m2,
+ id = id,
+ il = hole_insert_height,
+ hd = m2_head_diameter,
+ hh = m2_head_height,
+ hs = hole_side_back);
+ }
+}
+
+color("green", 0.1)
*veye_imx287_natural();
color("green", 0.4)
*veye_imx287_mount_plate();
-color("red", 0.4)
+color("red", 0.1)
*veye_imx287_mount_plate_outer();
color("green", 0.3)
*veye_imx287_mount_plate_inner();
+*veye_imx287_mount_holes();
+
*difference()
{
//color("brown", 0.4)