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.
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).
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.
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)
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.
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.
At top left of picture. If you have +5V at inner layer than pin 22 connection to C1 is not needed.
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.
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.
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.