

// file:  m3_2x3_ltch_horz_4_wall.txt

//
//  date:  28-Jan-2026   Start work on  6 pin  metric version  of the header
//                                     -------
//
//          2-Feb-2026   Fix a couple of typos
//


//  This is the geometry for the  6 pin
//  Latched 4 wall 90 deg male 3M header
//  0.1" x 0.1"  2x3  Horizontal Mount

//
//  3M part number:  N3869-5202RB
//  3M part number:  N3869-5302RB
//
//  xxxx-x2xx  is the Short Latch Ejector  0.424 inch
//  xxxx-x3xx  is the  Long Latch Ejector  0.573 inch
//
//  The final 3   xxxx-xxx3   is for the longer
//  solder tails for  94 to 125 mil  thick pcb.
//
//  The same connector with a final  2  xxxx-xxx2   is for the
//  shorter solder tails for  62 mil  thick pcb.
//


//
//  This geom includes its own  Pin-Pad_Stacks.
//
//  This layout will be all metric.
//
//  The long axis of the pin array is horizontal.
//
//  The Center of this geometry is in the center of its pin array.
//
//  This connector  does  have latches.
//
//  Overall external size:  27.0 mm in X  by  17.4 mm in Y
//
//  The distance between mounting holes is:  16.89 mm
//
//  The diameter of the mounting holes is for 2-56 screws
//
//     Recommended pcb mounting holes 0.106" or 0.116" diameter.
//
//     The two mounting screws on this connector will be made
//     as component pins 7 and 8  so that these two screws
//     may be grounded.
//
//  In the foot print the mounting holes are between the 2 pin rows.
//
//     The mounting hole centers are  0.74 mm  from the center of
//     the even numbered pin row which is next to the board edge.
//
//     The mounting hole centers are  1.80 mm  from the center of
//     the odd numbered pin row which is away from the board edge.
//
//  This geometry is written with Pin #1 in the SW corner,
//  pin #6 is in the NE corner,  the latch ears are facing
//  up in the positive Y direction.
//
//  When placed on the West edge of the DK board this geometry
//  needs to be rotated by 90 degrees and set back  11.7 mm
//  from the edge of the card  (as an initial placement position).
//
//  The pins closest to the board edge are about  10.4 mm from the edge.
//
//  Connector Part Number with final digit 2  --->  Pin tails are  2.84 mm
//  Connector Part Number with final digit 3  --->  Pin tails are  3.94 mm
//
//     Pin tail length is measured below the standoffs.
//
//  They specify a    0.89 mm Dia  finished hole for the pins.
//  I will make them  0.90 mm Dia  drill hole  as that size is in
//  the Drill Table.
//
//  The silkscreen for this part is drawn showing the longer
//  type of Latch/Ejection Ears.
//


$abort_enable = @false;
$$lock_windows(@on) ;
$$snap_diagonal(@off) ;
$$snap_orthogonal(@off) ;


//----------------------------------------------------------------------------
//
//  3M Header Pin Pad-Stack  for the  Normal Signal  Pins
//                                   ---------------
//
//     These 3M Pins are square and  0.622 mm  on a side  ( 0.88 mm diagonal )
//     These Pins are spaced by  2.54 mm  apart.
//
//     The intent of this Pin Pad-Stack is to both:
//
//         Allow routing of a trace between adjacent pin pads.
//
//         Provide a continous Ground Web between pins.
//
//     0.90 mm  drill
//     1.64 mm  pad land
//     1.70 mm  soldermask opening
//     2.42 mm  plane relief
//
//     --> thickness of the donut wall around the pin:   0.37 mm
//
//     --> clearance from edge of drill hole to plane:   0.76 mm
//
//     --> clearance from pad land to plane:             0.39 mm
//
//     --> trace running between adjacent pads:          0.30 mm trace   0.30 mm air gap
//
//     --> minimum thickness of the Gnd Plane web:       0.12 mm


