X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=blobdiff_plain;f=3d-printables%2Fwire-jig.scad;h=4b9bd73f76d6db71fbd3fbe7074fa5c6263b788b;hp=dabde952366e44901e8218d84c4b82ee273131bf;hb=ce941be740b45737d19eaa5c726b2f99efabe0b9;hpb=8b3d6ed0e717ba9b21a24aceb0eaa322f12168f9 diff --git a/3d-printables/wire-jig.scad b/3d-printables/wire-jig.scad index dabde95..4b9bd73 100644 --- a/3d-printables/wire-jig.scad +++ b/3d-printables/wire-jig.scad @@ -1,41 +1,34 @@ +/* + Copyright (C) 2015 Daniel Watson + See the end of the file for license conditions. +*/ // 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 +// project available here: +// https://challenge-bot.com/ -$fn = 20; +include -wire_channel_width = 6; -wire_channel_height = 6; - -wire_diameter_measured = 1.17; -wire_diameter_fudge = 0.5; -wire_diameter = wire_diameter_measured + wire_diameter_fudge; -wire_radius = wire_diameter / 2; - -wire_lengths = [10, //strip wire this much - 35, //short breadboard wire - 63, //ground to ground - 120, //arduino breadboard wire - 180 //motor wire - ]; - -module wire_channel_groove_2d(width, height, wire_radius) { - difference() { - square([width, height]); - translate([width / 2, height]) { - circle(r = wire_radius); } } } - - -module wire_channel_groove(width, height, wire_radius, length){ - rotate(a = 90, v = [1, 0, 0]){ - linear_extrude(height = length){ - wire_channel_groove_2d(width, height, wire_radius); } } } - -for(ii = [0:len(wire_lengths) - 1]) { - translate([wire_channel_width * ii, 0, 0]) { +for (ii = [0:len(wire_lengths) - 1]) { + translate([ wire_channel_width * ii, 0, 0]) { wire_channel_groove(wire_channel_width, - wire_channel_height, - wire_radius, - wire_lengths[ii]); } } + wire_channel_height, + wire_radius, + wire_lengths[ii]); } } + +/* + This file is part of challenge-bot. + + Challenge-bot is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + GNU Affero Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with challenge-bot. If not, see . +*/