X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=3d-printables%2Fwire-jig-data.scad;fp=3d-printables%2Fwire-jig-data.scad;h=1c51f0cc5310f73af77258f839c9daa0a9c03757;hb=3d90aff00bdea5d4a525d006d5390f9c5a25c635;hp=0000000000000000000000000000000000000000;hpb=d00915911d7048524d168f352e33426d094e3176;p=challenge-bot diff --git a/3d-printables/wire-jig-data.scad b/3d-printables/wire-jig-data.scad new file mode 100644 index 0000000..1c51f0c --- /dev/null +++ b/3d-printables/wire-jig-data.scad @@ -0,0 +1,30 @@ +$fn = 20; + +include +wire_channel_width = 14; +wire_channel_height = 14; + +wire_diameter_measured = 1.17; +// some of this fudge is due to using a hexagon instead of a circle +wire_diameter_fudge = 1.4; +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 / 2]) { + rotate(a = 90, v = [0, 0, 1]) { + nut_2d(wire_diameter); } } } } + +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); } } }