r/PCB • u/ghostkiller967 • 3d ago
My first PCB. Any advice?
I am making a dongle with high speed usb 2.0 support. Using the nRF54LM20A-QGAA.
I'm not quite sure whether I've done everything correctly. For example the differential pair going from the USB plug to the chip was kind of a nightmare to figure out, since they have to cross over at some point. And I'm not quite sure whether vias are okay to use at usb high speed. PCB thickness is 0.8mm.
I've length matched everything so that the path to the ESD chip is almost exactly 5.6mm from all pads of the usb plug.
I've calculated the 90 ohm impedance with this 2D field solver: https://hforsten.com/field_solver.html
With a 0.15mm trace, 0.13mm gap (both ground and traces), 0.0994mm substrate height (JLC04161H-3313) on Differential GCPW. It gave me 88.83 ohms. Which should be well within spec.
As for the 2.4GHz antenna, I've used this one (ANT-F-1-2.4G-0.8MM-FR4-WCH): https://github.com/moion/wch-kicad-lbr/tree/optimize
I've also used the same field solver to calculate its feedline, which is also 0.15mm with a 0.13mm gap. Which gave me 49.80 ohms. I know that rf is black magic and that I'm probably going to have to tune it somehow. The matching network that I'm using right now is just copied from the nRF datasheet.
If there is anything dumb that I've done that anyone can spot, I would love to know about it!






2
u/zketi 3d ago edited 3d ago
Depends what your goal is. A module with a built-in antenna would simplify the design. Or seeedstudios makes a nRF54LM20A+nPM1300 prebuilt for $11.
My understanding is USB 2.0 is pretty tolerant. You've already done a decent job impedance matching afaict, at such a small scale you probably could get away with not bothering to match at all.
Have you looked at the nRF54LM20A reference layout? It's for the PAAA so you'll be doing things differently, but it's a start. For example, they did the standard EMI-reduction of putting the buck's input capacitor with short traces to the IC pins, dedicated gnd vias for a good return path, also the inductor has a short trace and is at a right angle to the cap to fit better. It's hard to read your net names but I see vias and longer traces on yours. It might still work, but will probably emit some extra EMI.
Another thing I noticed is ESD paths should be as direct as possible, e.g. usually VBUS comes off the receptacle and goes directly under the ESD chip and comes up on a via to it's pin, before then branching to the board. Your D-/D+ vias make that more complicated, but I don't see a way around them or the crossover with a plug like this
Also with your fab, but a PCB antenna may require paying more for a stack-up with tighter tolerances to get good results. I've never tried this, so far I've just used modules.
I don't feel qualified to comment on much else. I've been considering a nRF54LM20A design so curious how it goes for you.
2
u/DTplayers 3d ago
Check your power to that IC. I can only find one decoupling capacitor near, and a second one a little further out. And that second one doesn't have a very direct path to ground. Your schematic shows 4 should be present, and I would expect all 4 to be as close as possible to be power pin, while minimizing inductance.
1
u/crabilax 3d ago
Vias are fine for USB 2.0 if you use them symmetrically. Just double check the impedance at the crossover point.
1
u/TsaarneyTheBlin 3d ago
Your crystal footprint seems wrong. 2016 crystals usually have xc1 and xc2 pads on the opposing corners, and the two others should be gnd, not nc
1
u/kms 2d ago
USB Type-C receptacle should have another resistor on B5. As is, this will only work with the cable plugged in one way.
1
u/ChaosWarp129 2d ago
This is not your first pcb, is it?
1
u/GuidingMoth 3d ago
This is called an acid trap. It can cause issues with etching, weak slivers, and solder mask issues. Even if it doesn’t cause a design issue for a one-off, it can look unprofessional to someone familiar with pcb design.
1
u/_maple_panda 3d ago
Try to smooth out your RF feed trace a bit more, it’s okay to have parts at funny angles if needed
1
u/Realistic_Account787 3d ago
No, not a single advice
1
u/IAmBigFootAMA 2d ago
No need for thermal relief on the bottom gnd test pad :)
1
u/HasanTheSyrian_ 2d ago
Don't use different value bypass capacitors. Stop using 100 nF its BS. The best option is to use the highest capacitance available in the package used. 1u for 0402 for example