0
\$\begingroup\$

I'm designing a 2 layer PCB, that contains an ESP32, a LoRa module, a GSM module, and some connectors to command relays.

The top & bottom layers are both ground planes, and I have 5V & 3.3V power rails.

Is ground stitching required for this board, and if yes, where should I place GND stitching vias?

I would appreciate any feedback about routing.

enter image description here

\$\endgroup\$
2
  • 3
    \$\begingroup\$ Ground stitching vias are irrelevant if you don't have ground flooding both layers. \$\endgroup\$
    – The Photon
    May 6, 2022 at 14:25
  • \$\begingroup\$ I would recommend a 4-layer board, it’s easier to design right. And use like SIG-GND-GND-SIG stackup. Route power a little bit wider, at least 20 mils. The GSM pcb is power hungry. Maybe use some extra caps. The use of GND stitching is almost always a plus, also use GND via’s next to signal via’s. \$\endgroup\$
    – RemyHx
    Nov 4, 2022 at 13:02

3 Answers 3

1
\$\begingroup\$

I would like to say that GND vias are always necessary

It is recommended to place GND vias all around the PCB, this allows to have a uniformity of the GND plane.

It is also recommended to place a via near each component pad connected to the GND

\$\endgroup\$
1
  • 1
    \$\begingroup\$ It looks like this board has mostly through hole components. Adding ground vias next to each ground pin would be redundant. \$\endgroup\$
    – The Photon
    May 6, 2022 at 14:22
1
\$\begingroup\$

Before worrying about via stitching I would strongly recommend to remove traces on the bottom layer to an absolute minimum to have an as solid as possible GND plane there.

I don't know what degrees of freedom you have for the placement of your components and pin assignment, but at first glance this board appears to be solvable with almost no traces on the bottom layer.

Personally I most probably won't even bother with pouring the top layer with GND, if there is a reasonable solid GND plane on the bottom.

Since there appears to be some wireless stuff going on, you should make sure that there is no copper obstructing any antennas, of course.

\$\endgroup\$
0
\$\begingroup\$

I would especially recommend stitching vias where traces/buses intersect, especially when they do so at a large distance from any other return connection. Three near the crossing is the minimum to connect all four sides together (note that each bus cuts a slot in each layer, so there are four segments in question, at least locally), and four has nice symmetry.

The critical part is having a consistent impedance environment for a signal (trace) running over ground plane / within ground pours. The amount of consistency required is actually almost irrelevant, on a board this size, and using normal LVCMOS speed signals that most MCUs are capable of, for signal quality purposes -- but the concepts are what's important, and this has real consequences for EMC even into lower frequencies.

So, the important parts, don't cross a trace over a slot in the plane (which is why bus crossings require vias), keep the impedance reasonably similar (basically to say, keep the trace width, height over / distance to ground similar over the route), avoid large stub lengths, ensure short and wide ground-return paths (again, avoid slotting up GND!). And avoid islands, either by stitching them to GND, or removing them by area or lack of connectivity.

\$\endgroup\$

Your Answer

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

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