Linus Torvalds dde35baf49 Add footprint and 3D model for PJ-320A 3.5mm TRRS jack
Several slightly different datasheets for this one, but they are within
0.1mm of each other so they all probably work.  The one that looked best
was the one from LCSC, so that's the one this is based on.

This obviously works for audio, but I'm actually primarily considering
it as a "remote stomp switch connection" jack in a 1590LB enclosure.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-10-14 19:35:43 -07:00

50 lines
896 B
OpenSCAD

$fn=40;
black = [0.2,0.2,0.2];
silver = [0.75,0.75,0.75];
// The model is centered on the front
// as per the data sheet
//
// And when I say "as per the data sheet",
// I mean that I've found three different
// copies with slightly different values.
//
// Oh well.
pins = [ [11.3, -2.3], [3.2, 2.3], [6.2, 2.3], [10.2, 2.3] ];
feet = [ [ 1.6, 0], [ 8.6, 0] ];
module body()
{
difference() {
union() {
translate([0,-3])
cube([12.1, 6.1, 5]);
translate([0,0,2.5]) rotate([0,-90,0])
cylinder(2,d=5);
}
translate([8,0,2.5]) rotate([0,-90,0])
cylinder(12,d=3.6);
}
}
module pj320a()
{
color(black) {
body();
// Feet or locating pins..
translate([0,0,-0.5]) for (pos = feet)
translate(pos) cylinder(1, d=0.75);
}
color(silver) {
// Pins
for (pos = pins)
translate(pos) translate([0,0,1]) cube([1,0.4,6], center=true);
}
}
pj320a();