40 lines
1.0 KiB
OpenSCAD
40 lines
1.0 KiB
OpenSCAD
// The cutouts to allow external components (such as buttons and connectors) to be mounted on the box
|
|
|
|
// 4056-based li-ion charging module
|
|
module usb_cutout() {
|
|
hull() {
|
|
translate([0, -3, 0]) cylinder(h=11, d=8);
|
|
translate([0, 3, 0]) cylinder(h=11, d=8);
|
|
translate([0, 0, 12]) cube([3, 8.9, 2], true);
|
|
}
|
|
}
|
|
|
|
// 14x12mm rocker switch with 21x15mm flange
|
|
module switch_cutout() {
|
|
cube([14.2, 12.2, 30], true);
|
|
}
|
|
|
|
module speaker_grille() {
|
|
linear_extrude(height = 10, center = true) {
|
|
import("speaker_grille.svg");
|
|
}
|
|
}
|
|
|
|
module keycap() {
|
|
cylinder(h = 10, d = 20, $fn = 128);
|
|
}
|
|
|
|
module character_retainer_cutout() {
|
|
$fn = 128;
|
|
// Ring cutout
|
|
cylinder(d = 60, h = 5);
|
|
// 5mm LED hole
|
|
translate([0, 25, 10]) cylinder(d = 5, h = 15, center = true);
|
|
// Screw holes
|
|
translate([25, 0, 10]) cylinder(d = screw_hole_diameter, h = 15, center = true);
|
|
translate([-25, 0, 10]) cylinder(d = screw_hole_diameter, h = 15, center = true);
|
|
}
|
|
|
|
//usb_cutout();
|
|
//speaker_grille();
|
|
character_retainer_cutout(); |