luniebox/hardware/case/square/luniebox-bottom.scad

54 lines
1.5 KiB
OpenSCAD
Raw Normal View History

2022-02-06 10:19:03 +01:00
include<luniebox-helper.scad>
module luniebox_bottom() {
difference() {
union() {
cube([length+depth,width+depth,depth]);
// clips
translate([6,clip_space,0])
rotate([0,0,90])
clip_screw();
translate([6,clip_width_space,0])
rotate([0,0,90])
clip_screw();
translate([length+depth,clip_space,0])
rotate([0,0,90])
clip_screw();
translate([length+depth,clip_width_space,0])
rotate([0,0,90])
clip_screw();
// screws Raspi Zero
2022-03-13 09:28:58 +01:00
translate([15,40+depth,depth])
2022-02-06 10:19:03 +01:00
screw();
2022-03-13 09:28:58 +01:00
translate([73,40+depth,depth])
2022-02-06 10:19:03 +01:00
screw();
2022-03-13 09:28:58 +01:00
translate([15,63+depth,depth])
2022-02-06 10:19:03 +01:00
screw();
2022-03-13 09:28:58 +01:00
translate([73,63+depth,depth])
2022-02-06 10:19:03 +01:00
screw();
2022-03-13 09:28:58 +01:00
// screws UPS HAT
translate([15,5+depth,depth])
screw(h=24);
translate([74,5+depth,depth])
screw(h=24);
2022-02-06 10:19:03 +01:00
// screws MCP
2022-03-13 09:28:58 +01:00
translate([length/2-7.5,width/2+35-7+depth,depth])
2022-02-06 10:19:03 +01:00
screw();
2022-03-13 09:28:58 +01:00
translate([length/2+7.5,width/2+35-7+depth,depth])
2022-02-06 10:19:03 +01:00
screw();
}
// clip holes
translate([clip_space,depth+clip_d/2,0])
clip_hole();
translate([clip_length_space,depth+clip_d/2,0])
clip_hole();
2022-03-13 09:28:58 +01:00
translate([clip_space,width-clip_d/2 - front_offset,0])
2022-02-06 10:19:03 +01:00
clip_hole();
2022-03-13 09:28:58 +01:00
translate([clip_length_space,width-clip_d/2 - front_offset,0])
2022-02-06 10:19:03 +01:00
clip_hole();
}
}
luniebox_bottom();