Skip to content

CONN-17 Two identical connectors with incompatible pinouts

Severity Status Implementation
warning runs in better_erc easy, depends on NET-5

Data it needs: graph, part classes, rails.

Looks at. Connector types, nets per pin.

What it catches. Two or more connectors of the same type (same footprint or MPN) on one board whose pins put power and ground in different places, so a cable or module meant for one fits the other and meets the wrong voltages.

Why it matters. Users and assemblers go by the plug that fits. Two 4-pin JST connectors on a board, one for an I2C sensor and one for a UART module, look alike in the enclosure; if one has 5 V on pin 1 and the other GND, the first module plugged into the wrong one is back-powered through its ground or burns.

Example. A controller with two 4-pin JST-PH: J5 sensor (1 GND, 2 3V3, 3 SDA, 4 SCL) and J6 GPS (1 5V, 2 TX, 3 RX, 4 GND). The sensor plugged into J6 gets 5 V on its ground pin.

How to check. Group connectors by footprint or MPN; within a group compare where the power and ground nets sit (NET-5); flag groups where a power pin of one sits on a ground or a signal of another.

Fix. The same power and ground positions on every connector of a type, or different connector types (or keyings, or colours) for different functions.

References. Catalogue CONN-7, CONN-18; Johnson & Graham §9.9.

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only CONN-17 reports on it.

conn-17_look_alike_pinouts

The test schematic conn-17_look_alike_pinouts The test schematic conn-17_look_alike_pinouts

  warning    CONN-17 #0xa   J5 and J6 are the same connector (footprint Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical) with power in different places: pin 1: GND on J5, +5V on J6; pin 2: +3V3 on J5, /GPS_TX on J6; a cable or module meant for one fits the other
                            part J5, part J6
                            fix: the same power and ground positions on every connector of a type, or different connector types, keyings or colours for different functions
  warning    CONN-17 #wyd   J6 and J9 are the same connector (footprint Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical) with power in different places: pin 1: +5V on J6, GND on J9; pin 2: /GPS_TX on J6, +3V3 on J9; a cable or module meant for one fits the other
                            part J6, part J9
                            fix: the same power and ground positions on every connector of a type, or different connector types, keyings or colours for different functions