2024-03-20 13:35:11 -06:00
|
|
|
include <PiZero.scad>
|
|
|
|
include <BOSL2/std.scad>
|
|
|
|
|
2024-03-20 14:35:37 -06:00
|
|
|
CaseSizeX = PiSizeX + 1.5;
|
|
|
|
CaseSizeY = PiSizeY + 1.5;
|
|
|
|
wall_thickness_mod = 3;
|
2024-03-20 13:35:11 -06:00
|
|
|
cap_thickness = 6;
|
|
|
|
case_height = 7;
|
2024-03-20 14:35:37 -06:00
|
|
|
outer_rect_size=[CaseSizeX + wall_thickness_mod, CaseSizeY + wall_thickness_mod];
|
2024-03-20 13:35:11 -06:00
|
|
|
PiZeroVer = "WH";
|
|
|
|
|
2024-03-20 13:41:33 -06:00
|
|
|
%up(cap_thickness) PiZeroBody(false);
|
2024-03-20 13:35:11 -06:00
|
|
|
union() {
|
|
|
|
// Case Walls
|
|
|
|
up(cap_thickness - 0.05) difference() {
|
2024-03-20 14:35:37 -06:00
|
|
|
rect_tube(h=case_height, size=outer_rect_size , isize=[CaseSizeX, CaseSizeY], anchor=BOTTOM);
|
2024-03-20 13:35:11 -06:00
|
|
|
up(0.5) PiZeroBody(true);
|
2024-03-20 14:35:37 -06:00
|
|
|
up(2) fwd(CaseSizeY / 2 + wall_thickness_mod / 2 - 0.29) right(CaseSizeX / 2 - 6) xrot(90) text3d(text = "5V", size=3, font = "Hurmit Nerd Font", thickness = 0.3, anchor=FRONT+LEFT+BOTTOM);
|
2024-03-20 13:35:11 -06:00
|
|
|
}
|
|
|
|
// Bottom Wall Cap
|
|
|
|
linear_extrude(cap_thickness) rect(size = outer_rect_size, anchor = CENTER, spin = 0);
|
|
|
|
// Top Wall Cap
|
|
|
|
// %up(cap_thickness + case_height - 0.1) linear_extrude(cap_thickness) rect(size = outer_rect_size, anchor = CENTER, spin = 0);
|
|
|
|
}
|