From 37723da199664201d0a24b526f1056b572bcadb0 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Mon, 26 Jan 2026 22:47:37 +0100 Subject: add holes --- body/veye_imx287.scad | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'body/veye_imx287.scad') 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 include +include 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) -- cgit v1.2.3-70-g09d2