Skip to content

Commit e14e5dc

Browse files
committed
shell updated with connector pcb holder
1 parent bbee30f commit e14e5dc

File tree

4 files changed

+94
-44
lines changed

4 files changed

+94
-44
lines changed

carrierPlate.scad

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,37 @@ module carrierPlate(){
1515
}
1616

1717
//connector cutout
18-
translate([8.5,length-42.65,-0.1]) cube([21,27,1.2]);
18+
translate([8.5,length-42.65,-0.1]) cube([21,10,1.2]);
19+
translate([3.5,length-36.65,-0.1]) cube([31,24,1.2]);
20+
translate([width/2-5,length-12.65,-0.1]) cube([10,5,1.2]);
1921

2022
//main screw holes
21-
translate([2.05,length-2.05,-1.1]) cylinder(1.4,2,1.1);
22-
translate([2.05,length-2.05,0.2])cylinder(0.9,1.1,1.1);
23-
translate([2.05,2.05,-1.1]) cylinder(1.4,2,1.1);
24-
translate([2.05,2.05,0.2])cylinder(0.9,1.1,1.1);
25-
translate([width-2.05,2.05,-1.1]) cylinder(1.4,2,1.1);
26-
translate([width-2.05,2.05,0.2])cylinder(0.9,1.1,1.1);
27-
translate([width-2.05,length-2.05,-1.1]) cylinder(1.4,2,1.1);
28-
translate([width-2.05,length-2.05,0.2])cylinder(0.9,1.1,1.1);
23+
translate([width/2-7,length-4,-1]) cylinder(1.5,2.2,1.1);
24+
translate([width/2-7,length-4,0.4])cylinder(0.7,1.1,1.1);
25+
26+
translate([4,4,-1]) cylinder(1.5,2.2,1.1);
27+
translate([4,4,0.4])cylinder(0.7,1.1,1.1);
28+
29+
translate([width-4,4,-1]) cylinder(1.5,2.2,1.1);
30+
translate([width-4,4,0.4])cylinder(0.7,1.1,1.1);
31+
32+
translate([width/2+7,length-4,-1]) cylinder(1.5,2.2,1.1);
33+
translate([width/2+7,length-4,0.4])cylinder(0.7,1.1,1.1);
2934
}
3035

