Author Topic: Can someone please check my pcb for any errors or improvements?  (Read 2937 times)

0 Members and 1 Guest are viewing this topic.

Offline EinShides

  • Thread Starter
  • Posts: 5
Greeting everyone,
As the title says I was wondering if there is anyone who is willing to review my first PCB to point out any errors or improvements as I want to make sure things would work before getting it fabricated. Any advice is appreciated.
Thanks in advance.


kicad file: https://drive.google.com/file/d/1XUQPqQBZQ1Ph9lHilUNkSPab7ZEp9YVA/view?usp=sharing

Offline Keyboard_Warrior364

  • Posts: 41
  • Location: Serbia
  • Instagram: armourgrade
Re: Can someone please check my pcb for any errors or improvements?
« Reply #1 on: Sun, 26 April 2020, 09:26:00 »
May I suggest that you also post pictures of your schematics and pcb file if possible. Some people don't use kicad and if I'm correct, even the ones that do use it, might have trouble importing the file if they have a different version of kicad than you.

Offline EinShides

  • Thread Starter
  • Posts: 5
Re: Can someone please check my pcb for any errors or improvements?
« Reply #2 on: Sun, 26 April 2020, 14:53:38 »
Thank you for the suggestion! I have posted the pictures in the drive link below. Hopefully they are clear enough.

Pictures: https://drive.google.com/drive/folders/1i-8-KGpOeL8QCm2uxFNCrDSU_U9HrdgW?usp=sharing

Offline Hadi

  • Formerly eqtri
  • Posts: 104
  • Location: Oregon
Re: Can someone please check my pcb for any errors or improvements?
« Reply #3 on: Wed, 29 April 2020, 01:16:29 »
I definitely need to spend more time reviewing but, based on your screenshots, you should make the VCC and GND routes wider, .3 or .4mm at least. I'd also recommend moving R1 and R3 down a little to prevent any issues with the crystal. Enclosing it in a ground plane couldn't hurt, either. Otherwise, the schematic seems to be pretty identical to reference designs lying around. If you're ordering from a specific site or manufacturer, have you checked their specific design rules? 

Offline Applet

  • Posts: 487
  • Location: Sweden
Re: Can someone please check my pcb for any errors or improvements?
« Reply #4 on: Wed, 29 April 2020, 02:28:21 »
Just very quick thoughts from a quick look:
  • Is your GND-net called +5v? Something may be wrong here. Crystal should not be connected to +5
  • USB-data traces should be routed differentially.
  • I'd try and improve ground, maybe add a ground fill around MCU and crystal.

Offline EinShides

  • Thread Starter
  • Posts: 5
Re: Can someone please check my pcb for any errors or improvements?
« Reply #5 on: Wed, 29 April 2020, 16:32:20 »
Thank you both for taking the time to review the files. If you don't mind I have a few updates to show and some questions to ask.

Just very quick thoughts from a quick look:
  • Is your GND-net called +5v? Something may be wrong here. Crystal should not be connected to +5
  • USB-data traces should be routed differentially.
  • I'd try and improve ground, maybe add a ground fill around MCU and crystal.


  • My GND-net was indeed called +5v for some reason. I fixed it now.
  • Could you possibly elaborate on how differently USB-data traces should be routed. Sorry, I'm a noob at this :P.
  • I did my best to improve the ground, I don't know if this is sufficient enough though (see pictures)

I definitely need to spend more time reviewing but, based on your screenshots, you should make the VCC and GND routes wider, .3 or .4mm at least. I'd also recommend moving R1 and R3 down a little to prevent any issues with the crystal. Enclosing it in a ground plane couldn't hurt, either. Otherwise, the schematic seems to be pretty identical to reference designs lying around. If you're ordering from a specific site or manufacturer, have you checked their specific design rules? 

I took your advice and made the VCC and GND trace wider to 4mm. I don't really quite get what you mean by moving R1 and R3 down. Do you mean moving it closer to the MCU?

Anyways I hope that the changes I've made solve most of these problems. Also, if anyone could check the files again, it would be greatly appreciated. Thanks again for your time.


