Skip to content

Commit 5e8e467

Browse files
committed
cleanup
1 parent 9c348e9 commit 5e8e467

File tree

8 files changed

+40
-144
lines changed

8 files changed

+40
-144
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
11
# Shell
2+
3+
## Files
4+
5+
- **basePlate.scad**: Contains the connector for the remote
6+
- **carrierPlate.scad**: Mount for the connector pcb and main pcb. Can be glued to basePlate or just screwed together.
7+
- **connectorCarrier.scad**: Bracket for the connector pcb.
8+
- **main.scad**: Representation of all components.
9+
- **shell.scad**: Outer shell of the enclosure.
10+
11+
## BOM
12+
13+
| Anzahl | Part | Note |
14+
| ------ | ------------------------ | --------------------------- |
15+
| 4 | threaded insert M2x4x3.5 | Used to close the enclosure |
16+
| 12 | threaded insert M2x3x3.5 | Used to attach the pcbs |
17+
| 4 | countersunk screw M2x6mm | Used to close the enclosure |
18+
| 12 | round head screw M2x5mm | Used to attach the pcbs |

TODO.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

basePlate.scad

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//one side of the holder for the light module slot
12
module moduleSlot(){
23
cube([5,40.65,2]);
34
//outerbarrier
@@ -28,21 +29,22 @@ module moduleSlot(){
2829
}
2930
}
3031

32+
//u-shaped holder for the light module slot
3133
module moduleConnection(){
3234
translate([-15,40.65,0]) cube([30,2,4.1]);
3335
mirror([1,0,0]) translate([10,0,0]) moduleSlot();
3436
translate([10,0,0]) moduleSlot();
3537
}
3638

