Skip to content

Commit 819f133

Browse files
committed
main rail
1 parent 9c336c1 commit 819f133

File tree

1 file changed

+71
-22
lines changed

1 file changed

+71
-22
lines changed

shell.scad

Lines changed: 71 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//connector-board
2-
module connectorBoard(height=4){
2+
module connectorBoard(height=6){
33
$fn=100;
44
difference(){
55
cube([30,20,height]);
@@ -9,19 +9,19 @@ module connectorBoard(height=4){
99
}
1010

1111
//io-board
12-
module ioBoard(height=4){
12+
module ioBoard(height=6){
1313
$fn=100;
1414
difference(){
1515
cube([35,42,height]);
1616
translate([3.3,3.3,-0.5]) cylinder(height+1,1.1,1.1);
1717
translate([35-3.3,3.3,-0.5]) cylinder(height+1,1.1,1.1);
1818
translate([3.3,42-3.3,-0.5]) cylinder(height+1,1.1,1.1);
1919
translate([35-3.3,42-3.3,-0.5]) cylinder(height+1,1.1,1.1);
20-
}
20+
}
2121
}
2222

2323
//Mainboard
24-
module mainBoard(height=8){
24+
module mainBoard(height=12){
2525
$fn=100;
2626
difference(){
2727
cube([35,52,height]);
@@ -37,12 +37,59 @@ module bottomShell(){
3737
length=64;
3838
width=38;
3939
$fn=100;
40-
translate([1,1,0]) hull(){
41-
cylinder(1,1,1);
42-
translate([width-2,0,0]) cylinder(1,1,1);
43-
translate([0,length-2,0]) cylinder(1,1,1);
44-
translate([width-2,length-2,0]) cylinder(1,1,1);
40+
difference(){
41+
translate([1,1,0]) hull(){
42+
cylinder(1,1,1);
43+
translate([width-2,0,0]) cylinder(1,1,1);
44+
translate([0,length-2,0]) cylinder(1,1,1);
45+
translate([width-2,length-2,0]) cylinder(1,1,1);
46+
}
47+
translate([9,length-42.65,-0.1]) cube([20,10,1.2]);
48+
49+
//screw holes
50+
translate([2.05,length-2.05,-0.3]) cylinder(1.4,1.1,2);
51+
translate([2.05,2.05,-0.3]) cylinder(1.4,1.1,2);
52+
translate([width-2.05,2.05,-0.3]) cylinder(1.4,1.1,2);
53+
translate([width-2.05,length-2.05,-0.3]) cylinder(1.4,1.1,2);
4554
}
55+
56+
translate([width/2,length-42.65,1]) moduleConnection();
57+
}
58+
59+
module moduleSlot(){
60+
cube([5,40.65,2]);
61+
//outerbarrier
62+
translate([3.13,0,2]) difference(){
63+
cube([1.87,40.65,2.1]);
64+
//first slot
65+
translate([0,3.25,0]){
66+
cube([1.02,2.86,2.1]);
67+
cube([1.02,7.7,1.27]);
68+
translate([0,2.86,1.57]) rotate([225,0,0]) cube([1.02,0.5,0.5]);
69+
}
70+
71+
//second slot
72+
translate([0,23.25,0]){
73+
cube([1.02,2.86,2.1]);
74+
cube([1.02,7.7,1.27]);
75+
translate([0,2.86,1.57]) rotate([225,0,0]) cube([1.02,0.5,0.5]);
76+
}
77+
}
78+
79+
//innerbarrier
80+
translate([0,0,2]){
81+
difference(){
82+
cube([1.28,40.65,2.1]);
83+
translate([1.28,0,0.82]) rotate([0,-45,0]) cube([1,40.65,2]);
84+
}
85+
translate([0,0.9,0.82]) cube([1.28,1.47,1.28]);
86+
}
87+
}
88+
89+
module moduleConnection(){
90+
translate([-15,40.65,0]) cube([30,2,4.1]);
91+
mirror([1,0,0]) translate([10,0,0]) moduleSlot();
92+
translate([10,0,0]) moduleSlot();
4693
}
4794

4895
//carrierShell
@@ -51,10 +98,10 @@ module carrierShell(){
5198
width=38;
5299
$fn=100;
53100
translate([1,1,0]) hull(){
54-
cylinder(2,1,1);
55-
translate([width-2,0,0]) cylinder(2,1,1);
56-
translate([0,length-2,0]) cylinder(2,1,1);
57-
translate([width-2,length-2,0]) cylinder(2,1,1);
101+
cylinder(1,1,1);
102+
translate([width-2,0,0]) cylinder(1,1,1);
103+
translate([0,length-2,0]) cylinder(1,1,1);
104+
translate([width-2,length-2,0]) cylinder(1,1,1);
58105
}
59106
}
60107

@@ -80,10 +127,10 @@ module topShell(height=25){
80127

81128
//inner edge for the bottom shell and the carrier shell
82129
translate([2,2,-0.2]) hull(){
83-
cylinder(3.2,1,1);
84-
translate([width-4,0,0]) cylinder(3.2,1,1);
85-
translate([0,length-4,0]) cylinder(3.2,1,1);
86-
translate([width-4,length-4,0]) cylinder(3.2,1,1);
130+
cylinder(2.2,1.2,1.2);
131+
translate([width-4,0,0]) cylinder(2.2,1.2,1.2);
132+
translate([0,length-4,0]) cylinder(2.2,1.2,1.2);
133+
translate([width-4,length-4,0]) cylinder(2.2,1.2,1.2);
87134
}
88135
}
89136
}
@@ -99,8 +146,10 @@ module roundedCubeEdge(r=2){
99146
}
100147
}
101148

102-
translate([2.5,7,19]) ioBoard();
103-
translate([2.5,12,10]) mainBoard();
104-
translate([1,1,0]) bottomShell();
105-
translate([1,1,1]) carrierShell();
106-
%topShell();
149+
//translate([2.5,7,17]) ioBoard();
150+
//translate([2.5,12,5]) mainBoard();
151+
//translate([2.5,2,2]) connectorBoard();
152+
//translate([1,1,1]) carrierShell();
153+
//%topShell();
154+
mirror([0,0,1]);
155+
bottomShell();

0 commit comments

Comments
 (0)