Author Topic: header pin outs  (Read 3299 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
header pin outs
« on: December 31, 2018, 10:36:16 pm »
I notice that both male and female pin headers have the same pin numbering when viewed from the top. This means that when you rotate one 180 degrees to plug them together if it is a 2 row header pins 1 and 2 mate. Pins 3 and 4 mate and so on. I take it this is normal? Presumably there has never been any standardisation.
 

Offline DerekG

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: nf
Re: header pin outs
« Reply #1 on: January 01, 2019, 12:47:03 am »
I take it this is normal?

I presume you are talking about IDC connectors as used in older desktop computers?

Originally this was a big problem as you could connect HDD & CD burners etc "backwards".

Eventually "most" manufacturers learnt the hard way (product returned due to be burnt out etc) & they moved over to a key-way moulding (so the connector could only be pressed in the correct way around).
I also sat between Elvis & Bigfoot on the UFO.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: header pin outs
« Reply #2 on: January 01, 2019, 09:46:51 am »
I'm talking any old header. Yes there is no difficulty in plugging them in upside down but I am referring to the lack of standardisation in that pins will never mate with a pin of the same number.
 

Offline Wendy_Preston

  • Contributor
  • Posts: 46
  • Country: gb
  • Content Marketing Specialist for Harwin
    • Harwin.com
Re: header pin outs
« Reply #3 on: January 10, 2019, 02:11:26 pm »
I can only assume that this has effectively occurred because these no-frills pin headers (like our M20-9981046 for instance) have nowhere on them for polarisation. Also they are designed to be cut down, so no way of marking a number one contact on the housing.

What you gain in flexibility you lose in design-for-assembly, I guess. These pin headers - in this same design - have been around far far longer than I have been at Harwin (23 yrs and counting) - and we've never promoted a pin-numbering system for these connectors because of this.
Content Marketing and website technical content for Harwin (ex Design Engineer) - contact me on webmaster@harwin.co.uk.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: header pin outs
« Reply #4 on: January 10, 2019, 03:28:52 pm »
Well it is just that even with no polarisation after single rows you have to be careful with your design. If all female headers had the numbering reversed to the male headers it would word if they are mated the right way around. With no polarisation features each PCB designer is free to do as the please and I will in future be differentiating male and female so that when mated the numbers coincide and it makes designing the two halves easier. What the manufacturer chooses to call each pin is of no concern to me as they are not polarised.
 

Offline donotdespisethesnake

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: gb
  • Embedded stuff
Re: header pin outs
« Reply #5 on: February 02, 2019, 09:48:47 am »
There is no standard, since there is no standard way to use these connectors.

It's down to topology, and that depends on your design. There are several ways to do board to board connectors, some of these involve "flipping" the connector on one end, some don't. If you use a ribbon cable, the wiring is probably 1-1, if you use a board stacker, then you probably need to flip - unless you have a bottom entry connector.

Relying on the manufacturer to number the pins "correctly" is not a good option. But don't worry, even professionals get it wrong . We just had a little interface board come back and ALL the connectors are flipped! What a mess of wiring that created :palm:
Bob
"All you said is just a bunch of opinions."
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21671
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: header pin outs
« Reply #6 on: February 02, 2019, 04:21:51 pm »
Shrouded headers usually have a consistent pinning convention; check the datasheet.  (Sometimes the polarity mark can be hard to see, or is buried in a tiny note.)

On the PCB footprint, the convention is usually with the key down, pins in horizontal row, pin 1 bottom left.

Breakaway headers are completely arbitrary and it's up to you to check that the pins are being used consistently.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17814
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: header pin outs
« Reply #7 on: February 02, 2019, 05:17:43 pm »
Well i am working on my own system now with opposite pin rows for male/female so that the numbers will match.
 

Offline jpanhalt

  • Super Contributor
  • ***
  • Posts: 3471
  • Country: us
Re: header pin outs
« Reply #8 on: February 02, 2019, 05:29:27 pm »
For breakaway headers, I add an index pin.  They come as a strip.   Cut one off and insert it in a female contact. Then remove or cut the mating pin.   Of course, don't use the center pin, if there is one.
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3353
  • Country: nl
Re: header pin outs
« Reply #9 on: February 03, 2019, 06:36:06 pm »
I find it hard to imagine that there are connectors in which the Male pins are not supposed to match with the corresponding Female pin numbers.

What software and connector type do you have in mind?

There can be a difference between the representation of how a symbol for a connector looks on a schematic and the location of the pins on the Footprint of the PCB.
Are you sure you are not mistakingly looking at mirrored representation of the connectors?

I once had to cut the wires of an 14 pin IDC cable with a knife and swap the even and odd wires because they layout of an LCD connector was designed to be inserted in the front of the LCD, but there is of course a frontpanel in front of the LCD, so the IDC connector was soldered into the back of the LCD.
Shit like that happens all the time. It seems to be an intrinsic part of life as we now it.

There are some rare hermafrotitic connectors, where any can be mated with any. Those were used in old IBM computers (Was it the 360?) and I think also with GPIB, but I'm not sure.

Lately USB-C is gaining popularity. Not hermafroditic, but plugs can be rotated 180 degrees.
The power pins are symmetrical over the design, also because multiple power pins are good for reliability and current handling capability. Current computers have enough smarts to figure out how the signal wires are connected.

But for ordinary connectors, if M & F pin numbers don't match then probably (& in this order):
1). You made a mistake.
2). There is a mistake in your libary symbols.
3). Something weird and/or unsual is going on, and it is intentional (for a good reason?).
 

Offline bson

  • Supporter
  • ****
  • Posts: 2269
  • Country: us
Re: header pin outs
« Reply #10 on: February 08, 2019, 05:52:32 pm »
If all female headers had the numbering reversed to the male headers it would word if they are mated the right way around.
Well, FWIW they do match up in KiCad v5.  I imagine in any other layout tool as well if you judiciously use the right footprint for the gender.

 
« Last Edit: February 08, 2019, 05:54:26 pm by bson »
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: header pin outs
« Reply #11 on: February 14, 2019, 01:30:29 pm »
and then you stack board on top of each other ( male bottom mounted , female top mounted) and it still screws up.

i use the same pin order as if it would be a box header. pin 1 is clearly indicated on the silkscreen
it is up to the board designer to flip them correctly.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf