2019-06-10 14:02:51 +00:00
|
|
|
include<../sixinch_library.scad>
|
|
|
|
|
2019-06-10 14:54:30 +00:00
|
|
|
/* debug = false; */
|
|
|
|
/* if (debug) { */
|
|
|
|
/* $fn = 16; */
|
|
|
|
/* translate([85.5, 4, 54]) { */
|
|
|
|
/* rotate(a=[-90, -90, 0]) { */
|
|
|
|
/* color("red") { */
|
|
|
|
/* import("../../../Open_SCAD_Raspberry_PI3_model/files/Pi3HifiBerry.stl"); */
|
|
|
|
/* } */
|
|
|
|
/* } */
|
|
|
|
/* } */
|
|
|
|
/* } */
|
2019-06-10 14:02:51 +00:00
|
|
|
|
|
|
|
///////////////////////////////
|
|
|
|
// Raspberry Pi 3 Model B //
|
|
|
|
///////////////////////////////
|
|
|
|
|
|
|
|
print_frontplate_sml = false;
|
|
|
|
print_handle_sml = false;
|
2019-06-22 12:01:53 +00:00
|
|
|
print_cabinet_sml = false;
|
2019-06-10 14:02:51 +00:00
|
|
|
print_lid = false;
|
2019-06-22 12:01:53 +00:00
|
|
|
print_rear = true;
|
2019-06-17 20:05:36 +00:00
|
|
|
|
|
|
|
remove = true;
|
2019-06-10 14:02:51 +00:00
|
|
|
|
|
|
|
if(print_frontplate_sml){ // Frontplate //
|
|
|
|
square_hole = [];
|
|
|
|
round_hole = [[65 ,7.5, 3.1],[69.5 ,7.5, 3.1]];
|
2019-06-10 14:07:09 +00:00
|
|
|
round_peg = [];
|
2019-06-10 14:02:51 +00:00
|
|
|
screw_side_front = [];
|
|
|
|
screw_top = [36];
|
|
|
|
screw_bottom_front = [36];
|
2019-06-10 14:07:09 +00:00
|
|
|
units = 3;
|
2019-06-10 14:02:51 +00:00
|
|
|
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-06-10 14:07:09 +00:00
|
|
|
if(print_handle_sml){ // Handle //
|
|
|
|
units = 3;
|
|
|
|
lay_flat_for_print = false;
|
2019-06-10 14:02:51 +00:00
|
|
|
handle(units,lay_flat_for_print);
|
|
|
|
}
|
|
|
|
|
2019-06-10 14:07:09 +00:00
|
|
|
if(print_cabinet_sml){ // Cabinet //
|
2019-06-10 14:02:51 +00:00
|
|
|
w=88;
|
|
|
|
h=70;
|
|
|
|
screw_bottom_front = [36];
|
|
|
|
screw_side_front = [];
|
2019-06-10 14:07:09 +00:00
|
|
|
round_peg = [[w,h,6,3,4],
|
|
|
|
[w-49,h,6,3,4],
|
|
|
|
[w-49,h-58,6,3,4],
|
|
|
|
[w,h-58,6,3,4]];
|
2019-06-10 14:02:51 +00:00
|
|
|
depth = 98;
|
2019-06-10 14:07:09 +00:00
|
|
|
units = 3;
|
|
|
|
|
|
|
|
difference() {
|
|
|
|
|
|
|
|
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front);
|
|
|
|
|
|
|
|
hull() {
|
|
|
|
hull() {
|
|
|
|
rotate(a=90, v=[0, 1, 0]) {
|
|
|
|
translate([-45.5, 30, 10]) {
|
|
|
|
cylinder(h=50, r=7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
rotate(a=90, v=[0, 1, 0]) {
|
|
|
|
translate([-62.5, 30, 10]) {
|
|
|
|
cylinder(h=50, r=7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hull() {
|
|
|
|
rotate(a=90, v=[0, 1, 0]) {
|
|
|
|
translate([-45.5, 50, 10]) {
|
|
|
|
cylinder(h=50, r=7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
rotate(a=90, v=[0, 1, 0]) {
|
|
|
|
translate([-62.5, 50, 10]) {
|
|
|
|
cylinder(h=50, r=7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-10 14:02:51 +00:00
|
|
|
}
|
|
|
|
|
2019-06-10 14:07:09 +00:00
|
|
|
if(print_lid){ // Lid //
|
2019-06-10 14:02:51 +00:00
|
|
|
depth = 98;
|
2019-06-10 14:07:09 +00:00
|
|
|
units = 3;
|
2019-06-10 14:02:51 +00:00
|
|
|
screw_front = [36];//mm
|
|
|
|
screw_back = [36];//mm
|
2019-06-10 14:07:09 +00:00
|
|
|
lid(98,3,screw_front,screw_back);
|
|
|
|
|
2019-06-22 12:00:54 +00:00
|
|
|
translate([65, 20.5, 12]) {
|
|
|
|
cube([40, 21.5, 5]);
|
2019-06-10 14:07:09 +00:00
|
|
|
}
|
2019-06-22 12:00:54 +00:00
|
|
|
translate([65, 20.5, 71]) {
|
|
|
|
cube([40, 21.5, 5]);
|
2019-06-10 14:07:09 +00:00
|
|
|
}
|
2019-06-10 14:38:15 +00:00
|
|
|
|
2019-06-10 14:02:51 +00:00
|
|
|
}
|
|
|
|
|
2019-06-10 14:07:09 +00:00
|
|
|
if(print_rear){ // Back plate //
|
2019-06-22 12:01:53 +00:00
|
|
|
square_hole = [[37, 5, 17, 15] , [57, 6, 15, 16] , [75, 6, 15, 16] ];
|
|
|
|
round_hole = [[6,5,6],[6,1,6], [24,3.5,3.5], [24,1.2,3.5] ,[30,3.5,3.5], [30,1.2,3.5]];
|
2019-06-10 14:02:51 +00:00
|
|
|
screw_top = [36];//mm
|
|
|
|
screw_bottom = [36];//mm
|
|
|
|
screw_side = [];
|
|
|
|
depth = 98;
|
2019-06-10 14:07:09 +00:00
|
|
|
units = 3;
|
2019-06-10 14:02:51 +00:00
|
|
|
back_plate(units,depth,screw_top,screw_bottom,screw_side,square_hole,round_hole);
|
2019-06-10 14:07:09 +00:00
|
|
|
}
|