43
\$\begingroup\$

I'm new to KiCAD. I see symbols for GND, GNDA (analog), GNDD (digital), GNDPWR, GNDREF, etc.

Is there any significance aside from "schematic documentation"?

I was expecting that maybe the reason for the multiple symbols is that the PCB layout tool can use those to somehow enforce separation of ground planes? But it instead seems buggy in the sense that not only the ratsnets connect GNDDs and GNDAs together: in the PCB, it actually renames all the GNDD pads to GNDA !!!

Am I missing something, or doing something wrong?

\$\endgroup\$
4
  • 2
    \$\begingroup\$ I think this is more for schematic reference purposes (keeping the concepts clear when designing the circuit) rather than physical layout purposes. Doubt KiCAD understands grounding concepts at all. \$\endgroup\$
    – rdtsc
    Commented Aug 27, 2018 at 12:11
  • 2
    \$\begingroup\$ If your circuit connects them then they will become renamed and joined. If your circuit uses 0 ohm links to connect them then they won't be netted together. \$\endgroup\$
    – Andy aka
    Commented Aug 27, 2018 at 12:11
  • 1
    \$\begingroup\$ Oh, that explains it — I actually had placed a GNDD and GNDA next to each other in a corner, and connected them. It's too bad; I wouldn't want to connect the two GND planes through a 0-ohm jumper; and if I leave them disconnected in the schematic, then pcbnew will report a shorted net when I join them at a given point. I can think of "tricks" to accomplish this; e.g., keep GNDD and GNDA throughout all the routing, and only when the layout is "final", go back to the schematic and connect the GNDs. Is this a commonly used/recommended trick? \$\endgroup\$
    – Cal-linux
    Commented Aug 27, 2018 at 12:25
  • \$\begingroup\$ @Cal-linux I have used that exact method before with success in KiCad 4. I imagine version 5 is no different. \$\endgroup\$ Commented Aug 27, 2018 at 13:28

1 Answer 1

78
\$\begingroup\$

There are a couple question here, so I'll start with the various grounds.

Kinds of Ground

  • GND Standard ground symbol. If you don't have a specific use for the other symbols, then just use this one. More often than not, separating grounds will lead to trouble, so if you don't know that you need to do it, then avoid it altogether.
  • GNDA This is your "analog" ground. Typically used for referencing the analog inputs in an analog to digital (A/D) converter. Note that while the symbol is the same as the plain GND, the label name is different and thus they will not connect by default.
  • GNDD This is your "digital" ground. This is the other side of the A/D converter. It provides the reference for your digital outputs.
  • GNDPWR This is a "power" ground or chassis ground. This symbol is used in circuits to represent the local reference potential. Usually, the ground of the metal case that holds your circuit. It can indicate that there is a substantial potential difference between this ground and the earth ground or structure in which the chassis is mounted. Note that IEC and ANSI both use 3 prongs in their symbol but KiCad uses 5.
  • EarthGND Earth ground. Also known as reference ground or "real" ground. This usually represents the 0 voltage of your building. If you use this symbol in your schematic, you are saying that the point is meant to connect directly to some physical piece of metal in your room that is connected to the actual dirt. In a standard 220V AC power cord, this would be your third (green) wire. N.B. This does not mean that this voltage is clean or steady or any other variation of perfect. It only indicates that there is no circuitry between it and the dirt outside.
  • GNDClean This symbol (IEC 60417 #5018) represents a "clean" ground. In this sense, it means a specially-designated ground that is protected from noise sources to ensure correct operation of sensitive equipment.
  • Protective Ground This symbol (IEC 60417 #5019) represents a terminal that is designated for protection against external shock in case of a system malfunction. Note that the symbol name is "protective" and not "protected". That is to say, things connecting here are meant to protect you and not the items connected to this terminal.

Grounds in KiCad

To examine grounds in KiCad, let's open the standard GND symbol in the Symbol Library Editor.

GND Symbol

There are a few things to note here. First, all of the grey text are marked "Invisible" in the schematic, so you will not see them by default when you place the symbol.

  • The #PWR? is the symbol reference. By prefixing it with #, the symbol is not added to your Bill of Materials. The ? is not part of the reference string (you will not see it when editing the reference). It is a placeholder to denote the unique number that will be assigned during schematic annotation depending on the other #PWR symbols in your schematic.
  • The pin on the symbol is pin number 1 and is labeled GND. Because it is an invisible power input pin, KiCad will create a global label for it. The global label will be named GND as that is the name of the pin.
  • In the case of GNDA, the invisible power input pin is labeled GNDA. and creates a new global label with that name. These do not connect between grounds. So, you can have GNDD and GNDA in your circuit and they will be seen by KiCad as distinct nets.

Connecting Grounds

If you use multiple grounds, it is usually (read: always!) necessary to connect them together at some point. If you plan on disconnecting the grounds at some point, you might use a 0-ohm resistor or inductor to connect them. However, most applications will want to simply isolate the current loops in a section of the board and then want a single, common connection point that is printed on the circuit.

In KiCad, these are called "Net Ties". You can find them in the common v5 libraries under "Device". They look like this:

Net Tie

And the standard footprint looks like this:

Net Tie Footprint

Note that you can adjust this footprint to your liking. The "magic" of a net ties is that there needs to be a polygon on the F.Cu layer that overlaps the two SMD pads. This allows you to connect to distinct nets, e.g. GNDA and GNDD at a specific point in your circuit while still maintaining separate nets and ground planes.

Connecting Nets

If you connect the two ground nets together with just a wire like this:

Single Net Connection

Then, KiCad will recognize this as a single net with two labels (GNDA and GNDD). In your netlist and by extension pcbnew, KiCad will choose GNDA for the single net label because it is alphabetically first.

Netlist of Joined nets

If you want to keep the two nets distinct in your layout and only connect them with a net tie, then you need to set up the connection in your schematic to look like this:

Net Tie Schematic

Placing the net tie between the two nets tells KiCad that you want two nets with a single connection between them.

Netlist of Nettie

\$\endgroup\$
5
  • 14
    \$\begingroup\$ I know I'm supposed to just mark the answer as accepted, instead of thanks or other similar replies. But I have to comment on this one: this has to be one of the most useful, complete, and illuminating answers I've gotten in e.sxchg.com !! (I guess I'm also happy that I find this such a killer feature in KiCAD, and it seems to be in the "best kept secret" category --- I don't recall seeing this in any of the tutorials or getting started documents). Thank you so much for posting this detailed answer! \$\endgroup\$
    – Cal-linux
    Commented Aug 28, 2018 at 12:49
  • \$\begingroup\$ Agree! And, nice to see this answer has been cross-ref'ed from Kicad Info, discussing "Electrical type of schematic symbol pins": forum.kicad.info/t/… \$\endgroup\$
    – SusanW
    Commented Sep 12, 2021 at 19:50
  • \$\begingroup\$ I know SE frowns upon +1 comments, but I need to say I logged in just to upvote this reply. This is simply A++. Thank you. \$\endgroup\$ Commented Nov 25, 2021 at 20:57
  • \$\begingroup\$ Wouldn't this mean that you've both the net tie, and the 2-pin header (J101) on your PCB? \$\endgroup\$
    – Neppomuk
    Commented Jan 1, 2022 at 22:47
  • 1
    \$\begingroup\$ @Neppomuk Yes.. \$\endgroup\$
    – Seth
    Commented Jan 2, 2022 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.