| 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 | module encoder_shaft(){ |
| 8 | motor_shaft_big = 3.7; |
| 9 | motor_shaft_small = 4.8; |
| 10 | motor_shaft_length = 7.65 / 2; |
| 11 | |
| 12 | intersection(){ |
| 13 | cylinder(h = motor_shaft_length, |
| 14 | r = motor_shaft_big, |
| 15 | center = true, |
| 16 | $fn=100); |
| 17 | cube([motor_shaft_big * 2.1, motor_shaft_small, motor_shaft_length], |
| 18 | center = true);}} |
| 19 | |
| 20 | module wheel(){ |
| 21 | depth = 7.65; |
| 22 | radius = 68/2; |
| 23 | difference(){ |
| 24 | cylinder(h = depth, r = radius, center = true, $fn=100); |
| 25 | translate([0, 0, 7.65/4]) |
| 26 | scale([1, 1, 1.1]) |
| 27 | encoder_shaft(); |
| 28 | cylinder(h = depth * 1.1, r = 1, $fn = 100, center = true);}} |
| 29 | |
| 30 | translate([0, 0, 7.65/2]) wheel(); |