put left motor speed pin on 10 for pwm
[challenge-bot] / 3d-printables / nut-data.scad
CommitLineData
4ee0e3d8 1/*
3d90aff0 2Copyright (C) 2015 Daniel Watson
4ee0e3d8 3See the end of the file for license conditions.
4*/
5
6module nut_2d(size) {
7 side_length = size * sin(30) / sin(120);
3d90aff0 8 for (ii = [-1:1]) {
4ee0e3d8 9 rotate(a = 120 * ii, v = [0, 0, 1]) {
10 square([side_length, size], center = true); } } }
11
12module nut(size, height) {
13 linear_extrude(height = height) {
14 nut_2d(size); } }
15
16/*
17This file is part of challenge-bot.
18
19Printables is free software: you can redistribute it and/or modify
20it under the terms of the GNU Affero General Public License as published by
21the Free Software Foundation, either version 3 of the License, or
22(at your option) any later version.
23
24GNU Affero Emacs is distributed in the hope that it will be useful,
25but WITHOUT ANY WARRANTY; without even the implied warranty of
26MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27GNU Affero General Public License for more details.
28
29You should have received a copy of the GNU Affero General Public License
30along with Printables. If not, see <http://www.gnu.org/licenses/>.
31*/