Files
ids_mount/plate_with_holes.scad
2025-11-25 14:02:50 +02:00

69 lines
2.9 KiB
OpenSCAD

// 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();