Initial rpi4 cover
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$fn=16*2;
|
||||
$fn=32*2;
|
||||
|
||||
thinkness=1.6;
|
||||
width=208.5;
|
||||
@@ -30,6 +30,9 @@ usb_floor();
|
||||
// battery floor
|
||||
battery_floor(145);
|
||||
|
||||
// raspberry pi 4 cover
|
||||
rpi4_cover();
|
||||
|
||||
module usb_floor(){
|
||||
offset=5.6+thinkness;
|
||||
hole=6;
|
||||
@@ -69,4 +72,30 @@ module battery_floor(x){
|
||||
translate([x+thinkness+5, depth+(thinkness*2)-offset, height+4])
|
||||
cylinder(h=thinkness, d=hole);
|
||||
}
|
||||
}
|
||||
|
||||
module rpi4_cover(){
|
||||
difference(){
|
||||
translate([31+thinkness+10, 0, height])
|
||||
cube([104, depth+(thinkness*2), 25+thinkness]);
|
||||
|
||||
translate([31+thinkness+10, thinkness, height])
|
||||
cube([104, depth, 25]);
|
||||
|
||||
translate([31+thinkness+62, (depth+(thinkness*2))/2, height+25])
|
||||
cylinder(h=thinkness, d=42);
|
||||
}
|
||||
|
||||
translate([17+thinkness, 0, height+2.6])
|
||||
#prism(24, thinkness, 24);
|
||||
|
||||
// MK Logo
|
||||
translate([31+thinkness+62, (depth+(thinkness*2))/2, height+25])
|
||||
import("mk-logo.stl");
|
||||
}
|
||||
|
||||
module prism(l, w, h){
|
||||
polyhedron(
|
||||
points=[[0,w,0], [0,0,0], [l,0,0], [l,w,0], [l,w,h], [l,0,h]],
|
||||
faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]]);
|
||||
}
|
||||
Reference in New Issue
Block a user