$$create_pin("M3_Norm_Signal_THD", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$M3_Norm_Signal_THD']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [ 0.90,  0.0 ]);

$$circle( "PAD",         0.0, 0.0,  1.64,  0.0);

$$circle( "SIGNAL",      0.0, 0.0,  1.64,  0.0);

$$circle( "SOLDER_MASK", 0.0, 0.0,  1.70,  0.0);

$$circle( "POWER",       0.0, 0.0,  2.42, 0.0);

//----------------------------------------------------------------------------


//----------------------------------------------------------------------------

//  3M Header Pin Pad-Stack  for the  Mounting Screw  Pins
//                                   ----------------
//
//  These are  2-56  screws that will be Ground Pins on
//  the DK board for the  3M Header Horizontal  connectors.
//
//  The OD of a 2-56 screw is about  2.18 mm.
//
//  Finished hole Diameter  between  2.69  and  2.95 mm
//     average is  2.82 mm
//
//  The Head Diameter of the  2-56  screw is  3.94 to 4.24 mm.
//
//  A normal #2 washer has an outer diameter of  6.35 mm
//
//     2.70 mm  drill
//     7.00 mm  pad land
//     7.20 mm  soldermask opening
//     5.70 mm  plane relief
//
//     --> the thickness of the pad donut wall is         2.15 mm
//     --> clearance from edge of drill hole to plane     1.50 mm
//     --> clearance from screw pad adjacent Signal pad   1.59 mm


$$create_pin("M3_THD_SCREW_TERM", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$M3_THD_SCREW_TERM']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [ 2.70,  0.0 ]);

$$circle( "PAD",         0.0, 0.0,  7.00,  0.0);

$$circle( "SIGNAL",      0.0, 0.0,  7.00,  0.0);

$$circle( "SOLDER_MASK", 0.0, 0.0,  7.20,  0.0);

$$circle( "POWER",       0.0, 0.0,  5.70,  0.0);

//----------------------------------------------------------------------------




//
//  Now the actual  3M  14 pin Horzontal Header  Geometry
//

$$create_component("M3_2x3_Horz_Header");

$$page(0.0, 0.0, 0.0, @mm, 0.0, 0.0, [0.0,0.0,'CO$M3_2x3_Horz_Header'] );

$$point_mode(@vertex);

$$attribute( "COMPONENT_HEIGHT", "", , @scale , , [ 10.0,  0.0 ]);

$$attribute( "COMPONENT_OUTLINE_OVERHANG", "yes");

$$attribute( "COMPONENT_LAYOUT_SURFACE", "both");




//  Setup the Component Placement Outline for this connector.

$$initial([   13.60,   5.00 ], , @nosnap );
$$terminal([ -13.60,   5.00 ] );
$$terminal([ -13.60,  -2.54 ] );
$$terminal([  13.60,  -2.54 ] );

$$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale );




//  Setup the SilkScreen for this connector.

//  Silkscreen on the Top Side   start in NE corner and go CCW

$$template_line_style( @Solid );

$$initial([   10.30,  14.80 ], , @nosnap );
$$terminal([   6.40,  14.80 ] );
$$terminal([   6.40,  11.20 ] );
$$terminal([  -6.40,  11.20 ] );
$$terminal([  -6.40,  14.80 ] );
$$terminal([ -10.30,  14.80 ] );
$$terminal([ -13.60,   4.90 ] );
$$terminal([ -13.60,  -2.51 ] );
$$terminal([ -11.00,  -2.51 ] );

$$terminal([  -9.90,  -3.30 ] );
$$terminal([  -7.20,  -3.30 ] );

$$terminal([  -6.10,  -2.51 ] );
$$terminal([   6.10,  -2.51 ] );

$$terminal([   7.20,  -3.30 ] );
$$terminal([   9.90,  -3.30 ] );

$$terminal([  11.00,  -2.51 ] );
$$terminal([  13.60,  -2.51 ] );
$$terminal([  13.60,   4.90 ] );
$$terminal([  10.30,  14.80 ] );

$$path( "SILKSCREEN_1", 0.20 );


//  Pin #1 Arrows on the Top Side.

$$initial([  -2.62,  -5.30 ], , @nosnap );
$$terminal([ -3.62,  -3.00 ] );
$$terminal([ -1.62,  -3.00 ] );
$$terminal([ -2.62,  -5.30 ] );

$$path( "SILKSCREEN_1", 0.20 );


$$initial([  -2.62,   7.00 ], , @nosnap );
$$terminal([ -3.82,   9.70 ] );
$$terminal([ -1.42,   9.70 ] );
$$terminal([ -2.62,   7.00 ] );

$$path( "SILKSCREEN_1", 0.20 );


//  Reference Designator on the Top Side.

$$text( "SILKSCREEN_1", "^$ref",  0.0,  -7.5,  2.5, @BC, 0, 1.00, 0.20, "std", "None", 0.0, 0.0 );



//  And now some silkscreen on the Bottom Side

//  Pin #1 Arrow on the Bottom Side.

$$initial([  -2.62,  -5.30 ], , @nosnap );
$$terminal([ -3.62,  -3.00 ] );
$$terminal([ -1.62,  -3.00 ] );
$$terminal([ -2.62,  -5.30 ] );

$$path( "SILKSCREEN_2", 0.20 );


//  Reference Designator on the Bottom Side.

$$text( "SILKSCREEN_2", "^$ref",  0.0, -9.0,  2.5, @BC, 0, 1.00, 0.20, "std", "None", 0.0, 0.0 );


//  End of Silkscreen




//  Now define the Pins used on the 3M Horizontal Header


$$attribute( "COMPONENT_PIN_DEFINITION",     "1", , @scale , , [  -2.54, -1.27 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "1, M3_Norm_Signal_THD");

$$attribute( "COMPONENT_PIN_DEFINITION",     "3", , @scale , , [   0.00, -1.27 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "3, M3_Norm_Signal_THD");

$$attribute( "COMPONENT_PIN_DEFINITION",     "5", , @scale , , [   2.54, -1.27 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "5, M3_Norm_Signal_THD");



$$attribute( "COMPONENT_PIN_DEFINITION",     "2", , @scale , , [  -2.54,  1.27 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "2, M3_Norm_Signal_THD");

$$attribute( "COMPONENT_PIN_DEFINITION",     "4", , @scale , , [   0.00,  1.27 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "4, M3_Norm_Signal_THD");

$$attribute( "COMPONENT_PIN_DEFINITION",     "6", , @scale , , [   2.54,  1.27 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "6, M3_Norm_Signal_THD");



//  The two  Mounting Screw  Component Pins

$$attribute( "COMPONENT_PIN_DEFINITION",    "15", , @scale , , [ -8.45,  0.53 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "15, M3_THD_SCREW_TERM");

$$attribute( "COMPONENT_PIN_DEFINITION",    "16", , @scale , , [  8.45,  0.53 ]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "16, M3_THD_SCREW_TERM");