241076-0
241078-1
241080-2
241082-3
241084-4
241086-5

Offline Hadi

  • Formerly eqtri
  • Posts: 104
  • Location: Oregon
Re: Can someone please check my pcb for any errors or improvements?
« Reply #6 on: Wed, 29 April 2020, 21:18:00 »

I took your advice and made the VCC and GND trace wider to 4mm. I don't really quite get what you mean by moving R1 and R3 down. Do you mean moving it closer to the MCU?

Anyways I hope that the changes I've made solve most of these problems. Also, if anyone could check the files again, it would be greatly appreciated. Thanks again for your time.


So, this recommendation may be overkill, but those routes directly beneath your crystal can cause interference. I would divert any traces around, even if they are on other side of the board, and enclose the crystal within a ground plane for additional protection. 

Offline Hadi

  • Formerly eqtri
  • Posts: 104
  • Location: Oregon
Re: Can someone please check my pcb for any errors or improvements?
« Reply #7 on: Wed, 29 April 2020, 21:37:02 »

(Attachment Link)


Also, I think you're going to need to reroute GND now.

Offline EinShides

  • Thread Starter
  • Posts: 5
Re: Can someone please check my pcb for any errors or improvements?
« Reply #8 on: Thu, 30 April 2020, 17:35:35 »
So, this recommendation may be overkill, but those routes directly beneath your crystal can cause interference. I would divert any traces around, even if they are on other side of the board, and enclose the crystal within a ground plane for additional protection.

Thank you for the recommendation! I've moved the tracks but I don't know if this is sufficient enough. Also when I do the DRC check it says that the VCC pads and GND pads on the MCU are too close to the other pads (see markings in the picture). If I change the trace width to 0.3mm instead of 0.4mm the problem disappears. Should I be concerned about this?

241177-0

Offline Hadi

  • Formerly eqtri
  • Posts: 104
  • Location: Oregon
Re: Can someone please check my pcb for any errors or improvements?
« Reply #9 on: Thu, 30 April 2020, 17:40:00 »
So, this recommendation may be overkill, but those routes directly beneath your crystal can cause interference. I would divert any traces around, even if they are on other side of the board, and enclose the crystal within a ground plane for additional protection.

Thank you for the recommendation! I've moved the tracks but I don't know if this is sufficient enough. Also when I do the DRC check it says that the VCC pads and GND pads on the MCU are too close to the other pads (see markings in the picture). If I change the trace width to 0.3mm instead of 0.4mm the problem disappears. Should I be concerned about this?

(Attachment Link)

Any design rules are subject to the capabilities of your manufacturer. Do you have an idea of how you'll be ordering and/or assembling your PCBs?

Offline EinShides

  • Thread Starter
  • Posts: 5
Re: Can someone please check my pcb for any errors or improvements?
« Reply #10 on: Thu, 30 April 2020, 17:44:57 »

Any design rules are subject to the capabilities of your manufacturer. Do you have an idea of how you'll be ordering and/or assembling your PCBs?

I was thinking either pcbway or OSH park.

Offline Applet

  • Posts: 487
  • Location: Sweden
Re: Can someone please check my pcb for any errors or improvements?
« Reply #11 on: Mon, 04 May 2020, 02:24:21 »
Could you possibly elaborate on how differently USB-data traces should be routed. Sorry, I'm a noob at this :P.
USB data is sent differentially. In short, the combination of the two signals (D+ and D-) in the two datalines is what produces the USB data, so you need both to be timed right for the combination to be correct and you need to take care when routing these two signals. Take this with a grain of salt tho, since the USB-speed is pretty low for the MCU, it is not super critical. It's a different matter if doing high speed design, like USB3, SATA, memory etc.

Check this video:

If you want to read further, I can recommend this document: https://www.ti.com/lit/an/spraar7h/spraar7h.pdf?ts=1588577320747

I'd recommend adding gnd-vias adjacent to the crystal and decoupling capacitors. Regarding the rule violations, it should be fine, best is to update kicad rules to reflect the manufacturers capabilities.
« Last Edit: Mon, 04 May 2020, 02:48:20 by Applet »