Files
traegerController/Traeger Controller Mounting Plate.scad
2022-06-26 22:10:54 -06:00

41 lines
1.7 KiB
OpenSCAD

plate_width = 70;
plate_depth = 140;
plate_height = 2;
mounting_hole_diameter = 5;
mounting_hole_outer_offset = 5.5;
mounting_hole_true_offset = mounting_hole_outer_offset + (mounting_hole_diameter/2);
power_switch_hole_width = 13.5;
power_switch_hole_depth = 19.9;
oem_pcb_mount_post_diameter = 5;
oem_pcb_upper_mount_x_outer_dimension = 13;
oem_pcb_upper_mount_y_outer_dimension = 22.5;
oem_pcb_upper_mount_center_x = plate_width - oem_pcb_upper_mount_x_outer_dimension + (oem_pcb_mount_post_diameter/2);
oem_pcb_upper_mount_center_y = oem_pcb_upper_mount_y_outer_dimension - (oem_pcb_mount_post_diameter/2);
oem_pcb_lower_mount_x_outer_dimension = 36.25;
oem_pcb_lower_mount_y_outer_dimension = 26;
oem_pcb_lower_mount_center_x = plate_width - oem_pcb_lower_mount_x_outer_dimension + (oem_pcb_mount_post_diameter/2);
oem_pcb_lower_mount_center_y = plate_depth - oem_pcb_lower_mount_y_outer_dimension + (oem_pcb_mount_post_diameter/2);
oem_pcb_mount_post_height = 40;
oem_pcb_mount_new_post_diameter = 6;
$fn = 200;
difference() {
cube([plate_width, plate_depth, plate_height]);
translate([plate_width/2, mounting_hole_true_offset, -0.05]) {
cylinder(h= plate_height + 0.1, d = mounting_hole_diameter);
translate([0, plate_depth - (mounting_hole_true_offset * 2), 0]) {
cylinder(h= plate_height + 0.1, d = mounting_hole_diameter);
}
}
}
translate([oem_pcb_upper_mount_center_x, oem_pcb_upper_mount_center_y, 0]) {
cylinder(h = oem_pcb_mount_post_height, d = oem_pcb_mount_new_post_diameter);
}
translate([oem_pcb_lower_mount_center_x, oem_pcb_lower_mount_center_y, 0]) {
cylinder(h = oem_pcb_mount_post_height, d = oem_pcb_mount_new_post_diameter);
}