ESP32 vs nRF52 vs STM32: How to Choose the Right Microcontroller for Your IoT Product

ESP32 vs nRF52 vs STM32: How to Choose the Right Microcontroller for Your IoT Product

Picking the chip is one of the first big decisions in any connected product, and it's surprisingly easy to get wrong. We've seen wearables built on chips that couldn't last a day on a battery, and Wi-Fi products squeezed onto parts that needed an extra radio bolted on. The ESP32 vs nRF52 vs STM32 debate shows up constantly in engineering forums because each family is excellent at something different. Rather than crowning a winner, here's the way we approach choosing a microcontroller for a client's IoT product development project.

1. Start With the Wireless Requirement

If You Need Wi-Fi, Start With the ESP32

When the product has to talk to a home or office network, the ESP32 family is hard to beat. It puts Wi-Fi and Bluetooth on one chip at a low price, and newer parts like the ESP32-C3 and ESP32-C6 add RISC-V cores, and in the C6's case Wi-Fi 6 plus Thread and Zigbee radios. Espressif's ESP-IDF is mature, and certified modules are widely available. The trade-off is power. Wi-Fi association and transmission are energy-hungry, so an ESP32 is a great fit for mains-powered or rechargeable products and a weaker one for coin-cell sensors.

If BLE and Battery Life Come First, Look at Nordic

For wearables, trackers and sensors that run for months or years on small batteries, the nRF52 family has been the default for good reason. The nRF52840 offers Bluetooth Low Energy, Thread and Zigbee with very low sleep current and an efficient radio. The nRF5340 adds a second core for the radio, and the newer nRF54 series improves performance and power further. Nordic's nRF Connect SDK is built on Zephyr. If your product is mostly BLE and must sip power, start here.

If You Need Neither, or Something Special, STM32 Is the Safe Choice

STM32 is the broadest family of the three. If your product doesn't need wireless at all, or needs a sub-GHz radio, CAN, lots of timers or high processing power, there's almost certainly an STM32 that fits. Low-power parts like the STM32L4 and STM32U5 have excellent sleep modes, and the STM32WB adds BLE. STM32Cube tools generate projects quickly. STM32 is the dependable default for industrial and general embedded work.

2. Compare Power, Peripherals and Performance

Look at Real Deep Sleep Current, Not Marketing Figures

For battery-powered devices, average current matters more than any single number. Compare deep sleep current with RAM retention and an RTC running, which is the mode you'll actually use, and look at the energy each radio event takes. A low power microcontroller with a great sleep figure but an expensive radio wake-up can still lose to a part with slightly higher sleep current. In general, nRF52 and STM32L/U parts win for long battery life, and the ESP32 needs more care and bigger batteries.

Check the Peripherals You Actually Need

List your interfaces before you compare chips. How many UARTs, SPI and I2C buses? Do you need a high-quality ADC for sensors, native USB, a camera interface, a display controller or a crypto accelerator? STM32 usually offers the widest range of peripherals, and Nordic and Espressif cover the common IoT needs well. Missing one peripheral can force an extra chip onto the board, which adds cost and power. This step alone often settles the MCU selection.

Leave Headroom in Flash and RAM

Firmware grows. OTA updates need room for two images, BLE and Wi-Fi stacks take serious memory, and security features add more. As a rule, we aim to use no more than about half of flash and RAM in the first release. Choosing the bigger variant in the same family usually costs very little, and it's far cheaper than a board redesign when version 2.0 doesn't fit.

3. Think About Ecosystem and Standards

Matter, Thread and Zigbee Support

Smart home products increasingly need Matter, which runs over Wi-Fi or Thread. The nRF52840, nRF5340 and nRF54 series, Espressif's ESP32-C6 and H2, and parts from Silicon Labs and others support it, each with their own SDK maturity. Older products may still need Zigbee. If your roadmap includes Matter, pick a chip with an active, supported Matter SDK from the vendor rather than hoping community ports catch up.

Tools, SDK Quality and Your Team's Experience

