2018-12-08 02:07:41 +01:00
|
|
|
boardWidth=39;
|
2018-12-10 16:21:31 +01:00
|
|
|
boardDeepth=54;
|
2018-12-08 02:07:41 +01:00
|
|
|
wallWidth=2;
|
2018-12-10 16:21:31 +01:00
|
|
|
wallHeight=40;
|
|
|
|
wallHeightTop=20;
|
2018-12-08 02:07:41 +01:00
|
|
|
// connectors
|
|
|
|
buttonHole=7.5;
|
|
|
|
powerHole=8.5;
|
|
|
|
// USB mount
|
|
|
|
usbWidth=8;
|
|
|
|
usbHeight=4;
|
|
|
|
|
|
|
|
// box mount
|
|
|
|
drill=5;
|
|
|
|
|
|
|
|
|
|
|
|
cube([boardWidth,boardDeepth,wallWidth], center=true);
|
|
|
|
// right
|
2018-12-10 16:21:31 +01:00
|
|
|
translate([boardWidth/2+wallWidth/2,0,wallHeightTop/2-wallWidth/2]) cube([wallWidth,boardDeepth, wallHeightTop], center=true);
|
2018-12-08 02:07:41 +01:00
|
|
|
// left
|
|
|
|
translate([-(boardWidth/2+wallWidth/2),0,wallHeight/2-wallWidth/2]) cube([wallWidth,boardDeepth, wallHeight], center=true);
|
|
|
|
// top
|
2018-12-10 16:21:31 +01:00
|
|
|
translate([0,boardDeepth/2+wallWidth/2,wallHeight/2-wallWidth/2]) union() {
|
|
|
|
cube([boardWidth+2*wallWidth,wallWidth, wallHeight], center=true);
|
|
|
|
// power
|
|
|
|
translate([boardDeepth*0.25, 0,wallHeight*0.25]) rotate([90,90,0]) cylinder(d=powerHole, h=wallWidth*2, center=true, $fn=180);
|
|
|
|
// button
|
|
|
|
translate([0, 0,wallHeight*0.25]) rotate([90,90,0]) cylinder(d=buttonHole, h=wallWidth*2, center=true, $fn=180);
|
|
|
|
|
|
|
|
}
|
2018-12-08 02:07:41 +01:00
|
|
|
// buttom
|
|
|
|
translate([0,-(boardDeepth/2+wallWidth/2),wallHeight/2-wallWidth/2]) difference() {
|
|
|
|
cube([boardWidth+2*wallWidth,wallWidth, wallHeight], center=true);
|
|
|
|
translate([-boardWidth*0.20, 0,wallHeight*0.25]) cube([usbWidth, 2*wallWidth, usbHeight], center=true);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mount to the Sideboard
|
|
|
|
translate([0,boardDeepth/2+wallWidth+(drill*2+wallWidth)/2,0]) difference() {
|
|
|
|
cube([drill*2+wallWidth,drill*2+wallWidth,wallWidth], center=true);
|
|
|
|
cylinder(d=(drill), h=wallWidth*2, center=true, $fn=180);
|
|
|
|
}
|
|
|
|
translate([0,-(boardDeepth/2+wallWidth+(drill*2+wallWidth)/2),0]) difference() {
|
|
|
|
cube([drill*2+wallWidth,drill*2+wallWidth,wallWidth], center=true);
|
|
|
|
cylinder(d=(drill), h=wallWidth*2, center=true, $fn=180);
|
|
|
|
}
|