standardize phase3 more
[challenge-bot] / sonar-table-top-holder.scad
CommitLineData
dac38b58 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.
10deck_depth = 4.7625; // 3/8 inch in mm
11sonar_plate_width = 20;
12sonar_plate_length = 45;
13sonar_plate_height = 1.2;
14sonar_sensor_radius = 8;
15sonar_sensor_height = 13.8;
16sonar_holder_length = sonar_plate_length + 30;
17sonar_holder_depth = 3;
18
19difference (){
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,
e747f013 27 sonar_holder_depth]);}}}
dac38b58 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);}}