3d90aff0 |
1 | $fn = 20; |
2 | |
3 | include <nut-data.scad> |
180a0f6f |
4 | wire_channel_width = 14; |
5 | wire_channel_height = 14; |
6 | |
7 | wire_diameter_measured = 1.17; |
8 | // some of this fudge is due to using a hexagon instead of a circle |
9 | wire_diameter_fudge = 1.4; |
10 | wire_diameter = wire_diameter_measured + wire_diameter_fudge; |
11 | wire_radius = wire_diameter / 2; |
12 | |
13 | wire_lengths = [10, //strip wire this much |
14 | 35, //short breadboard wire |
15 | 63, //ground to ground |
16 | 120, //arduino breadboard wire |
17 | 180 //motor wire |
18 | ]; |
3d90aff0 |
19 | |
20 | module wire_channel_groove_2d(width, height, wire_radius) { |
21 | difference() { |
22 | square([width, height]); |
23 | translate([width / 2, height / 2]) { |
24 | rotate(a = 90, v = [0, 0, 1]) { |
25 | nut_2d(wire_diameter); } } } } |
26 | |
27 | module wire_channel_groove(width, height, wire_radius, length) { |
28 | rotate(a = 90, v = [1, 0, 0]) { |
29 | linear_extrude(height = length) { |
30 | wire_channel_groove_2d(width, height, wire_radius); } } } |