use honeycomb instead of 3d
[challenge-bot] / 3d-printables / motor-mount-data.scad
CommitLineData
25cd00a6 1/*
2 Copyright (C) 2015 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
3d90aff0 10// from schematic http://goo.gl/96RKol
11collar_radius = 9.2 / 2 + 0.25;
12nubbin_radius = 4.48 / 2;
13screw_radius = 2.9 / 2 + 0.35; // a little bigger so screws fit through
14
15motor_height = 22.23;
16
17// http://freespace.virgin.net/matt.waite/resource/handy/screwsize.htm
18_6_radius = 3.5 / 2 + 0.25;
19
20// measurements we made up:
21mount_total_x = 38;
22mount_total_y = mount_total_x;
23mount_total_z = 3.175; // 3/16 in mm
24
25module motor_holes() {
26 collar_x_offset = 10.8;
27 nubbin_x_offset = 22.23;
28 // actual motor screw holes are 0.2 further than spec says
29 screw_x_offset = 30.81 + 0.2;
30 screw_y_offset = 17.44 / 2;
31
32 translate([collar_x_offset, 0, 0]) {
33 cylinder(r = collar_radius, h = mount_total_z + 0.1); }
34 translate([nubbin_x_offset, 0, 0]) {
35 cylinder(r = nubbin_radius, h = mount_total_z + 0.1); }
36 translate([screw_x_offset, 0, 0]) {
37 translate([0, screw_y_offset, 0]) {
38 cylinder(r = screw_radius, h = mount_total_z + 0.1); }
39 translate([0, -screw_y_offset, 0]) {
40 cylinder(r = screw_radius, h = mount_total_z + 0.1); } } }
41
42module bracket_holes() {
43 translate([6.2, 0, 0])
44 cylinder(r = _6_radius, h = mount_total_z + 0.1);
45 translate([mount_total_x - 6.2, 0, 0])
46 cylinder(r = _6_radius, h = mount_total_z + 0.1); }
47
48module motor_mount() {
49 difference() {
50 cube([mount_total_x, mount_total_y, mount_total_z]);
51 translate([0, 6.2, -0.05]) {
52 bracket_holes(); }
53 translate([1, mount_total_y - motor_height / 2 - 3, -0.05]) {
54 motor_holes(); } } }
25cd00a6 55
56/*
57 This file is part of challenge-bot.
58
59 Challenge-bot is free software: you can redistribute it and/or modify
60 it under the terms of the GNU Affero General Public License as published by
61 the Free Software Foundation, either version 3 of the License, or
62 (at your option) any later version.
63
64 GNU Affero Emacs is distributed in the hope that it will be useful,
65 but WITHOUT ANY WARRANTY; without even the implied warranty of
66 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
67 GNU Affero General Public License for more details.
68
69 You should have received a copy of the GNU Affero General Public License
70 along with challenge-bot. If not, see <http://www.gnu.org/licenses/>.
71*/