The best chip on paper is a poor choice if nobody on your team can work with its SDK. ESP-IDF, the nRF Connect SDK and STM32Cube each have their own build systems, examples and quirks. Ask who'll write and maintain the firmware, what they've used before, and how good the vendor's documentation and forums are for your use case. A familiar, well-supported toolchain often saves more money than a cheaper chip.

Module or Chip-Down Design

For wireless products, using a pre-certified module can save months and thousands of dollars in radio certification, because the module already carries FCC and CE approvals. A chip-down design, where you place the bare chip and antenna on your own board, lowers unit cost at volume but needs RF design skill and full certification. Most of our clients start with modules and move to chip-down once volumes justify it.

4. Consider Cost and Supply Over the Product's Life

Total BOM Cost, Not Chip Price

The cheapest MCU doesn't always give the cheapest product. Look at the total BOM cost: a chip that needs an external radio, extra flash, a crystal and more passive parts can end up costing more than a pricier part that integrates them. Factor in certification and development time too. A chip that saves fifty cents but adds a month of engineering isn't a saving unless you're shipping in very large volumes.

Supply Chain and Longevity

The chip shortages of recent years taught everyone a hard lesson about supply chain risk. Check stock at several distributors, look at the vendor's longevity commitments, and favour families with pin-compatible variants you could switch to. ST publishes longevity programmes for many STM32 lines, and Nordic and Espressif have broad module availability from multiple manufacturers. Make availability part of the decision, not an afterthought. We also like to check that a chip has at least two module makers if you plan to use modules, since that gives you a fallback if one supplier has problems. It's a quick check that's saved more than one launch date.

Our Quick Rule of Thumb

When clients ask for a short answer, we give them this. Wi-Fi product on mains or rechargeable power: ESP32. BLE product on a small battery: nRF52 or nRF54. No wireless, industrial interfaces or unusual peripherals: STM32. Then we check power, peripherals, memory and supply against the real requirements, because the rule of thumb is a starting point, not the decision. We'll often build a quick test on two candidate chips, measuring real current and range with the client's own sensor, before anyone draws a schematic. A couple of days of benchmarking like that has saved several of our clients from a painful redesign later.

ESP32 vs nRF52 vs STM32: How to Choose the Right Microcontroller for Your IoT Product

FAQ: Frequently Asked Questions

Q: Is the ESP32 good for battery-powered products?

A: It can be, especially with careful deep sleep design and infrequent Wi-Fi use, but for coin-cell or multi-year battery products, an nRF52 or a low-power STM32 usually lasts much longer.

Q: Which is better for BLE, nRF52 or ESP32?

A: For BLE-only, low-power products, the nRF52 is generally stronger on power and BLE features. The ESP32 is attractive when you need Wi-Fi and BLE together.

Q: Can STM32 do Bluetooth?

A: Yes. The STM32WB and STM32WBA series include BLE radios, and any STM32 can pair with an external BLE module.

Q: Should we use a dev board for our first prototype?

A: Yes. Proving the firmware on an evaluation board before designing custom hardware reduces risk and helps confirm the chip choice early.

Q: Is the nRF54 worth choosing over the nRF52840 for a new design?

A: For new low-power BLE products it's worth a serious look, since it improves processing power and energy efficiency. Check SDK maturity and module availability for your timeline, though, because the nRF52840 still has a larger base of proven designs.

Q: Can we change microcontroller later if we pick the wrong one?

A: You can, but it usually means a new board, new drivers and often new certification. That's why it pays to spend a few days on selection and test the leading candidate on a development kit first.

Conclusion

There's no single winner in ESP32 vs nRF52 vs STM32. Start with wireless and power needs, check peripherals and memory, weigh the ecosystem, and finish with cost and supply. That order rarely leads you astray. If you'd like help with microcontroller selection for a new design, VelocityCreate works across all three families and can recommend the right IoT microcontroller for your product and budget. Explore our IoT Product Development work, read more technical notes, or book a technical call to talk it through with an engineer.

Leave a comment