Rats Nest bypassing component

I’m learning both electronics and PCB making, I’ve been up to this all day now, I’ve set up an incoming 12v+ with a schottky diode and a capacitor and want to pass this power on to a microcontroller. The thing that puzzles me is why “ratsnest” suggests to bind 12v directly from incoming JST pin when I place it physically closer to the VIN pin in the PCB Editor. I mean, I’m asking because i’m probably doing a mistake somewhere and I dont want that to follow me down the path of my carrier.

If I move it away from that position the line from 12v pin goes away and is routed via the diode and capacitor.

I have tried changing nets, labeling nets, adding netclasses.


This is normal behavior. The main purpose for a schematic is to be human readable. If a human can’t read / verify the schematic, then making a PCB is only GIGO.

On a schematic things are drawn in a logical order by function, while on the PCB, the way currents run though the parts is important. There is no relation to the “connection order” on the schematic and on the PCB. The ratsnest is just a reminder that some connections in a net still have to be routed, and the ratsnest is just shown between the closest pins of a net.

In addition, watch out for those green wires over pins of symbols and the small open squares. They are unconnected wire ends, and are often an indication that KiCad does not recognize a connection.
image

1 Like

The ratsnest needs to be taken in its entirety - it’s just showing you how all those pins need to be connected electrically, but doesn’t take how you’ve laid out the schematic in to account.

The ratsnest display algorithm will show the nearest connection between items, but this doesn’t mean that connecting them in another way is wrong - that’s up to your layout decisions.

1 Like

Exactly what I needed to hear, i was suspecting it. Now I can move on :slight_smile: Thanks to both of you.

Thanks, I will, this was a quick setup to show my question.

Good catch! That wire is not attached to the +ve side of the capacitor. Check out ERC checks to help you catch unconnected pins! (From the Inspect->Electrical Rules Checker menu item).

Almost good, and that is why I added often in my previous post. :slight_smile: If you look at the ratsnest lines, you see that both terminals of C1 are part of the netlist.
In this particular case the attachment point of the pin is actually in the junction dot. If the pin was not connected you would see a round circle at the attachment point of the pin.

Another small tip:
PCB Editor / Preferences / Preferences / PCB Editor / Editing Options / Ratsnest [x] Show ratsnest with curved lines makes the ratsnest clearer on a crowded PCB. Increasing it’s line thickness is sometimes also beneficial.

Thankyou for the tip, I stumbled across the curved lines today. The ERC check did not catch the unconnected capacitor though!

Ah, it’s because (related to Paul’s comment) the unconnected element is a wire segment. We should probably catch unconnected wire stubs in ERC.

New ERC check added; will be in v9 (or nightlies if you’re brave):

The rest seems to have been solved, but I question your power connections (bottom left in your schematic).
First, attaching a power symbol to a connector in that way is… exotic.
Second, is -12 V really the same as GND? You need to make up your mind (it could be correct, but is unusual).

If you zoom in, those power symbols are indeed not connected. (This isn’t a bug).

Don’t do that.

Schematics are supposed to be clear and self-explanatory. Doing something “clever” is rarely a good idea.

I’m also not so sure whether an arduino nano would survive 12V (or even 24V if you use the +/-12V on the connector).

Maybe it’s one of those newbie misconceptions, if the positive terminal is +12V, well then the negative terminal must be -12V, yeah?

12V is within range of the Nano’s power supply input. 24V is “right out!” as Monty Python puts it.

Without a doubt a newbie misconception. I have more coding skills than electronics and schematics.

Is this correct ?

One tip for clear readable schematics: voltages drop from top to bottom, so your +12V symbols should point up and be above the ground symbols. Second: signal flow is from left to right. So inputs are pointing to the left and outputs to the right. These are no fixed rules and not the best choice in every case, but you see it very often and it helps to grab the essenced of a design in a moment.
Besides that, if you use the diode as reverse current protection you should put a fuse or a resistor between the input and the diode, otherwise it is possible that the diode breaks as open and you still have the reverse voltage across you circuit and (probably) everything else still goes up in flames.

Like this?

Rotate you power input so that the pins are facing left and +12V pointing up and GND down and everybody will instantly know what’s happening :slight_smile:

1 Like

Also I’d rotate C1 and D1 so that they’re vertical next to each other (with the GND connections pointing down of course). Makes it clearer that they’re for smoothing and clamping the voltage.