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
8 // https://github.com/josefprusa/Prusa3/blob/master/box_frame/x-carriage.scad
9 // as an example of how to code in scad
16 deck_dimensions
= [deck_x
, deck_y
, deck_z
];
19 cube(deck_dimensions
* scale
, center
= true);}
21 module
collar_hole(scale
){
22 cylinder(h
= 5/16 * scale, r = 0.362/2 * scale
, $fn
= 100);}
24 module
nubbin_hole(scale
){
25 cylinder(h
= 5/16 * scale, r = 0.145/2 * scale
, $fn
= 100);}
27 module
mounting_screw_hole(scale
){
28 cylinder(h
= 5/16 * scale, r = 0.114/2 * scale
, $fn
= 100);}
30 module
wheel_mount(scale
){
32 cube([1.5, 2, 3/16] * scale
);
33 // motor shaft collar hole
34 translate([0.5, 0.938, -1/16] * scale
) {
37 translate([0.5 + 0.875 - 0.425, 0.938, -1/16] * scale
){
39 // mounting screw hole
40 translate([0.5 + 1.213 - 0.425, 0.938 - 0.687/2, -1/16] * scale
){
41 mounting_screw_hole(scale
);}
42 translate([0.5 + 1.213 - 0.425, 0.938 + 0.687/2, -1/16] * scale
){
43 mounting_screw_hole(scale
);}}}
45 translate([0, 0, (3/16)/2 * scale
]){
46 color("blue") deck(scale
);
48 translate([1.5, (deck_z
)/2, -4] * scale
) wheel_mount(scale
);
50 translate([1.5, (deck_z
)/2, 4 - deck_z
] * scale
) wheel_mount(scale
);