Files
Fabula/enclosure/internal_components.scad
2026-01-02 10:45:55 +01:00

42 lines
1.3 KiB
OpenSCAD

// This file contains the components used in Fabula.
// This is for test-fitting and shouldn't be printed.
// 50mm speaker
module speaker() {
translate([0, 0, -2]) {
union() {
difference() {
// Mounting Plaque
cube([55, 55, 4], true);
// Screw holes
translate([-20, -20, 0]) cylinder(h = 100, d = 4, center = true);
translate([20, -20, 0]) cylinder(h = 100, d = 4, center = true);
translate([-20, 20, 0]) cylinder(h = 100, d = 4, center = true);
translate([20, 20, 0]) cylinder(h = 100, d = 4, center = true);
// Speaker cone (cosmetic)
translate([0, 0, 2]) cylinder(h = 1, d = 49, center = true);
}
translate([0, 0, - 16 - 2]) cylinder(h = 32, d = 44, center = true);
}
}
}
// 4056-based li-ion charging module
module li_ion_4056_charger_module() {
cube([28, 17, 2], true);
translate([-14 + 3.25, 0, 2]) cube([6.5, 8.9, 3], true);
}
// 14x12mm rocker switch with 21x15mm flange
module switch() {
// Body
cube([14, 12, 11], true);
// Flange
translate([0, 0, 11/2]) cube([21, 15, 2], true);
// Rocker
translate([0, 0, 6]) rotate([0, 15, 0]) cube([12, 10, 5], true);
}
//speaker();
//li_ion_4056_charger_module();
switch();