0
\$\begingroup\$

I would like to hear some comments on my first 2-layer board.

Specificaly if I should go with two grounds (one for 12 V, one for 5 V) or just one big ground plane.

Another thing is the layout of the capacitors for the 7805 [U1] (12 V to 5 V).

Should I add some more vias to the return path after the FET [Q1-3]? And/or generally add more vias? The idea of adding more vias is to have enough more contact between ground and Vcc.

Front Side Front Side

Back Side (ground plane) Back Side (ground plane)

Back side ("2" grounds) Back Side ("2" grounds)

Schematics Schematics

Basicly this uses a Tiny13A to turn some fans on and off.

\$\endgroup\$
10
  • 2
    \$\begingroup\$ Where's the schematic? \$\endgroup\$
    – Andy aka
    Commented Apr 2, 2021 at 14:50
  • 1
    \$\begingroup\$ We don't do "rate my crib"; we do technical questions and technical answers... it's good you asked about the vias. But we have no ideas what you intend these to do, so this is inanswerable. \$\endgroup\$ Commented Apr 2, 2021 at 14:50
  • \$\begingroup\$ Added schematics. Adding more vias should make the contact between ground and Vcc "bigger". \$\endgroup\$
    – ownedcore
    Commented Apr 2, 2021 at 14:59
  • 1
    \$\begingroup\$ You have so much free space I would just go nuts on putting stitching vias. Don't set the bar so high for your first design, have fun! \$\endgroup\$
    – crasic
    Commented Apr 2, 2021 at 15:17
  • 2
    \$\begingroup\$ Your nMOSes have wrong orientation \$\endgroup\$
    – Sim Son
    Commented Apr 2, 2021 at 15:58

2 Answers 2

1
\$\begingroup\$

There's nothing in your circuit that suggests the ground plane should be split at the 5 volt regulator; there are no external interfaces to 12 volt devices that require a really-good solid ground connection AND there is nothing particularly troublesome regards EMI hence, ground the J4 connector on the earth plane side like this and do a bigger fill: -

enter image description here

No need to route any ground on the top layer. The MOSFET drivers are 2N7003 devices and the sort of maximum continuous currents they can switch (115 mA on a very good day) is not going to pose a problem and upset your MCU if it shares the same ground plane.

And, as has been pointed out, you have your N channel MOSFETs upside down: -

enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ I really should use the right components in the schematics as well. The 2N70D2H was used as a placeholder, until I get me library updated and find the one I actually want to use. Still the point holds true. \$\endgroup\$
    – ownedcore
    Commented Apr 2, 2021 at 20:25
0
\$\begingroup\$

Nice job diving in to board design

Specificaly if I should go with two grounds (one for 12 V, one for 5 V) or just one big ground plane.

Typically you think about separating ground planes for high frequency digital vs lower frequency analog, not necessarily based on which supply. I'd suggest one big ground plane. You can do the mental exercise of "where is current flowing in the ground plane?" and see that the 5V and 12 V return take different paths, and may overlap a little bit - but cross talk between supply voltages isn't something to worry about in general (you more worry about "is this a high frequency return path that will have capacitive coupling/cross-talk with other signals or add noise on to the ground plane?"

Another thing is the layout of the capacitors for the 7805 [U1] (12 V to 5 V).

Looks good. Something you can think about is putting a start capacitor at each motor. This way at start-up they can draw the current from that cap rather than through traces since motors draw a lot of current at start up. Probably doesn't matter much in your design, but it's good practice. Some motor datasheets may tell you a suggested start capacitor, or you can estimate it based on peak/starting current draw and how quickly it reaches full speed. Current times time is total charge, and charge divided by voltage is capacitance, so start current times time to reach full speed divided by supplied voltage is a rough estimate for the order of magnitude of the capacitance needed.

Should I add some more vias to the return path after the FET [Q1-3]? And/or generally add more vias? The idea of adding more vias is to have enough more contact between ground and Vcc.

There are online calculators for finding how much current can flow through a via (stuff like: http://circuitcalculator.com/wordpress/2006/03/12/pcb-via-calculator/). You can check to make sure you have more than enough current when starting (peak current). If you have space, it doesn't cost you (much, if anything at all) extra to put more vias in.

\$\endgroup\$
2
  • \$\begingroup\$ The reason for me to think about "2" grounds was more on the current side. As the 12V as of now has ~1A and the 5V only like 50mA. So at least 10x. I just go with the a whole ground plane. Using the calculator one via should be able to handle 10A, thus only the increase of 11 °C might be an issue. \$\endgroup\$
    – ownedcore
    Commented Apr 2, 2021 at 20:16
  • \$\begingroup\$ Ok, for it. That's fine that they have different currents, 1A should be fine on the ground plane (you can find other calculators to do that). If the current through the ground plane was too much for one source, that would be a problem to look out for. Splitting the ground plane would make it worse both by reducing hear sinking of the current and reducing the area current could flow. \$\endgroup\$
    – KD9PDP
    Commented Apr 3, 2021 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.