3e11090dc14e170c732f37a12c4bb8014efa9813
[challenge-bot] / schematic-3d-printable.scad
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
17 module wheel_mount() {
18 difference() {
19 cube([1.5, 2.1, 3/16]);
20 // motor shaft and collar hole
21 translate([0.5, 0.938, -1/16]) {
22 cylinder(h = 5/16, r = 0.362/2, $fn = 100);
23 }
24 // nubbin hole
25 translate([0.5 + 0.875 - 0.425, 0.938, -1/16]) {
26 cylinder(h = 5/16, r = 0.145/2, $fn = 100);
27 }
28 // mounting screw hole
29 translate([0.5 + 1.213 - 0.425, 0.938 - 0.687/2, -1/16]) {
30 cylinder(h = 5/16, r = 0.114/2, $fn = 100);
31 }
32 translate([0.5 + 1.213 - 0.425, 0.938 + 0.687/2, -1/16]) {
33 cylinder(h = 5/16, r = 0.114/2, $fn = 100);
34 }
35 }
36 }
37
38 color("blue") deck();
39 rotate([90, 0, 0]) translate([1.5, -2, -(3/16)]) wheel_mount();
40 rotate([90, 0, 0]) translate([1.5, -2, -8]) wheel_mount();