First pass at laying out the PCB: Appreciate some destructive criticism

Hi all, i’ve just made a first pass at laying out the board. After many hours my brain is hurting but i’m really enjoying it. Just want to take a step back and be roasted for my terrible decisions i may or probably have made along the way so far.

Basically i want to know if i’m doing anything so wrong/bad that it makes you cringe and want to look away.

Its getting better hour by hour as i constantly iterate and refine id love to know any areas i’m just failing at life in.

Overall it looks ok.

I see at least 3 vias that are unnecessary (they are only connected on a single layer and are not GND nor +5V)

For more i would need to look at the whole project. That is, before the topic gets closed because it is off topic.

You have GND and +5V via’s going into nowhere visible, so I guess it’s a 4 layer PCB with a GND and a power layer, and that’s good.

I don’t know your track width, but thinner tracks for signals are generally better. Thicker tracks just add capacitance, and that increases power consumption. a 0.2mm track can already handle 700mA (with a 10 degree temperature rise) The usual limit is what your PCB manufacturer can manufacture (and for what price) and it’s generally advised to make tracks a bit thicker as the minimum they post on their websites.

On the IC on the left side, you have 4 tracks going down, then to the right and then going up again, all next to each other. If you do the horizontal part in a different order, then you spread the capacitive coupling between the tracks, and this spreads crosstalk. A bit of crosstalk does not matter much, but if it’ s too much, it can lead to problems. and last. in the bottom right corner there is a very long row of via’s. All those via’s make a big cutout in the GND layer, and that is not good. It’s much better to either spread the via’s more so GND can stay between them all, or make small groups of via’s.

Also, when you have a GND and a power layer, you create a discontinuity in the impedance when you change the layer of a signal with a via. For all signal content above approx 20kHz, the return current follows the path of least impedance, and impedance is dominated by inductance, and that is loop area. As a result, the GND return path will be directly below (or on top of) the signal track. And to make that possible, it’s better to have 2 GND layers, and route power only where needed (with generous tracks, 2mm wide or so, to minimize voltage drop).

Thanks, i thought it would be ok to post this in the projects category, i can delete if such things are not allowed :slight_smile:

As a first attempt, I’ve seen worse.
Space parallel tracks as much as possible where there is no space constrains. And do yourself a favour, use a 4 layer with ground and power plane. There is a recent post that explain how an why.

Thankyou so much for the feedback, it is most appreciated.

Yup, top layer, ground plane, power plane then bottom signal layer

I don’t know your track width, but thinner tracks for signals are generally better. Thicker tracks just add capacitance, and that increases power consumption. a 0.2mm track can already handle 700mA (with a 10 degree temperature rise) The usual limit is what your PCB manufacturer can manufacture (and for what price) and it’s generally advised to make tracks a bit thicker as the minimum they post on their websites.

Track width is set at 0.25mm except where its power and ground which ive increased to 0.5mm

If you do the horizontal part in a different order, then you spread the capacitive coupling between the tracks, and this spreads crosstalk

Ah i see what you mean, thankyou, ill flip them over.

All those via’s make a big cutout in the GND layer, and that is not good. It’s much better to either spread the via’s more so GND can stay between them all, or make small groups of via’s.

This makes sense, that whole bottom area need a lot of tidying anyways so ill spread them out when i do.

I am also guessing this is a PCB with relatively slow logic. If you want to do fast logic, such as DDR3 or DDR4 then you also need to do things like controlled impedance and delay matching.

32mhz is the fastest signal on the board.

The question is more about rise time than digital frequency. The digital frequency is independent of the rise time. Well you need a minimum edge steepness for a given frequency but the steepness can be way higher than you would assume from the digital frequency.

And 32 mhz ? Are you sure? What is that unit even? 32 mHz ? (0.032 Hz) Or 32 MHz ? (32’000’000 Hz)

1 Like

Since this forum has an explicit category for projects done using KiCad, I would imagine this post is OK. But what do I know…

Also, +1 for “destructive criticism”.

1 Like

Traditionally KiCad screenshots have bribed the moderators for starters, and the attached project does the rest.

With a bunch of milli Hz you’re still pretty close to DC. But it is not the clock speed that counts, but the steepness of the signal flanks that deterimines the frequency content of the signals, and thus the quality of the necessary PCB layout. for this reason, a lot of modern logic, from uC’s to FPGA’s have configurable I/O win which the drive strength is adjustable.

1 Like

“Use this category to talk about projects, but try to mention how KiCad is playing a part in the design.”

That would be a maybe.

A post such as: “I want to design XXXX using Kicad, how should I start?” should receive the reply " Show us what you’ve done in Kicad" first. If nothing, close with a link to “Beginners Guide”.

A post with a Kicad schematic and/or PCB with a “what do you think of this?” should pass scrutiny.

I generally think that clear electronic discussions can be closed as there are probably better places for them. But PCB related discussions, even not strictly based on KiCad, in my opinion should have place at forum as learning to use KiCad is directly connected with learning to design PCB.
During last 2 days I was wondering if my discussion about DCDC converter design started with ‘Are you sure’ in this post:

fits into the forum topic.
The discussion of which way AC signals in DCDC flow is strictly related to how PCB should be designed - which connections are critical and which less critical. And even it is not related to KiCad I think it is helpful to users learning KiCad. I am still learning KiCad and that discussion gave me some new knowledge - I will look little differently at routing DCDC converters.

My 2 cents:

  1. At top left of picture. If you have +5V at inner layer than pin 22 connection to C1 is not needed.
  2. It looks that there are enough space to have tracks between pads of that IC on the left. not sure, but may be it can be helpful.
  3. Top left pin of the IC in the center looks being connected to +5V (I see connection line). If you have +5V layer then what for is that pin routed right and then down out of picture. It should be connected as that connection line shows and nothing more.
1 Like

Here is a good read about “Transfer Via’s”, which are vias between GND layers used when signals go though a via and therefore their return paths get referenced to another GND layer. Especially the simulations in the video from Robert Feranec are enlightening of what sort of stuff happens with the current path though GND layers in a PCB.

From that video It should also become clear why 2 GND layers are preferred abov a GND and a power layer.

1 Like

Thanks for this, that is really helpful to understand what is going on.

So…If its a 4 layer board with 2 ground planes, where would the power go? on the top signal plane, sorry if i misunderstood the recommendation.

Ok another 5 hours and ive reworked it for the 5th time and i think its looking a lot better… Really enjoying Kicad, its helping me learn a lot.

So based on the article you linked to i should be splitting up this row of vias into say 3 groups instead of a solid block of them right?