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
9 // 3/16 inch in mm deck_depth = 4.7625;
10 // 1/4 inch in mm = 6.35
11 // subtract a little to be a squeeze fit
12 deck_depth
= 4.7625 - 0.4;
13 sonar_plate_width
= 20;
14 // sonar sensor measurements taken with calipers:
15 // 10.82 in between, 42.33 outside, 15.82 diameter
16 // measured diameter of 15.82 with calipers,
17 // but when printed ends up being too small
18 sonar_sensor_radius
= 15.82 / 2 + 0.3;
19 sonar_sensor_height
= 13.8;
20 between_sensor_centers
= sonar_sensor_radius
* 2 + 10.82;
21 between_sensor_centers_variance
= 2;
22 sonar_plate_length
= 3 + between_sensor_centers
+ sonar_sensor_radius
+ 3;
23 sonar_holder_length
= sonar_plate_length
+ 10;
24 sonar_holder_width
= sonar_plate_width
+ 3;
25 sonar_holder_depth
= 4;
27 deck_holder_length
= 30;
30 translate([between_sensor_centers
/ 2, 0, 0]){
31 cylinder(r
= sonar_sensor_radius
, h
= sonar_sensor_height
);}
32 translate([between_sensor_centers
/ 2 - between_sensor_centers_variance
,
35 cylinder(r
= sonar_sensor_radius
, h
= sonar_sensor_height
);
36 translate([0, -sonar_sensor_radius
, 0]){
37 cube([between_sensor_centers_variance
,
38 sonar_sensor_radius
* 2,
39 sonar_sensor_height
]);}}
40 translate([-between_sensor_centers
/ 2, 0, 0]){
41 cylinder(r
= sonar_sensor_radius
, h
= sonar_sensor_height
);}}
43 module
sensor_holder(){
45 cube([sonar_holder_length
, sonar_holder_width
, sonar_holder_depth
]);
46 translate([sonar_holder_length
/ 2, sonar_holder_width
/ 2, -0.05]){
48 translate([sonar_holder_length
, 0, 0]){
49 cube([sonar_holder_depth
+ 0.7, deck_depth
, deck_depth
- 0.7]);
50 translate([sonar_holder_depth
+ 0.7, 0, 0]){
51 // subtract a little bit (0.3) to make it fit
52 cube([deck_depth
- 0.7, sonar_holder_width
, deck_depth
- 0.7]);}}}
55 deck_holder_width
= sonar_holder_width
- deck_depth
;
56 cube([deck_holder_length
, sonar_holder_depth
, deck_holder_width
]);
57 cube([sonar_holder_depth
,
58 sonar_holder_depth
* 2 + deck_depth
,
60 translate([0, sonar_holder_depth
+ deck_depth
, 0]){
61 cube([deck_holder_length
, sonar_holder_depth
, deck_holder_width
]);}
62 translate([sonar_holder_depth
+ deck_depth
, 0, 0]){
63 cube([sonar_holder_depth
,
64 sonar_holder_depth
* 2 + deck_depth
,
65 deck_holder_width
]);}}
67 translate([0, sonar_holder_depth
* 2 + deck_depth
+ 2, 0]){