37-
//basePlate
39+
//final base plate for the shell
3840
module basePlate(){
3941
length=64;
4042
width=38;
4143
$fn=100;
4244

4345
difference(){
4446
union(){
45-
//inner box
47+
//box inside the light module holder
4648
translate([9,length-32.65,1]) cube([20,30.65,4.1]);
4749

4850
translate([1,1,0]) hull(){
@@ -55,10 +57,10 @@ module basePlate(){
5557
translate([width/2,length-42.65,1]) moduleConnection();
5658
}
5759

58-
//connector cutout
60+
//connector pins cutout
5961
translate([8.5,length-42.65,-0.1]) cube([21,10,5.2]);
6062

61-
//inner box cutout
63+
//cutout for the connector pcb
6264
translate([3.5,length-36.65,-0.1]) cube([31,24,2.1]);
6365

6466
//screw holes

buttonTest.scad

Lines changed: 0 additions & 79 deletions
This file was deleted.

carrierPlate.scad

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//carrierPlate
1+
//plate that is used to attach the connector pcb and main pcb
22
module carrierPlate(){
33
length=64;
44
width=38;
@@ -7,6 +7,7 @@ module carrierPlate(){
77
difference(){
88
union(){
99
difference(){
10+
//main body
1011
translate([1,1,0]) hull(){
1112
cylinder(1,1,1);
1213
translate([width-2,0,0]) cylinder(1,1,1);

connectorCarrier.scad

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
use <carrierPlate.scad>
2-
3-
4-
1+
//attaches the connector pcb to the carrier plate
52
module connectorCarrier(){
63
$fn=100;
74

8-
//translate([38/2,23,1])
95
difference(){
106
union(){
117
//arm1
@@ -18,7 +14,7 @@ module connectorCarrier(){
1814
translate([7.3,26.2,4]) cube([6,5.3,2]);
1915
translate([7.3,26.2,-2]) cube([6,2,6]);
2016

21-
//arm connector part
17+
//main body between the arms
2218
translate([0,0,-0.8]) linear_extrude(height = 6.8){
2319
polygon([[11,7],[17,7],[13.3,26.2],[7.3,26.2]]);
2420
}
@@ -31,11 +27,10 @@ module connectorCarrier(){
3127
translate([14,0,3.9]) cylinder(2.2,1.1,1.1);
3228
translate([10.3,31.5,3.9]) cylinder(2.2,1.1,1.1);
3329

34-
//space for base
30+
//cutout for the carrier plate
3531
translate([15,4.35,-1]) cube([3,24,1.2]);
3632
}
3733
}
3834

3935
connectorCarrier();
40-
mirror([1,0,0]) connectorCarrier();
41-
//carrierPlate();
36+
mirror([1,0,0]) connectorCarrier();

main.scad

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,10 @@ use <carrierPlate.scad>
33
use <shell.scad>
44
use <connectorCarrier.scad>
55

6-
//connector PCB dummy
7-
module connectorPCB(height=6){
8-
$fn=100;
9-
difference(){
10-
cube([30,20,height]);
11-
translate([3.3,10,-0.5]) cylinder(height+1,1.1,1.1);
12-
translate([30-3.3,10,-0.5]) cylinder(height+1,1.1,1.1);
13-
}
14-
}
15-
16-
//IO PCB dummy
17-
module ioPCB(height=9){
18-
$fn=100;
19-
difference(){
20-
cube([35,42,height]);
21-
translate([3.3,3.3,-0.5]) cylinder(height+1,1.1,1.1);
22-
translate([35-3.3,3.3,-0.5]) cylinder(height+1,1.1,1.1);
23-
translate([3.3,42-3.3,-0.5]) cylinder(height+1,1.1,1.1);
24-
translate([35-3.3,42-3.3,-0.5]) cylinder(height+1,1.1,1.1);
25-
}
26-
}
27-
28-
//main PCB dummy
29-
module mainPCB(height=14){
30-
$fn=100;
31-
difference(){
32-
cube([35,52,height]);
33-
translate([3.3,3.3,-0.5]) cylinder(height+1,1.1,1.1);
34-
translate([35-3.2,3.3,-0.5]) cylinder(height+1,1.1,1.1);
35-
translate([3.3,52-3.3,-0.5]) cylinder(height+1,1.1,1.1);
36-
translate([35-3.2,52-3.3,-0.5]) cylinder(height+1,1.1,1.1);
37-
}
38-
}
396

7+
//Illustration of how to put everything together
408
%shell();
41-
//translate([2.5,7.5,10]) mainPCB();
42-
//translate([2.5,7.5,24]) ioPCB();
439
translate([1,1,1]) carrierPlate();
4410
translate([1,1,1]) mirror([0,0,1]) basePlate();
4511
translate([20,24,2]) connectorCarrier();
46-
4712
translate([20,24,2]) mirror([1,0,0]) connectorCarrier();

shell.scad

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//roundedCubeEdge --> eighth of a sphere
1+
//Rounded Edge for the main body
22
module roundedCubeEdge(r=2){
33
$fn=100;
44
difference(){
@@ -9,7 +9,7 @@ module roundedCubeEdge(r=2){
99
}
1010
}
1111

12-
//Button
12+
//Case button
1313
module Button(gapWidth=1, gapHeight=0.4, armWidth=9, buttonClickRadius=1, buttonClickHeight=2){
1414
$fn=100;
1515
rampeWidth = (2-gapHeight)/tan(60);
@@ -23,7 +23,7 @@ module Button(gapWidth=1, gapHeight=0.4, armWidth=9, buttonClickRadius=1, button
2323
translate([0,-3,0]) cube([armWidth-2*rampeWidth-gapWidth,6,2]);
2424
}
2525

26-
//cutout for the button
26+
//cutout for the case button
2727
module ButtonCutOut(armWidth=9){
2828
$fn=100;
2929
cylinder(2.2,5,5);
@@ -41,7 +41,7 @@ module rampe(height=2){
4141
}
4242
}
4343

44-
//shell
44+
//main shell for the extension module
4545
module shell(height=35){
4646
length=66;
4747
width=40;
@@ -61,6 +61,7 @@ module shell(height=35){
6161
translate([width-4,length-4,0]) cylinder(height-2,2,2);
6262
translate([width-4,length-4,height-2]) rotate([0,0,0]) roundedCubeEdge();
6363
}
64+
6465
//innerskin
6566
translate([2,2,-0.2]) cube([width-4,length-4,height-1.8]);
6667

@@ -78,7 +79,7 @@ module shell(height=35){
7879
translate([9.47,0,0]) rotate([0,0,0]) ButtonCutOut(armWidth=8.53);
7980
}
8081

81-
//cutout for the display
82+
//cutout for the display in the outer skin
8283
translate([width/2,35,height-2.1]){
8384
translate([-11,0,0]) cube([27,11,2.2]);
8485
}
@@ -104,21 +105,21 @@ module shell(height=35){
104105
cylinder(6,3,3);
105106
}
106107

107-
//buttonparts
108+
//insert the two buttons
108109
translate([width/2,23,height-2]){
109110
translate([-9.47,0,2]) rotate([0,0,180]) mirror([0,0,1]) Button(gapWidth=3, gapHeight=1, armWidth=8.53, buttonClickHeight=3, buttonClickRadius=1.25);
110111
translate([9.47,0,2]) rotate([0,0,0]) mirror([0,0,1]) Button(gapWidth=3, gapHeight=1, armWidth=8.53, buttonClickHeight=3, buttonClickRadius=1.25);
111112
}
112113

113114
//io-pcb srew mount body
114115
translate([width/2-14.2,23-8.38,height-7]){
115-
cylinder(7,3,3);
116+
cylinder(5,3,3);
116117
translate([28.48,0,0]) cylinder(5,3,3);
117118
translate([0,35.3,0]) cylinder(5,3,3);
118119
translate([28.48,35.3,0]) cylinder(5,3,3);
119120
}
120121

121-
//body display cutout
122+
//body for the display cutout
122123
translate([width/2,34,height-4]){
123124
translate([-12,0,0]) cube([29,13,2]);
124125
}
@@ -137,7 +138,7 @@ module shell(height=35){
137138
translate([28.48,35.3,0]) cylinder(5.1,1.6,1.6);
138139
}
139140

140-
//hole display cutout
141+
//display cutout in the extra display body
141142
translate([width/2,35,height-4.1]){
142143
translate([-11,0,0]) cube([27,11,2.2]);
143144
}

0 commit comments

Comments
 (0)