Skip to content

Commit 3ea4c80

Browse files
committed
First file commit
1 parent c4e7126 commit 3ea4c80

File tree

6 files changed

+1128
-0
lines changed

6 files changed

+1128
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
include<../sixinch_library.scad>
2+
3+
4+
///////////////////////////////
5+
// Raspberry Pi 3 Model B //
6+
///////////////////////////////
7+
8+
print_frontplate_sml = false;
9+
print_handle_sml = false;
10+
print_cabinet_sml = false;
11+
print_lid = false;
12+
print_rear = true;
13+
14+
if(print_frontplate_sml){ // Frontplate //
15+
square_hole = [];
16+
round_hole = [[65 ,7.5, 3.1],[69.5 ,7.5, 3.1]];
17+
round_peg = [];
18+
screw_side_front = [];
19+
screw_top = [36];
20+
screw_bottom_front = [36];
21+
units = 2;
22+
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
23+
24+
}
25+
26+
if(print_handle_sml){ // Handle //
27+
units = 2;
28+
lay_flat_for_print = false;
29+
handle(units,lay_flat_for_print);
30+
}
31+
32+
if(print_cabinet_sml){ // Cabinet //
33+
w=88;
34+
h=70;
35+
screw_bottom_front = [36];
36+
screw_side_front = [];
37+
round_peg = [[w,h,6,2.8,4],
38+
[w-49,h,6,2.8,4],
39+
[w-49,h-58,6,2.8,4],
40+
[w,h-58,6,2.8,4]];
41+
depth = 98;
42+
units = 2;
43+
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front);
44+
}
45+
46+
if(print_lid){ // Lid //
47+
depth = 98;
48+
units = 2;
49+
screw_front = [36];//mm
50+
screw_back = [36];//mm
51+
lid(98,2,screw_front,screw_back);
52+
}
53+
54+
if(print_rear){ // Back plate //
55+
square_hole = [[37 ,3, 17, 15] , [57 ,4, 15, 16] , [75,4,15,16] ];
56+
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]];
57+
screw_top = [36];//mm
58+
screw_bottom = [36];//mm
59+
screw_side = [];
60+
depth = 98;
61+
units = 2;
62+
back_plate(units,depth,screw_top,screw_bottom,screw_side,square_hole,round_hole);
63+
}
64+
65+
66+
67+
68+
69+
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
82+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
include<../sixinch_library.scad>
2+
3+
4+
///////////////////////////////
5+
// Raspberry Pi Model B //
6+
///////////////////////////////
7+
8+
print_frontplate_sml = true;
9+
print_handle_sml = true;
10+
print_cabinet_sml = true;
11+
print_lid = true;
12+
print_rear = true;
13+
14+
if(print_frontplate_sml){ // Frontplate //
15+
square_hole = [[60 ,3, 28, 4]];
16+
round_hole = [[105 ,5, 3.4],[110 ,5, 3.4]];
17+
round_peg = [];
18+
screw_side_front = [];
19+
screw_top = [36];
20+
screw_bottom_front = [36];
21+
units = 2;
22+
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
23+
24+
}
25+
26+
if(print_handle_sml){ // Handle //
27+
units = 2;
28+
lay_flat_for_print = false;
29+
handle(units,lay_flat_for_print);
30+
}
31+
32+
if(print_cabinet_sml){ // Cabinet //
33+
screw_bottom_front = [36];
34+
screw_side_front = [];
35+
round_peg = [[40,35,6,screw_hole,6],
36+
[65,90,6,screw_hole,6],
37+
[32,90,6,0,6],
38+
[65,35,6,0,6]];
39+
depth = 98;
40+
units = 2;
41+
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front);
42+
}
43+
44+
if(print_lid){ // Lid //
45+
depth = 98;
46+
units = 2;
47+
screw_front = [36];//mm
48+
screw_back = [36];//mm
49+
lid(98,2,screw_front,screw_back);
50+
}
51+
52+
if(print_rear){ // Back plate //
53+
square_hole = [[17+5 ,5, 18, 15] , [38+5 ,5, 17, 17] , [70+8,5,10,3] ];
54+
round_hole = [];
55+
screw_top = [36];//mm
56+
screw_bottom = [36];//mm
57+
screw_side = [];
58+
depth = 98;
59+
units = 2;
60+
back_plate(units,depth,screw_top,screw_bottom,screw_side,square_hole,round_hole);
61+
}
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
readme
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
$fn = 50*1;
2+
3+
4+
5+
6+
//////////////////////////////////////////////////
7+
// PASTE ALL OF: sixinch_library.scad IN HERE //
8+
// Thingiverse can only accept one file. //
9+
//////////////////////////////////////////////////
10+
11+
12+
13+
14+
Part = "-"; // [a:All, b:FrontPlate, c:Cabinet, d:Lid, e:BackPlate, f:Handles]
15+
Units = 4;
16+
Depth = 115;
17+
18+
go();
19+
20+
module go(){
21+
rotate([90,0,-90]){
22+
if(Part=="a"){
23+
frontplate(Units,[],[],[],[Units/2],[45],[45]);
24+
cabinet(Depth,Units,[45],[],[Units/2]);
25+
lid(Depth,Units,[45],[45]);
26+
back_plate(Units,Depth,[45],[45],[Units/2],[],[]);
27+
handle(Units,false);
28+
}else if(Part=="b"){
29+
frontplate(Units,[],[],[],[Units/2],[45],[45]);
30+
}else if(Part=="c"){
31+
cabinet(Depth,Units,[45],[],[Units/2]);
32+
}else if(Part=="d"){
33+
lid(Depth,Units,[45],[45]);
34+
}else if(Part=="e"){
35+
back_plate(Units,Depth,[45],[45],[Units/2],[],[]);
36+
}else if(Part=="f"){
37+
handle(Units,true);
38+
}
39+
}
40+
}
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+

0 commit comments

Comments
 (0)