Is a double-sided PCB enough for a simple ESP32 sensor board, or should I go multi-layer?
Asked by stale_biscuit_03 ·
Building a little battery-powered sensor board around an ESP32 module (the kind with the PCB antenna already built into the module, not designing my own antenna). Couple of I2C sensors, a fuel gauge IC, that's basically it. Everyone online seems to default to 4-layer for anything with wireless on it and now I'm second-guessing whether double-sided is actually going to be a problem here or if that's overkill for something this simple.
Don't want to over-engineer a board that's genuinely this basic, but also don't want to find out the hard way that 2 layers wasn't enough.
2 Replies
For what you're describing, double-sided is genuinely fine. The "wireless always means 4-layer" advice is really about boards doing their own RF design — discrete matching networks, custom antennas, tight RF layout tolerances. You're using a pre-certified module with its antenna already on the module itself, so there's no RF layout to get wrong at your end beyond giving the module's antenna section clearance.
A couple I2C sensors and a fuel gauge is low pin count, low routing density, and low current — exactly the profile double-sided handles comfortably. Don't add layers you don't have a routing-density or signal-integrity reason for; see our layer-count comparison for where the actual line sits.
One thing I would do on 2 layers here: keep your ground copper as solid and unbroken as you can manage under and around the module, even without a dedicated internal ground layer — gives you a bit of the same return-path benefit a 4-layer board gets "for free."
One addition specific to the module itself, separate from the general layer-count question: even with the antenna pre-certified on the module, the module manufacturer's datasheet will specify a required clearance ("keep-out") zone around the antenna section — no ground copper, no other components, sometimes no copper on either layer at all, directly underneath it. This applies regardless of whether you're on two layers or four.
Skipping that keep-out is one of the more common ways a design using an otherwise pre-certified, "should just work" module ends up with degraded range in testing, and it has nothing to do with layer count — it's worth checking against your specific module's datasheet figure before finalising placement, not assumed from a general rule of thumb.
Related Discussions
Best 4-layer stack-up for a board with both analog and digital circuitry?
Spinning up a board with an STM32 doing the digital side and a precision analog front end (instrumentation amp into an ADC) reading a low-le
ESP32 keeps dropping Wi-Fi after 20–30 minutes in deployed location — reconnect loop doesn't always recover
Having a frustrating one. Built an ESP32 environmental monitor (SHT40 temp/humidity, reports to an MQTT broker every 5 minutes). Works flawl
Decoupling caps placed right next to the IC but still seeing power rail noise
Fast digital board, MCU running a few hundred MHz core clock plus a couple of high-speed peripherals. Put 100 nF caps right next to every po