commit 4c1692263e9b94d8f9691f6ffdc1e5fa228d2a5d Author: 5shekel Date: Tue Nov 25 14:02:50 2025 +0200 two ids plates diff --git a/plate_with_holes.scad b/plate_with_holes.scad new file mode 100644 index 0000000..7429d3f --- /dev/null +++ b/plate_with_holes.scad @@ -0,0 +1,69 @@ +// Double mounting plate with shared base and tripod mount +// Two 24x25mm sections with 10mm spacing and 4 M3 holes each +// 1/4" tripod hole in center, 3mm padding on all sides + +// Parameters +plate_width = 24; // mm (width of each mounting section) +plate_height = 25; // mm +plate_thickness = 2; // mm +spacing = 15; // mm (gap between mounting sections) +hole_diameter = 3.2; // mm (M3 clearance hole) +hole_margin = 3; // mm from edge of mounting section +padding = 3; // mm padding on all sides +tripod_hole_diameter = 6.35; // mm (1/4" standard tripod screw) + +// Total dimensions with padding +mount_area_width = plate_width * 2 + spacing; +total_width = mount_area_width + 2 * padding; +total_height = plate_height + 2 * padding; + +// Main module with shared base +module double_plate_with_holes() { + difference() { + // Single continuous base rectangle with padding + cube([total_width, total_height, plate_thickness]); + + // First set of 4 holes (left section) - offset by padding + // Bottom-left + translate([padding + hole_margin, padding + hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // Bottom-right + translate([padding + plate_width - hole_margin, padding + hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // Top-left + translate([padding + hole_margin, padding + plate_height - hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // Top-right + translate([padding + plate_width - hole_margin, padding + plate_height - hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // Second set of 4 holes (right section) - offset by padding + offset_x = padding + plate_width + spacing; + + // Bottom-left + translate([offset_x + hole_margin, padding + hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // Bottom-right + translate([offset_x + plate_width - hole_margin, padding + hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // Top-left + translate([offset_x + hole_margin, padding + plate_height - hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // Top-right + translate([offset_x + plate_width - hole_margin, padding + plate_height - hole_margin, -0.5]) + cylinder(h = plate_thickness + 1, d = hole_diameter, $fn = 30); + + // 1/4" tripod hole in center + translate([total_width / 2, total_height / 2, -0.5]) + cylinder(h = plate_thickness + 1, d = tripod_hole_diameter, $fn = 30); + } +} + +// Render the double plate +double_plate_with_holes(); \ No newline at end of file