-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProtoBoardSupportModule.scad
More file actions
39 lines (34 loc) · 1.22 KB
/
Copy pathProtoBoardSupportModule.scad
File metadata and controls
39 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ProtoBoardSupport();
module ProtoBoardSupport(
boardSizeX = 44, // 50.82 actual
boardSizeY = 51, // 43.18 actual
boardThickness = 2, // 1.59 actual
railDepth = 2,
railHeightOffset = 5
)
{
nozzleDiameter = 0.4;
targetWallThickness = 2;
headroom = 1;
// correct the wall thickness to make it a multiple of the nozzle diameter
wallThickness = floor(targetWallThickness / nozzleDiameter) * nozzleDiameter;
if( targetWallThickness != wallThickness ){
echo(str("Wall thickness corrected to multiple of nozzle diameter: ", wallThickness));
}
boxSize = [ boardSizeX + wallThickness * 2,
boardSizeY + wallThickness * 2,
railHeightOffset + boardThickness + headroom];
translate([0, 0, boxSize[2]/2])
difference(){
// Create the shell of the board support box
cube(boxSize, center=true);
// hollow out the box
translate([wallThickness, 0, 0])
cube([ boardSizeX - railDepth + wallThickness * 2,
boardSizeY - railDepth,
(railHeightOffset + boardThickness + headroom) * 2], center=true);
// make the rails
translate([wallThickness, 0, railHeightOffset/2])
cube([boardSizeX + wallThickness * 2, boardSizeY, boardThickness], center=true);
} // difference
} // ProtoBoardSupport module