hold sonar sensor oriented for table top challenge
authordaniel watson <ozzloy@gmail.com>
Fri, 1 Nov 2013 19:06:12 +0000 (12:06 -0700)
committerdaniel watson <ozzloy@gmail.com>
Fri, 1 Nov 2013 19:06:12 +0000 (12:06 -0700)
sonar-table-top-holder.scad [new file with mode: 0644]

diff --git a/sonar-table-top-holder.scad b/sonar-table-top-holder.scad
new file mode 100644 (file)
index 0000000..5f985c3
--- /dev/null
@@ -0,0 +1,34 @@
+// challenge-bot
+// GNU AGPLv3 (or later at your option)
+// project available at these locations:
+// https://gitorious.org/ozzloy/challenge-bot
+// https://github.com/waynegramlich/challenge-bot
+
+
+// sonar sensor measurements from https://www.thingiverse.com/thing:92869,
+//  released under GPL.
+deck_depth = 4.7625; // 3/8 inch in mm
+sonar_plate_width = 20;
+sonar_plate_length = 45;
+sonar_plate_height = 1.2;
+sonar_sensor_radius = 8;
+sonar_sensor_height = 13.8;
+sonar_holder_length = sonar_plate_length + 30;
+sonar_holder_depth = 3;
+
+difference (){
+  union(){
+    cube([sonar_holder_length, sonar_plate_width, sonar_holder_depth]);
+    translate([sonar_plate_length + 5, 0, sonar_holder_depth]){
+      cube([5, sonar_plate_width, deck_depth]);
+      translate([0, 0, deck_depth]){
+        cube([sonar_holder_length - sonar_plate_length - 5,
+              sonar_plate_width,
+              sonar_holder_depth]);
+      }
+    }
+  }
+  translate([45/2 - 13.5, 10, 0]){
+    cylinder(r=sonar_sensor_radius, h = sonar_sensor_height, center = true);}
+  translate([45/2 + 13.5, 10, 0]){
+    cylinder(r=sonar_sensor_radius, h = sonar_sensor_height, center = true);}}