| 1 | // challenge-bot |
| 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 | $fn = 60; |
| 8 | |
| 9 | include <motor-mount-dimensions.scad> |
| 10 | |
| 11 | module motor_holes(){ |
| 12 | collar_x_offset = 10.8; |
| 13 | nubbin_x_offset = 22.23; |
| 14 | // actual motor screw holes are 0.2 further than spec says |
| 15 | screw_x_offset = 30.81 + 0.2; |
| 16 | screw_y_offset = 17.44 / 2; |
| 17 | |
| 18 | translate([collar_x_offset, 0, 0]){ |
| 19 | cylinder(r = collar_radius, h = mount_total_z + 0.1);} |
| 20 | translate([nubbin_x_offset, 0, 0]){ |
| 21 | cylinder(r = nubbin_radius, h = mount_total_z + 0.1);} |
| 22 | translate([screw_x_offset, 0, 0]){ |
| 23 | translate([0, screw_y_offset, 0]){ |
| 24 | cylinder(r = screw_radius, h = mount_total_z + 0.1);} |
| 25 | translate([0, -screw_y_offset, 0]){ |
| 26 | cylinder(r = screw_radius, h = mount_total_z + 0.1);}}} |
| 27 | |
| 28 | module bracket_holes(){ |
| 29 | translate([6.2, 0, 0]) |
| 30 | cylinder(r = _6_radius, h = mount_total_z + 0.1); |
| 31 | translate([mount_total_x - 6.2, 0, 0]) |
| 32 | cylinder(r = _6_radius, h = mount_total_z + 0.1);} |
| 33 | |
| 34 | module motor_mount(){ |
| 35 | difference(){ |
| 36 | cube([mount_total_x, mount_total_y, mount_total_z]); |
| 37 | translate([0, 6.2, -0.05]){ |
| 38 | bracket_holes();} |
| 39 | translate([1, mount_total_y - motor_height / 2 - 3, -0.05]){ |
| 40 | motor_holes();}}} |
| 41 | |
| 42 | motor_mount(); |