c157a4cd |
1 | // challenge-bot phase-2 |
2 | // GNU AGPLv3 (or later at your option) |
3 | // project available at these locations: |
4 | // https://gitorious.org/ozzloy/challenge-bot |
5 | // https://github.com/waynegramlich/challenge-bot |
6 | |
7 | // using |
8 | // https://github.com/josefprusa/Prusa3/blob/master/box_frame/x-carriage.scad |
9 | // as an example of how to code in scad |
10 | |
11 | deck_dimensions = [8, 8, 3/16]; |
12 | |
13 | module deck(){ |
14 | cube(deck_dimensions);} |
15 | |
16 | module wheel_mount(){ |
17 | difference(){ |
18 | cube([1.5, 2, 3/16]); |
19 | // motor shaft and collar hole |
20 | translate([0.5, 0.938, -1/16]) { |
21 | cylinder(h = 5/16, r = 0.362/2, $fn = 100);} |
22 | // nubbin hole |
23 | translate([0.5 + 0.875 - 0.425, 0.938, -1/16]){ |
24 | cylinder(h = 5/16, r = 0.145/2, $fn = 100);} |
25 | // mounting screw hole |
26 | translate([0.5 + 1.213 - 0.425, 0.938 - 0.687/2, -1/16]){ |
27 | cylinder(h = 5/16, r = 0.114/2, $fn = 100);} |
28 | translate([0.5 + 1.213 - 0.425, 0.938 + 0.687/2, -1/16]){ |
29 | cylinder(h = 5/16, r = 0.114/2, $fn = 100);}}} |
30 | |
31 | module wheel(){ |
32 | cylinder(r = 2.75/2, h = 3/16, $fn = 100);} |
33 | |
34 | color("blue") deck(); |
35 | rotate([90, 0, 0]) translate([1.5, -2, 0]) wheel_mount(); |
36 | rotate([90, 0, 0]) translate([1.5, -2, -(8+3/16)]) wheel_mount(); |
37 | color("red") rotate([90, 0, 0]) translate([2, -(.938), 3/16]) wheel(); |
38 | color("red") rotate([90, 0, 0]) translate([2, -(.938), -(8 + 3/8)]) wheel(); |