3136
//screw body connector pcb
32-
translate([width/2,25,1]){
37+
translate([width/2,23,1]){
3338
translate([14,0,0]) cylinder(4,3,3);
3439
translate([-14,0,0]) cylinder(4,3,3);
3540
}
3641

37-
translate([width/2,45,1]){
38-
translate([14,0,0]) cylinder(4,3,3);
39-
translate([-14,0,0]) cylinder(4,3,3);
42+
translate([width/2,54.5,1]){
43+
translate([10.3,0,0]) cylinder(4,3,3);
44+
translate([-10.3,0,0]) cylinder(4,3,3);
4045
}
4146

4247
//screw body main pcb
43-
translate([width/2,10,1]){
48+
translate([width/2,14,1]){
4449
translate([14.2,0,0]) cylinder(8,3,3);
4550
translate([-14.2,0,0]) cylinder(8,3,3);
4651
translate([14.2,45.5,0]) cylinder(8,3,3);
@@ -49,18 +54,18 @@ module carrierPlate(){
4954
}
5055

5156
//screw holes connector pcb
52-
translate([width/2,25,1]){
57+
translate([width/2,23,1]){
5358
translate([14,0,0]) cylinder(4.1,1.6,1.6);
5459
translate([-14,0,0]) cylinder(4.1,1.6,1.6);
5560
}
5661

57-
translate([width/2,45,1]){
58-
translate([14,0,0]) cylinder(4.1,1.6,1.6);
59-
translate([-14,0,0]) cylinder(4.1,1.6,1.6);
62+
translate([width/2,54.5,1]){
63+
translate([10.3,0,0]) cylinder(4.1,1.6,1.6);
64+
translate([-10.3,0,0]) cylinder(4.1,1.6,1.6);
6065
}
6166

6267
//screw holes main pcb
63-
translate([width/2,10,5]){
68+
translate([width/2,14,5]){
6469
translate([14.2,0,0]) cylinder(4.1,1.6,1.6);
6570
translate([-14.2,0,0]) cylinder(4.1,1.6,1.6);
6671
translate([14.2,45.5,0]) cylinder(4.1,1.6,1.6);

connectorCarrier.scad

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
use <carrierPlate.scad>
2+
3+
4+
5+
module connectorCarrier(){
6+
$fn=100;
7+
8+
//translate([38/2,23,1])
9+
difference(){
10+
union(){
11+
//arm1
12+
translate([14,0,4]) cylinder(2,3,3);
13+
translate([11,0,4]) cube([6,7,2]);
14+
translate([11,5,-0.8]) cube([6,2,4.8]);
15+
16+
//arm2
17+
translate([10.3,31.5,4]) cylinder(2,3,3);
18+
translate([7.3,26.2,4]) cube([6,5.3,2]);
19+
translate([7.3,26.2,-2]) cube([6,2,6]);
20+
21+
//arm connector part
22+
translate([0,0,-0.8]) linear_extrude(height = 6.8){
23+
polygon([[11,7],[17,7],[13.3,26.2],[7.3,26.2]]);
24+
}
25+
26+
//pcb holder pin
27+
translate([12.2,14.35,-2]) cylinder(1.5,1,1);
28+
}
29+
30+
//arm holes
31+
translate([14,0,3.9]) cylinder(2.2,1.1,1.1);
32+
translate([10.3,31.5,3.9]) cylinder(2.2,1.1,1.1);
33+
34+
//space for base
35+
translate([15,4.35,-1]) cube([3,24,1.2]);
36+
}
37+
}
38+
39+
connectorCarrier();
40+
mirror([1,0,0]) connectorCarrier();
41+
//carrierPlate();

main.scad

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use <basePlate.scad>
22
use <carrierPlate.scad>
33
use <shell.scad>
4+
use <connectorCarrier.scad>
45

56
//connector PCB dummy
67
module connectorPCB(height=6){
@@ -37,7 +38,10 @@ module mainPCB(height=14){
3738
}
3839

3940
%shell();
40-
translate([2.5,7.5,10]) mainPCB();
41-
translate([2.5,7.5,24]) ioPCB();
41+
//translate([2.5,7.5,10]) mainPCB();
42+
//translate([2.5,7.5,24]) ioPCB();
4243
translate([1,1,1]) carrierPlate();
43-
translate([1,1,1]) mirror([0,0,1]) basePlate();
44+
translate([1,1,1]) mirror([0,0,1]) basePlate();
45+
translate([20,24,2]) connectorCarrier();
46+
47+
translate([20,24,2]) mirror([1,0,0]) connectorCarrier();

shell.scad

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ module roundedCubeEdge(r=2){
99
}
1010
}
1111

12-
//cut cylinder for the main mounting holes
13-
module cylinder45Cut(r=3){
14-
$fn=100;
15-
boxHeight= sqrt(8*r*r);
16-
difference(){
17-
cylinder(2*r,r,r);
18-
translate([r,-r,0]) rotate([0,315,0]) cube([2*r,2*r,boxHeight]);
19-
}
20-
}
21-
2212
//Button
2313
module Button(gapWidth=1, gapHeight=0.4, armWidth=9, buttonClickRadius=1, buttonClickHeight=2){
2414
$fn=100;
@@ -95,14 +85,24 @@ module shell(height=35){
9585
}
9686

9787
//main screw mount body
98-
translate([3,3,2]) cylinder(5,3,3);
99-
translate([3,3,7]) rotate([0,0,45]) cylinder45Cut();
100-
translate([width-3,3,2]) cylinder(5,3,3);
101-
translate([width-3,3,7]) rotate([0,0,135]) cylinder45Cut();
102-
translate([3,length-3,2]) cylinder(5,3,3);
103-
translate([3,length-3,7]) rotate([0,0,315]) cylinder45Cut();
104-
translate([width-3,length-3,2]) cylinder(5,3,3);
105-
translate([width-3,length-3,7]) rotate([0,0,225]) cylinder45Cut();
88+
translate([5,5,2]){
89+
translate([-3,-3,0]) cube([3,6,6]);
90+
translate([-3,-3,0]) cube([6,3,6]);
91+
cylinder(6,3,3);
92+
}
93+
translate([width-5,5,2]){
94+
translate([0,-3,0]) cube([3,6,6]);
95+
translate([-3,-3,0]) cube([6,3,6]);
96+
cylinder(6,3,3);
97+
}
98+
translate([width/2-7,length-5,2]){
99+
translate([-3,0,0]) cube([6,3,6]);
100+
cylinder(6,3,3);
101+
}
102+
translate([width/2+7,length-5,2]){
103+
translate([-3,0,0]) cube([6,3,6]);
104+
cylinder(6,3,3);
105+
}
106106

107107
//buttonparts
108108
translate([width/2,23,height-2]){
@@ -124,10 +124,10 @@ module shell(height=35){
124124
}
125125
}
126126
//main screw mount holes
127-
translate([3,3,1.9]) cylinder(5.1,1.6,1.6);
128-
translate([width-3,3,1.9]) cylinder(5.1,1.6,1.6);
129-
translate([3,length-3,1.9]) cylinder(5.1,1.6,1.6);
130-
translate([width-3,length-3,1.9]) cylinder(5.1,1.6,1.6);
127+
translate([5,5,1.9]) cylinder(5.1,1.6,1.6);
128+
translate([width-5,5,1.9]) cylinder(5.1,1.6,1.6);
129+
translate([width/2-7,length-5,1.9]) cylinder(5.1,1.6,1.6);
130+
translate([width/2+7,length-5,1.9]) cylinder(5.1,1.6,1.6);
131131

132132
//io-pcb srew mount holes
133133
translate([width/2-14.2,23-8.38,height-7.1]){

0 commit comments

Comments
 (0)