While creating the schematic same error occurs twice in two different laptop

Getting same error twice


You have two GND nets: GND and GND1. And the same problem for both of them. So this is not the same error but two errors.
If KiCad behavior would depend on laptop at which it runs it would be vary bad about that program.
Read:

Your power symbols need a PWR_FLAG. Read in the manual how these work.

Can you please tell me where to add Power flag, i am beginner in kicad

Hi @saqibfrz
Please read @Piotr 's comments again, and I’ll repeat the link he supplied above.

https://docs.kicad.org/7.0/en/getting_started_in_kicad/getting_started_in_kicad.html#electrical_rules_check

Where at schematic sheet is your choice. I don’t like them so I don’t use them at all.
How to connect them? - you have an example in link I gave you. Open it and press PgDn once.

2 Likes

As your 5V battery provides power, you should probably place it on positive and negative terminal of the battery. The power flag check is just making sure you’re powering the board properly. KiCad is stupid and doesn’t know that the battery will output power, but it can’t be sure because your circuit could also charge or test the battery or whatever.

You should probably only use a single GND symbol, GND and GND1 will not connect.

1 Like

It’s very difficult to just ‘Tell’ someone where to put PWR_FLAG as it really does depend on the way you lay out a schematic and that’s a personal preference although there are general rules or ‘guidelines’ so it is best to read about PWR_FLAGS and fully understand them and it will make sense in the end :nerd_face:. Looks like your trying to make a simple amplifier of sorts and I think you are trying to keep signal and power separate perhaps?? anyhow this is good practice in some circuits but for this one it has just caused confusion :crazy_face: I would just stick to one ground net. If U1 is a regulator check it’s datasheet for correct input/output layout. Good luck with your project :smiley:
:mouse:

It’s relatively simple:
A Power Input needs to be connected to a Power Output somewhere.
The GND symbol is logically a power input.
Your circuit has no power outputs anywhere, so you get the error. The solution is to use the PWR_FLAG, this provides a power output for your GND power inputs.
A solution is simply to put it on the sheet like this:
pwr

A more advanced example is this one:

Note that the “+5 V” and “0 V” outputs have a PWR_FLAG, because they’re not connected to any power outputs.
“-5 V” has no PWR_FLAG. Why? Because pin 5 of the LM2660 is a power output.

Hope this helps.

PS: in your case, I’d place a PWR_FLAG on the positive and the negative terminal of your battery.

This whole PWR_Flag is just nonsense and antiquated.
Devs please sort this out or, at the very least, automate it or hide it away.

It is easy to hide it away if you want, by disabling that particular ERC in Schematic Setup.

It is not possible to otherwise “sort out” by changing the code: the whole point of this check is to nudge you (the designer) to check that your circuit is actually properly powered somehow, and mark where power is coming in. This can’t be automated, there is no way for software to know that you are connecting a certain connector to a power source. If this nudge (and this check) is not valuable to you, just disable it.

4 Likes

But there is a way for software to know that if IC is powered through ferryte bead from net with power on it than at power input pin of IC power is also present.

Not at the moment, because the software doesn’t know what a ferrite bead is, or that it represents a low-impedance connection between its two pins.

KiCad could add some way for you to flag that a particular ferrite bead is a low-impedance connection, but it would still be a step you the designer have to do, like PWR_FLAG.

But only once - when defining symbol in library.
But it is not my problem - I don’t use ERC.
But (one more but) it is hard to count how many times the PWR_FLAG subject has been covered here at forum. Once a month is probably too low an estimate.
If we divide new KiCad users into these who read “Getting started” and these who don’t read it than probably each one from second group came here with that question/problem.

It leads to think that may be considering to switch this check in ERC by default off is not the worst idea.
I just don’t know. The better would be probably to add flag in symbol that could mean that all pins of this symbol are connected together for DC and switch this flag on for all L symbols reducing the number of necessary PWR_FLAGs at schematics.

Connecting inputs to outputs is really hard, I know. Adding power on top needs AI, it seems. :rofl:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.