| 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 | |
| 8 | // sonar sensor measurements from https://www.thingiverse.com/thing:92869, |
| 9 | // released under GPL. |
| 10 | deck_depth = 4.7625; // 3/8 inch in mm |
| 11 | sonar_plate_width = 20; |
| 12 | sonar_plate_length = 45; |
| 13 | sonar_plate_height = 1.2; |
| 14 | sonar_sensor_radius = 8; |
| 15 | sonar_sensor_height = 13.8; |
| 16 | sonar_holder_length = sonar_plate_length + 30; |
| 17 | sonar_holder_depth = 3; |
| 18 | |
| 19 | difference (){ |
| 20 | union(){ |
| 21 | cube([sonar_holder_length, sonar_plate_width, sonar_holder_depth]); |
| 22 | translate([sonar_plate_length + 5, 0, sonar_holder_depth]){ |
| 23 | cube([5, sonar_plate_width, deck_depth]); |
| 24 | translate([0, 0, deck_depth]){ |
| 25 | cube([sonar_holder_length - sonar_plate_length - 5, |
| 26 | sonar_plate_width, |
| 27 | sonar_holder_depth]);}}} |
| 28 | translate([45/2 - 13.5, 10, 0]){ |
| 29 | cylinder(r=sonar_sensor_radius, h = sonar_sensor_height, center = true);} |
| 30 | translate([45/2 + 13.5, 10, 0]){ |
| 31 | cylinder(r=sonar_sensor_radius, h = sonar_sensor_height, center = true);}} |