Skip to content

CONN-4 Connector without a ground pin

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

Data it needs: graph, part classes, rails.

Looks at. Connector pins, ground nets.

What it catches. A connector carrying signals or power with no pin on a ground net.

Why it matters. Every signal current needs a return path. Without a ground pin the return takes whatever path is left: the shield, the mains earth of two power supplies, the USB cable of the laptop that is also plugged in. The loop is large, the ground offset is undefined, and single-ended signals are read against a reference that moves. Even differential buses need it: CAN and RS-485 receivers have a limited common-mode range, and the 0 V wire is what keeps the nodes inside it.

Example. A CAN node with a 2-pin terminal for CAN_H and CAN_L only, on a machine where the nodes are powered from different supplies: the common mode drifts by volts as motors start, and the node drops off the bus. The de facto DE-9 pinout carries CAN_GND on pin 3 for this reason (our B135B uses DE-9 for CAN).

How to check. A connector (by designator class) whose pins carry nets but none of them a ground (NET-5); connectors that are isolated by design (relay contacts, a photo-MOS output, an isolated sensor input) are waived.

Fix. A ground pin next to the signals; for a differential bus the reference ground of the transceiver, or a documented reason why the other end provides it.

References. Wikipedia, CAN bus "Layers" (DE-9 pin 3 GND, the 0 V rail); Ott chapter 3 (grounding, §3.4 ground loops); Johnson & Graham §9.1 (return current through connector pins).

Test schematics

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

conn-4_no_ground

The test schematic conn-4_no_ground The test schematic conn-4_no_ground

  warning    CONN-4 #c9j    connector J1 carries /CAN1_H, /CAN1_L and no ground: the return current takes whatever path is left (a shield, another cable, mains earth)
                            part J1
                            fix: a ground pin next to the signals; for a differential bus the transceiver's reference ground, or a documented reason why the other end provides it

CONN-4 also fires on the test schematics of other checks: ana-10_opamp_feedback, ana-11_unused_channels, ana-16_gain_resistor_range, ana-22_bias_divider_caps, dbg-7_internal_pull, drv-7_half_bridge_snubber, name-11_negative_rail_names, short-12_pair_halves_tied, short-5_supply_pins_swapped, short-7_shorted_ios.