-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrough.scad
More file actions
197 lines (166 loc) · 5.19 KB
/
rough.scad
File metadata and controls
197 lines (166 loc) · 5.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
include<mcwheel/wheel.scad>
module mwheel()
{
//import_stl("mcwheel/disp_wheel.stl", convexity = 10);
wheel(wheels=1, hardware=1);
}
//http://www.ebay.com/itm/Outrunner-C4250-KV600-brushless-motor-EMP-for-airplane-Free-Shipping-/230747667130?pt=Radio_Control_Parts_Accessories&hash=item35b9a1faba#ht_3788wt_1299
module motor()
{
sh_d=3.2;
mb_l=50;
m_d=35.8;
tot_l=91;
sh_l=7.6;//=tot_l-mb_l;
translate([0,0,-mb_l])
union(){
cylinder(r=m_d/2, h=mb_l);
translate([0,0,mb_l/2])
cylinder(r=sh_d/2, h=sh_l+mb_l/2);
}
}
module pack(){
d=23.1;
l=43.2;
for (x = [-3 : 3])
translate([(d+.2)*x, -d/2,0])
cylinder(r=d/2, h=l);
}
module sla6v(){
//Power Sonic6.0V SLA 6100
//6v 12ah 71oz $16.95 http://www.cheapbatterypacks.com/product/660/1171/Power-Sonic60V-SLA-6100.aspx
cube([94,151.1,55.9]);
}
module markbot()
{
basea=10*25.4;
baseb=basea-25;
cover_h=70;
cover_t=3;
plate_t=6;
plate_lip=4;
ground_clear=30;
wheel_r=50;
wcutclear=20;
wcutl=110;
wcutw=70;
tower_w=100;
tower_bar_t=15;
tower_h=5*12*25.4;
caster_width=250;
wheel_offset = wheel_r - (ground_clear + plate_t);
translate([0,0,wheel_offset])
union(){
//wheels
/* translate([ (basea-wcutw/2-wcutclear), (baseb-wcutl/2-wcutclear),0]) rotate(a=90, v=[0,1,0]) wheel();
translate([-(basea-wcutw/2-wcutclear), (baseb-wcutl/2-wcutclear),0]) rotate(a=90, v=[0,1,0]) mirror() wheel();
translate([-(basea-wcutw/2-wcutclear),-(baseb-wcutl/2-wcutclear),0]) rotate(a=90, v=[0,1,0]) wheel();
translate([ (basea-wcutw/2-wcutclear),-(baseb-wcutl/2-wcutclear),0]) rotate(a=90, v=[0,1,0]) mirror() wheel();
*/
//motors
color("green", .80)
translate([basea-wcutclear,80, 35.8/2]) rotate(a=90, v=[0,1,0]) motor();
color("green", .80)
translate([basea-wcutclear,-80, 35.8/2]) rotate(a=90, v=[0,1,0]) motor();
color("green", .80)
translate([-basea+wcutclear,80, 35.8/2]) rotate(a=-90, v=[0,1,0]) motor();
color("green", .80)
translate([-basea+wcutclear,-80, 35.8/2]) rotate(a=-90, v=[0,1,0]) motor();
//batteries
color("red", .80)
/* for (a = [ 0 : 180: 180])
for (y = [-90 : 180: 90])
rotate(a=a, v=[0,0,1])
translate([-(basea-wcutw-2*wcutclear),y,0])
rotate(a=90, v=[0,0,1])
pack();
*/
for (a = [ 0 : 180: 180])
for (y = [-90 : 180: 90])
rotate(a=a, v=[0,0,1])
translate([-(basea-wcutw-2*wcutclear),y,0])
//rotate(a=90, v=[0,0,1])
sla6v();
//plate
color("gray", .80)
translate([0,0,-plate_t/2])
difference(){
cube([basea*2, baseb*2,plate_t], center=true);
//lip
translate([0,0,plate_t-plate_lip])
difference(){
cube([basea*2, baseb*2,plate_lip], center=true);
cube([basea*2-cover_t, baseb*2-cover_t,plate_lip], center=true);
}
//wheel cutouts
translate([ (basea-wcutw/2-wcutclear), (baseb-wcutl/2-wcutclear),0]) cube([wcutw,wcutl,plate_t*3], center=true);
translate([-(basea-wcutw/2-wcutclear), (baseb-wcutl/2-wcutclear),0]) cube([wcutw,wcutl,plate_t*3], center=true);
translate([ (basea-wcutw/2-wcutclear),-(baseb-wcutl/2-wcutclear),0]) cube([wcutw,wcutl,plate_t*3], center=true);
translate([-(basea-wcutw/2-wcutclear),-(baseb-wcutl/2-wcutclear),0]) cube([wcutw,wcutl,plate_t*3], center=true);
//casters
translate([caster_width/2,-baseb,0])
cube([30, 60, plate_t*2], center=true);
translate([-caster_width/2,-baseb,0])
cube([30, 60, plate_t*2], center=true);
}
//casters
color("darkgray", .8)
translate([caster_width/2,-baseb,-plate_t/2])
rotate(a=90,v=[0,1,0])
cylinder(r=25, h=25, center=true);
color("darkgray", .8)
translate([-caster_width/2,-baseb,-plate_t/2])
rotate(a=90,v=[0,1,0])
cylinder(r=25, h=25, center=true);
//cover
color("purple", .20)
translate([0,0,cover_h/2-plate_lip])
difference(){
cube([basea*2, baseb*2,cover_h], center=true);
translate([0,0,-cover_t])
cube([basea*2-cover_t, baseb*2-cover_t,cover_h], center=true);
rotate(a=0, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
rotate(a=90, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
rotate(a=180, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
rotate(a=270, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
}
//tower
color("gray", .80)
union(){
rotate(a=0, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
rotate(a=90, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
rotate(a=180, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
rotate(a=270, v=[0,0,1])
translate([ tower_w/2-tower_bar_t,tower_w/2-tower_bar_t,0])
cube([tower_bar_t,tower_bar_t,tower_h]);
}
//screen
color("teal", .9)
translate([0,tower_w/2+40,tower_h-150])
rotate(a=-70, v=[1,0,0])
cube([140,240,10], center=true);
//camera
color("pink", .9)
translate([0,tower_w/2+10,tower_h])
rotate(a=-70, v=[1,0,0])
union(){
sphere(r=20);
cylinder(r=10, h=25);
}
}
}
markbot();