Added more space
This commit is contained in:
parent
1c12671d44
commit
ad70f1c8e4
10
PiZero.scad
10
PiZero.scad
|
@ -145,14 +145,14 @@ module PiZeroBody(extend_components = false) // Models the Pi.
|
||||||
// Now show the components
|
// Now show the components
|
||||||
PiComponent(PiSOC); // Processor
|
PiComponent(PiSOC); // Processor
|
||||||
PiComponent(PiSD, scaling=extend_components ? [2,1.1,1.3] : [1,1,1]); // SD card holder
|
PiComponent(PiSD, scaling=extend_components ? [2,1.1,1.3] : [1,1,1]); // SD card holder
|
||||||
PiComponent(PiHDMI, scaling=extend_components ? [1.1,2.5,1.3] : [1,1,1]); // HDMI
|
PiComponent(PiHDMI, scaling=extend_components ? [1.1,2.5,1.2] : [1,1,1]); // HDMI
|
||||||
PiComponent(PiUSB, scaling=extend_components ? [1.1,2.5,1.3] : [1,1,1]); // USB
|
PiComponent(PiUSB, scaling=extend_components ? [1.2,2.5,1.3] : [1,1,1]); // USB
|
||||||
PiComponent(PiOTG, scaling=extend_components ? [1.1,2.5,1.3] : [1,1,1]); // Power
|
PiComponent(PiOTG, scaling=extend_components ? [1.2,2.5,1.3] : [1,1,1]); // Power
|
||||||
PiComponent(PiACT); // Active LED
|
PiComponent(PiACT); // Active LED
|
||||||
if (PiZeroVer != "1.2") // Only 1.2 doesn't have camera header
|
if (PiZeroVer != "1.2") // Only 1.2 doesn't have camera header
|
||||||
{
|
{
|
||||||
PiComponent(PiCAMw, scaling=extend_components ? [3,1.1,1.3] : [1,1,1]);
|
PiComponent(PiCAMw, scaling=extend_components ? [4,1.1,1.3] : [1,1,1]);
|
||||||
PiComponent(PiCAMb, scaling=extend_components ? [3,1.1,1.3] : [1,1,1]);
|
PiComponent(PiCAMb, scaling=extend_components ? [4,1.1,1.3] : [1,1,1]);
|
||||||
}
|
}
|
||||||
if (isitPiW()) color("DarkGreen") translate([0,0,0.1]) linear_extrude(height=PiSizeZ) polygon(points=PiWiFi); // Antenna
|
if (isitPiW()) color("DarkGreen") translate([0,0,0.1]) linear_extrude(height=PiSizeZ) polygon(points=PiWiFi); // Antenna
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,21 @@
|
||||||
include <PiZero.scad>
|
include <PiZero.scad>
|
||||||
include <BOSL2/std.scad>
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
wall_thickness_mod = 2;
|
CaseSizeX = PiSizeX + 1.5;
|
||||||
|
CaseSizeY = PiSizeY + 1.5;
|
||||||
|
wall_thickness_mod = 3;
|
||||||
cap_thickness = 6;
|
cap_thickness = 6;
|
||||||
case_height = 7;
|
case_height = 7;
|
||||||
outer_rect_size=[PiSizeX + wall_thickness_mod, PiSizeY + wall_thickness_mod];
|
outer_rect_size=[CaseSizeX + wall_thickness_mod, CaseSizeY + wall_thickness_mod];
|
||||||
PiZeroVer = "WH";
|
PiZeroVer = "WH";
|
||||||
|
|
||||||
%up(cap_thickness) PiZeroBody(false);
|
%up(cap_thickness) PiZeroBody(false);
|
||||||
union() {
|
union() {
|
||||||
// Case Walls
|
// Case Walls
|
||||||
up(cap_thickness - 0.05) difference() {
|
up(cap_thickness - 0.05) difference() {
|
||||||
rect_tube(h=case_height, size=outer_rect_size , isize=[PiSizeX, PiSizeY], anchor=BOTTOM);
|
rect_tube(h=case_height, size=outer_rect_size , isize=[CaseSizeX, CaseSizeY], anchor=BOTTOM);
|
||||||
up(0.5) PiZeroBody(true);
|
up(0.5) PiZeroBody(true);
|
||||||
up(2) fwd(PiSizeY / 2 + wall_thickness_mod / 2 - 0.29) right(PiSizeX / 2 - 6) xrot(90) text3d(text = "5V", size=3, font = "Hurmit Nerd Font", thickness = 0.3, anchor=FRONT+LEFT+BOTTOM);
|
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);
|
||||||
}
|
}
|
||||||
// Bottom Wall Cap
|
// Bottom Wall Cap
|
||||||
linear_extrude(cap_thickness) rect(size = outer_rect_size, anchor = CENTER, spin = 0);
|
linear_extrude(cap_thickness) rect(size = outer_rect_size, anchor = CENTER, spin = 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user