Skip to content

Commit a04dc2c

Browse files
committed
various improvements
1 parent e755732 commit a04dc2c

File tree

4 files changed

+70
-64
lines changed

4 files changed

+70
-64
lines changed

control_panel/control_panel.scad

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
$fn=40;
22

3-
uselip=false;
3+
height=6.8;
44

5+
//height=5.2;
56

67
module panel(h)
78
{
8-
if(1) linear_extrude(height=h) {
9-
10-
import("pypilot_remote_rf.svg");
11-
12-
9+
if(1)
10+
linear_extrude(height=h) {
11+
import("pypilot_remote_rf.svg");
1312
}
14-
if(1)
13+
if(0)
1514
translate([5.5, 5, 0])
1615
minkowski() {
17-
cube([66, 34.5, 10]);
18-
cylinder(r=5,h=10);
16+
cube([65.7, 35, 10]);
17+
cylinder(r=5, h=10);
1918
}
2019
}
2120

@@ -47,17 +46,17 @@ difference() {
4746
module screw()
4847
{
4948
cylinder(r=1.8, h=20);
50-
translate([0,0,8])
49+
translate([0,0,height+1.2])
5150
cylinder(r1=1.8, r2=4, h=4);
5251
}
5352

5453
difference() {
5554
minkowski() {
56-
cube([76, 44, uselip ? 12 : 10.5]);
55+
cube([76, 44, 4+height]);
5756
cylinder(r=5,h=.1);
5857
}
5958

60-
translate([-.5, -.5, 7.8])
59+
translate([-.5, -.5, 1+height])
6160
scale(1.005)
6261
panel(3.5);
6362

@@ -74,7 +73,7 @@ difference() {
7473
cylinder(r=7, h=10);
7574

7675

77-
translate([-10,27,6 ])
76+
translate([-10,27,height-2.6 ])
7877
rotate([0,90,0])
7978
cylinder(r=2.3, h=20);
8079

@@ -90,10 +89,8 @@ difference() {
9089
translate([-1,45,0])
9190
screw();
9291

93-
translate([20,-4.5,(uselip ? 4 : 3)])
92+
translate([20,-4.5,height/2])
9493
rotate([90,0,0])
9594
linear_extrude(2)
9695
text("pypilot", size=7);
97-
98-
9996
}

controller_enclosure/controller_enclosure.scad

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$fn=30;
22

3-
highpower=true;
3+
highpower=false;
44
midpower=false;
55

66
width_gap=1.6;
@@ -22,24 +22,23 @@ module cubecxy(x, y, z) {
2222

2323

2424
mount_gap=highpower ? 5 : 4;
25+
r_rad = highpower || midpower ? 6 : 5.5;
2526
module flange() {
2627
translate([0, length/2, .2])
2728
difference() {
2829
hull() {
29-
hull() {
3030
translate([-width*.26, 0, 0])
3131
rotate(45)
3232
minkowski() {
3333
cubecxy(width*.25, width*.2, thickness/2);
34-
cylinder(r=6, h=mount_gap+bottom_height/3);
34+
cylinder(r=r_rad, h=mount_gap+bottom_height/3);
3535
}
3636
translate([ width*.26, 0,0])
3737
rotate(-45)
3838
minkowski() {
3939
cubecxy(width*.25, width*.2, thickness/2);
40-
cylinder(r=6, h=mount_gap+bottom_height/3);
40+
cylinder(r=r_rad, h=mount_gap+bottom_height/3);
4141
}
42-
}
4342
}
4443

4544
// screw holes
@@ -100,7 +99,7 @@ module bottom() {
10099
translate([-2,0,z])
101100
rotate([180,0,0])
102101
difference() {
103-
cable_space();
102+
cable_space();
104103
cable_holes();
105104
}
106105
translate([width/2-1, -length/2, mount_gap])
@@ -190,7 +189,7 @@ module cable(x) {
190189
module cable_space() {
191190
translate([width/2, 0, 0])
192191
if(highpower) {
193-
hull() {
192+
hull() {
194193
translate([1, 49, 4])
195194
cable_hole(3);
196195
translate([1, 9, 4])
@@ -202,7 +201,10 @@ module cable_space() {
202201
translate([1, -47, 4])
203202
cable_hole(3);
204203
}
205-
204+
hull() {
205+
translate([-75, 58, 9])
206+
rotate(90) cable_hole(3.5);
207+
}
206208
} else if(midpower) {
207209
hull() {
208210
translate([1, 33, 5])
@@ -216,7 +218,7 @@ module cable_space() {
216218
translate([1, -41, 5])
217219
cable_hole(3);
218220
}
219-
hull() {
221+
hull() {
220222
translate([-57, 52, 9])
221223
rotate(90) cable_hole(3.5);
222224
}

pypilot_remote_rf/pypilot_remote_rf.scad

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ $fn=40;
44
aaa = true;
55
length=79;
66
width=46;
7-
height = aaa ? 26 : 15;
7+
height = aaa ? 31 : 15;
88

99
module lid(lsize) {
10-
translate([0,1,0])
10+
translate([0,3,0])
1111
minkowski() {
12-
cube([length+2*lsize, width+5+lsize, .5+lsize], center=true);
13-
cylinder(r=1, h=.6);
12+
cube([length+2*lsize-6, width+-1+lsize, 1.5+lsize], center=true);
13+
cylinder(r=4, h=.6);
1414
}
1515
}
1616

@@ -47,7 +47,7 @@ module flange() {
4747
translate([-8-length/2,7-width/2,height/2-3])
4848
difference() {
4949
minkowski() {
50-
cube([16, width-10, 1]);
50+
cube([16, width-10, 2]);
5151
cylinder(r=3,h=2);
5252
}
5353
translate([0,8,-1])
@@ -61,8 +61,12 @@ module enclosure(lsize=0) {
6161
difference() {
6262
union() {
6363
minkowski() {
64-
cube([length,width,height-6], center=true);
65-
sphere(r=4);
64+
cube([length,width,height-4], center=true);
65+
union() {
66+
sphere(r=4);
67+
translate([0,0,2])
68+
cylinder(r=4, h=2);
69+
}
6670
}
6771
translate([0,-4,1]) {
6872
flange();
@@ -71,13 +75,13 @@ module enclosure(lsize=0) {
7175
}
7276
}
7377

74-
translate([0, 0, -4])
78+
translate([0, 1, -4])
7579
minkowski() {
76-
cube([length-16,width-16,height], center=true);
80+
cube([length-18,width-18,height], center=true);
7781
cylinder(r=4, h=1);
7882
}
7983

80-
translate([-76/2-1,-45/2+1, 1.2-height/2])
84+
translate([-76/2-1,-45/2+1, -height/2])
8185
board();
8286

8387

@@ -96,28 +100,30 @@ translate([0,width-4,height/2+2.9])
96100

97101
}
98102

99-
100-
if(1) {
103+
if(0) {
101104
enclosure(.4);
102105
}else{
106+
scale([.995,1,.9])
103107
//translate([0,-60, 1.5])
104-
rotate([180,0,0])
108+
rotate([180,0,0])
105109
intersection()
106110
{
107111
difference() {
108112
translate([0,-1,height/2+1])
109-
cube([length+4, width+4, 2.5],center=true);
113+
cube([length+7, width+6, 3.5],center=true);
110114
translate([0,0, height+.5])
115+
scale([1,1.01,1])
111116
rotate([180,0,0])
112-
enclosure();
113-
translate([length/2-8,-3,height/2-1.4])
114-
mirror([1,0,0])
115-
linear_extrude(1.5)
116-
text("pypilot", size=16);
117+
# enclosure();
118+
rotate(180)
119+
translate([length/2-8,-3,height/2-2.5])
120+
mirror([1,0,0])
121+
linear_extrude(2.2)
122+
text("pypilot", size=16);
117123
}
118-
124+
translate([0,-2,2])
119125
minkowski() {
120-
cube([length-4, width-4, height], center=true);
126+
cube([length-1, width-3.5, height], center=true);
121127
sphere(r=4);
122128
}
123129
}

rudder_feedback/hall/holder.scad

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
$fn=60;
1010

1111
bolt_height = 4;
12-
bolt_diameter = 5.4;
13-
magnet_diameter = 14.5;
14-
magnet_height = 3.4;
12+
bolt_diameter = 8.1;
13+
magnet_diameter = 14.8;
14+
magnet_height = 3.6;
1515
nut_height = 3;
16-
bearing_height = 23;
16+
bearing_height = 24.5;
1717

18-
washer_diameter =14;
19-
washer_thickness=.8;
18+
washer_diameter = 9.7;
19+
washer_thickness = 2.7;
2020

2121
board_width =12;
2222
board_length = 8.2;
@@ -25,7 +25,7 @@ board_holder_thickness=2;
2525

2626
screw_diameter=3.6;
2727

28-
fit=.4;
28+
fit=.5;
2929
wire_r = 3;
3030

3131
total_height = bolt_height+magnet_height+nut_height+bearing_height+board_height+board_holder_thickness;
@@ -49,15 +49,13 @@ holder_length=total_radius - board_length;
4949
module top() {
5050
difference() {
5151
ocylinder(r=magnet_diameter/2, h = h1);
52-
translate([0,0,h1-.4])
53-
ocylinder(r=bolt_diameter/2+1, h = h1);
5452
}
5553
translate([0, 0, h1-2])
5654
ocylinder(r=bolt_diameter/2, h=bearing_height+2);
5755
translate([0, 0, h1+bearing_height-washer_thickness])
58-
59-
ocylinder(r=washer_diameter/2, h=washer_thickness+1);
60-
56+
ocylinder(r=washer_diameter/2, h=washer_thickness);
57+
translate([0, 0, h1])
58+
ocylinder(r=washer_diameter/2, h=washer_thickness);
6159
}
6260

6361
module holder() {
@@ -69,7 +67,7 @@ module holder() {
6967

7068
hull() {
7169
ccube(board_width+2*t+fit, board_length+2*t+fit, board_height+t+fit+.2);
72-
translate([-holder_length*3/4+fit, 0, 0])
70+
translate([-holder_length*3/4-fit, 0, 0])
7371
ccube(1, wire_r*3+fit, board_height+t+fit+.2);
7472
}
7573
ocylinder(r=magnet_diameter/2, h = board_height+t);
@@ -84,7 +82,7 @@ module base(radius) {
8482
translate([radius, 0, 0])
8583
cylinder(h=7, r=total_radius/2.7 );
8684
}
87-
cylinder(r=radius, h7);
85+
cylinder(r=radius, h=1);
8886
}
8987
translate([0, 0, -.1])
9088
cylinder(r1=radius-.5, r2 = radius-12, h= 22);
@@ -130,7 +128,7 @@ module board_holder() {
130128
}
131129
}
132130

133-
if(1)
131+
if(0)
134132
union() {
135133
translate([0, 0, total_height])
136134
mirror([0,0,1]) {
@@ -154,6 +152,9 @@ union() {
154152
}
155153
}
156154
}
157-
else
158-
translate([total_radius*2, 0, 0])
159-
board_holder();
155+
156+
// translate([total_radius*2, 0, 0])
157+
//translate([0, 0, total_height])
158+
//rotate([180,0,0])
159+
//rotate(180)
160+
board_holder();

0 commit comments

Comments
 (0)