d899cf8b |
1 | /* |
2 | Copyright 2016 Daniel Watson |
3 | See the end of the file for license conditions. |
4 | */ |
5 | /* challenge-bot |
6 | // GNU AGPLv3 (or later at your option) |
7 | // project available here: |
8 | // https://challenge-bot.com/ */ |
9 | |
10 | /* |
11 | this holds an hc-sr04 sonar sensor to a 3/16 inch deck. |
12 | http://fritzing.org/projects/hc-sr04-project |
13 | it can hold the sonar sensor either facing down, or forwards. |
14 | when facing down, it can detect if it passes over the edge of a table. |
15 | when facing forwards, it can detect and follow something in front |
16 | of it. |
17 | */ |
18 | |
19 | include <sonar-binder-clip-holder-data.scad> |
20 | |
ba144414 |
21 | sonar_binder_clip_holder(sonar_radius, |
8d53fefd |
22 | between_sonar_centers, |
d7732ded |
23 | between_sonar_centers_variation, |
64c38a30 |
24 | screw_radius, |
cc1b210f |
25 | wall_thickness, |
26 | sonar_binder_clip_holder_height); |
d899cf8b |
27 | |
e04f30fb |
28 | holder_radius = sonar_radius + wall_thickness; |
64c38a30 |
29 | |
f62bc6ee |
30 | translate([0, holder_radius * 2 + 2]) { |
64c38a30 |
31 | binder_clip_holder(holder_radius, |
e04f30fb |
32 | screw_radius, |
cc1b210f |
33 | sonar_binder_clip_holder_height); } |
e04f30fb |
34 | |
d899cf8b |
35 | /* |
36 | This file is part of challenge-bot. |
37 | |
38 | Challenge-bot is free software: you can redistribute it and/or modify |
39 | it under the terms of the GNU Affero General Public License as published by |
40 | the Free Software Foundation, either version 3 of the License, or |
41 | (at your option) any later version. |
42 | |
43 | GNU Affero Emacs is distributed in the hope that it will be useful, |
44 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
45 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
46 | GNU Affero General Public License for more details. |
47 | |
48 | You should have received a copy of the GNU Affero General Public License |
49 | along with challenge-bot. If not, see <http://www.gnu.org/licenses/>. |
50 | */ |