Added molex_usb_Ax2 connector.

This commit is contained in:
Chris Palmer 2020-04-20 17:52:37 +01:00
parent 2afc00cfa9
commit 026b9daf59
4 changed files with 66 additions and 4 deletions

View File

@ -2002,6 +2002,7 @@ PCBs and perfboard with optional components. The shape can be a rectangle with o
| ```hdmi(type, cutout = false)``` | Draw HDMI socket | | ```hdmi(type, cutout = false)``` | Draw HDMI socket |
| ```jack(cutout = false)``` | Draw 3.5mm jack | | ```jack(cutout = false)``` | Draw 3.5mm jack |
| ```molex_254(ways)``` | Draw molex header | | ```molex_254(ways)``` | Draw molex header |
| ```molex_usb_Ax2(cutout)``` | Draw Molex USB connector suitable for perf board |
| ```pcb(type)``` | Draw specified PCB | | ```pcb(type)``` | Draw specified PCB |
| ```pcb_assembly(type, height, thickness)``` | Draw PCB assembly with spaces and fasteners in place | | ```pcb_assembly(type, height, thickness)``` | Draw PCB assembly with spaces and fasteners in place |
| ```pcb_base(type, height, thickness, wall = 2)``` | Generate STL for a base with PCB spacers | | ```pcb_base(type, height, thickness, wall = 2)``` | Generate STL for a base with PCB spacers |
@ -2124,6 +2125,7 @@ PCBs and perfboard with optional components. The shape can be a rectangle with o
| ```hdmi(type, cutout = false)``` | Draw HDMI socket | | ```hdmi(type, cutout = false)``` | Draw HDMI socket |
| ```jack(cutout = false)``` | Draw 3.5mm jack | | ```jack(cutout = false)``` | Draw 3.5mm jack |
| ```molex_254(ways)``` | Draw molex header | | ```molex_254(ways)``` | Draw molex header |
| ```molex_usb_Ax2(cutout)``` | Draw Molex USB connector suitable for perf board |
| ```pcb(type)``` | Draw specified PCB | | ```pcb(type)``` | Draw specified PCB |
| ```pcb_assembly(type, height, thickness)``` | Draw PCB assembly with spaces and fasteners in place | | ```pcb_assembly(type, height, thickness)``` | Draw PCB assembly with spaces and fasteners in place |
| ```pcb_base(type, height, thickness, wall = 2)``` | Generate STL for a base with PCB spacers | | ```pcb_base(type, height, thickness, wall = 2)``` | Generate STL for a base with PCB spacers |

View File

@ -71,10 +71,11 @@ test_pcb = ["TestPCB", "Test PCB",
[ 10, 65, 180, "rj45"], [ 10, 65, 180, "rj45"],
[ 8, 85, 180, "usb_A"], [ 8, 85, 180, "usb_A"],
[ 8, 105, 180, "usb_Ax2"], [ 8, 105, 180, "usb_Ax2"],
[ 3, 125, 180, "usb_uA"], [ 3, 140, 180, "usb_uA"],
[ 8, 140, 180, "usb_B"], [ 8, 155, 180, "usb_B"],
[ 5, 160, 0, "buzzer", 4.5, 8.5], [ 8.5, 125, 180, "molex_usb_Ax2"],
[ 20, 160, 0, "buzzer"], [ 25, 200, 0, "buzzer", 4.5, 8.5],
[ 25, 218, 0, "buzzer"],
[ 8, 190, 180, "jack"], [ 8, 190, 180, "jack"],
[ 6, 200, 180, "barrel_jack"], [ 6, 200, 180, "barrel_jack"],
[ 5, 218, 180, "hdmi"], [ 5, 218, 180, "hdmi"],

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 168 KiB

View File

@ -155,6 +155,64 @@ module usb_A(h, v_flange_l, bar, cutout) {
} }
} }
module molex_usb_Ax2(cutout) { //! Draw Molex USB connector suitable for perf board
w = 15.9;
h = 16.6;
l = 17;
pin_l = 2.8;
clearance = 0.2;
tag_l = 4.8;
tag_r = 0.5;
tag_w = 1.5;
tag_t = 0.3;
tag_p = 5.65;
if(cutout)
translate([0, -w / 2 - clearance, -clearance])
cube([100, w + 2 * clearance, h + 2 * clearance]);
else {
color(silver)
translate([-l / 2, 0])
rotate([90, 0, 90])
translate([-w / 2, 0]) {
cube([w, h, l - 9]);
linear_extrude(l)
difference() {
square([w, h]);
for(z = [-1, 1])
translate([w / 2, h / 2 + z * 8.5 / 2])
square([12.6, 5.08], center = true);
}
}
for(z = [-1, 1])
translate_z(h / 2 + z * 8.5 / 2)
usb_A_tongue();
color(silver)
rotate(-90) {
for(x = [-1.5 : 1 : 1.5], y = [0.5 : 1 : 1.5])
translate([inch(x / 10), -l / 2 + inch(y / 10)])
hull() {
cube([0.6, 0.3, 2 * pin_l - 2], center = true);
cube([0.4, 0.3, 2 * pin_l], center = true);
}
for(side = [-1, 1], end = [0, 1])
translate([side * w / 2, -l / 2 + tag_w / 2 + end * tag_p])
rotate(-side * 90)
hull() {
translate([0, tag_l - tag_r])
cylinder(r = tag_r, h = tag_t);
translate([-tag_w / 2, 0])
cube([tag_w, eps, tag_t]);
}
}
}
} }
module rj45(cutout = false) { //! Draw RJ45 Ethernet connector module rj45(cutout = false) { //! Draw RJ45 Ethernet connector
@ -851,6 +909,7 @@ module pcb_component(comp, cutouts = false, angle = undef) { //! Draw pcb compon
if(show(comp, "led")) led(comp[4], comp[5], 2.6); if(show(comp, "led")) led(comp[4], comp[5], 2.6);
if(show(comp, "pdip")) pdip(comp[4], comp[5], param(6, false), param(7, inch(0.3))); if(show(comp, "pdip")) pdip(comp[4], comp[5], param(6, false), param(7, inch(0.3)));
if(show(comp, "ax_res")) ax_res(comp[4], comp[5], param(6, 5), param(7, 0)); if(show(comp, "ax_res")) ax_res(comp[4], comp[5], param(6, 5), param(7, 0));
if(show(comp, "molex_usb_Ax2")) molex_usb_Ax2(cutouts);
} }
} }