Electrical – Current loops of PCB design

circuit analysiscurrentpcb-design

I have designed a few PCBs, all of which have worked fine. I'm starting to get into some more complex designs, switching power supplies, etc.. I have a few questions related to proper power handling as it relates to current flow and current loops.

For the questions, I am referencing a 2 layer board. Bottom and top layer are GND pours, with very few signal traces on the bottom pour. Using this simple schematic as a reference:

simple schematic example

  1. The main supply voltage gets regulated to 5v. Where should the 5v trace connect to the circuit at? I assume at one of the two decoupling caps.
  2. Letting my assuming for number 1 be true, should I take all additional power traces from that point(this schematic doesn't show any other components, but if there was)? Similar to a star ground, but with 5v.
  3. So I know return current wants to flow under the original trace for high frequencies, does that apply for the LED?
  4. When the return current flows from the LED back to the IC GND, which GND pin will it flow to?

Best Answer

You need to put the bypass capacitors as close as possible to the power supply pins on the processor. If you are using an uninterrupted bottom layer ground plane (I assume surface mount given the -au suffix for the atmega328) assume the ground path is on the bottom and put a decent via very close to the ground side of each bypass cap. Ideally there should be a physical flow ground plane -> via -> bypass cap pin -> processor pin, all as short and wide as possible. Power should ideally be run in a star with wide traces but most complex boards end up a little more tree-like.

BTW, you'll need a current limiting series resistor for the LED and routing for the LED traces is generally pretty non-critical.