cad/util.scad
Ricardo (XenGi) Band 5017dc589c
add makefile
2023-05-14 00:09:22 +02:00

35 lines
783 B
OpenSCAD

// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
pcb_width = 139.7;
pcb_depth = 82.55;
pcb_radius = 3.175;
pcb_thickness = 1.6;
plate_height = 1.5;
case_thickness = 5;
case_bottom_thickness = 3;
case_height = 10;
standoff_height = 3;
mounting_holes = [
[36.5125, 21.0188],
[30.9563, 57.9438],
[116.6813, 14.2875],
[98.425, 69.0563]
];
module lug(north_facing=true, hole=true) {
difference() {
hull() {
translate([0, north_facing ? 2 : -2, 0]) cylinder(h=plate_height, d=4);
translate([-5, 0, 0]) cylinder(h=plate_height, d=2);
translate([5, 0, 0]) cylinder(h=plate_height, d=2);
}
if (hole) {
translate([0, north_facing ? 2 : -2, 0]) cylinder(h=plate_height, d=2.2);
}
}
}