3 ** make more parametric
4 ** add parameter to specify number of wires/pins
7 $fn=10; //Minimum nuber of circle segments
9 module conn_male(size=23, thickness=1.5, full=false) {
12 translate([0,size*0.3,0]) cube([size-(thickness*2),(size-(thickness*2))*2,size-(thickness*2)], center=true);
13 translate([size/3,(size/3)-thickness]) rotate([0,0,145]) cube([size*0.2,size/4,size-(thickness*2)], center=true);
16 translate([0,size/2,0]) cube([size-(thickness*4),size*1.5,size+1], center=true);
18 for(i = [(size/3)-thickness,-(size/3)+thickness])
21 cylinder(size*2, size/10, size/10);
26 module conn_female(size=23, thickness=1.5) {
28 cube(size, center=true);
29 conn_male(size, thickness=thickness, full=true);
30 for(i = [size/4,-size/4])
32 rotate([90,0,0]) cylinder(size*2, size/10, size/10);
36 module connector(size=10, thickness=1.5, gap=0.6, design=false) {
39 translate([0,size*1.5,-(thickness+gap/2)]) conn_male(size-gap,thickness);
40 conn_female(size,thickness);
43 conn_male(size-gap,thickness);
44 % conn_female(size,thickness);
48 //connector(design=true);