← All posts

CH1CH2CH4· 10 min read

STM32 vs ESP32 vs nRF52 for Wearables: How to Choose

How to choose STM32, ESP32 or Nordic nRF for a battery-powered wearable: power, radios, variants, code examples and datasheet links.

Published
Tags
STM32 vs ESP32 · nRF52840 · Wearables · BLE +5

A wearable lives or dies by its battery. A wristband with a 150 mAh cell that averages 50 µA lasts about four months; the same band averaging 5 mA is flat in just over a day. The microcontroller you pick sets most of that number before you write a line of firmware, which is why the first chip decision deserves more care than it usually gets.

This guide compares the three families the way a wearable sees them: average current, radio, size, tools and supply. It draws on firmware I have shipped on all three, from an STM32 fall-detection wristband to ESP32-S3 appliances and nRF parts on Zephyr. Every figure links to the vendor's datasheet in the references at the end.

What a wearable asks of its chip

Almost every wearable has the same chain: sensors on the body, a microcontroller that filters the signal and decides what matters, a radio that sends it to a phone, and a small battery behind it all. The microcontroller and the radio are often one chip, called a system-on-chip (SoC).

FIG. 01 · The signal chain of a typical wearable.

From that chain come four requirements, in this order of importance:

  1. Low average current. Not the lowest number in the datasheet, but the average over a real day of sleeping, sampling and sending.
  2. The right radio. For most wearables that is Bluetooth Low Energy (BLE) to a phone. Wi-Fi, Thread or LE Audio change the answer.
  3. Small size. Chip-scale packages (WLCSP, CSP) of 2–4 mm per side, or a certified module that saves months of RF work.
  4. Tools and supply. A mature SDK, a good RTOS, and a part you can still buy in five years.

Where the battery actually goes

A wearable spends almost all of its time asleep. It wakes briefly to read a sensor, processes the data, and every so often turns on the radio for about a millisecond. The trace below shows the shape of one such cycle.

FIG. 02 · One duty cycle of a BLE wearable, drawn like a current probe capture.

The average current is what drains the battery, and you can estimate it on paper. Suppose a band sleeps at 2 µA, spends 2 ms of every second processing at 3 mA, and sends one BLE packet per second at about 5 mA for 1 ms:

text
sleep      2 µA  × 997 ms = 1.994 µA·s
processing 3 mA  ×   2 ms = 6.000 µA·s
radio      5 mA  ×   1 ms = 5.000 µA·s
------------------------------------------
average ≈ 13 µA  →  150 mAh / 0.013 mA ≈ 11,500 h ≈ 16 months

Two lessons follow. First, sleep current matters most when the device is idle almost all the time. Second, a radio that draws 100 mA instead of 5 mA, even briefly, dominates everything else. That is the core of this comparison. Nordic's free Online Power Profiler runs this sum for real BLE settings.

STM32: the processing workhorse

An STMicroelectronics Nucleo-64 development board with an STM32 microcontroller and Arduino-style headers.
FIG. 03 · An ST Nucleo-64 board, the usual way to start with STM32.Photo: Ordercrazy, CC0 1.0, via Wikimedia Commons

STMicroelectronics' STM32 is the broadest Arm Cortex-M family on the market, from tiny Cortex-M0+ parts to Cortex-M7 and beyond. Its strength is choice: if you need a specific mix of ADCs, timers, serial ports and memory, there is almost certainly an STM32 for it. Most STM32 parts have no radio, so a wearable either pairs one with a separate BLE chip or uses the wireless lines.

Variants worth knowing for wearables

  • STM32L4 (e.g. L476): Cortex-M4F at 80 MHz, a long-proven low-power line. Stop 2 with the RTC running is about 1.4 µA (datasheet).
  • STM32U5 (U575/U585): Cortex-M33 at 160 MHz with TrustZone, up to 2 MB flash and 786 KB RAM, and Shutdown at 160 nA (datasheet). The pick when the wearable runs heavier DSP or ML locally.
  • STM32WB55: Cortex-M4F for your code plus a Cortex-M0+ that runs the BLE 5.4 and 802.15.4 stack. Radio about 5.2 mA transmit at 0 dBm and 4.5 mA receive (datasheet). Also sold as the certified STM32WB5MMG module.
  • STM32WBA55: the newer single-core Cortex-M33 wireless line at 100 MHz, in a WLCSP41 package of about 2.8 × 3.0 mm, with Standby at 0.9 µA keeping 64 KB of RAM (datasheet).

Strengths: the widest peripheral and memory choice, excellent analog, STM32CubeMX for pin and clock setup, and ST Edge AI for converting neural networks to C. ST runs a rolling 10-year longevity programme for many parts. Watch out for: the BLE stack on WB runs as a separate binary on the second core, which adds a step to updates; and on non-wireless parts you design and certify a second chip.

From my work: my fall-detection wristband is built on an STM32 with an inertial measurement unit (IMU), streaming motion data over BLE to a phone app and a PC dashboard. The biggest power lesson there was not about the STM32 at all: the detection rules were designed for the IMU's own finite-state-machine engine, so the sensor itself can watch for falls while the microcontroller sleeps. The cheapest microamp is the one the main processor never spends.

ESP32: Wi-Fi first, battery second

An ESP32 development board with an ESP-WROOM-32 module, a USB port and two rows of pins.
FIG. 04 · An ESP32 development board with the ESP-WROOM-32 module.Photo: Ubahnverleih, CC0 1.0, via Wikimedia Commons

Espressif's ESP32 made Wi-Fi cheap and easy. Every variant has Wi-Fi or 802.15.4 plus BLE, lots of RAM and a large community, and Espressif sells pre-certified modules with published certificates. The catch for wearables is radio current: Espressif's datasheets quote whole-chip peak currents of tens to over a hundred milliamps when the radio is on, against about 5 mA for a Nordic or ST BLE radio. The figures are measured differently, so treat them as orders of magnitude, but the gap is real.

Variants

  • ESP32-C3: one RISC-V core at 160 MHz, Wi-Fi 4 and BLE 5, 400 KB SRAM, deep-sleep about 5 µA, QFN32 5 × 5 mm (datasheet). The low-cost Wi-Fi + BLE choice.
  • ESP32-C6: adds Wi-Fi 6 and 802.15.4 (Thread, Zigbee, Matter) plus a 20 MHz low-power RISC-V core. BLE peak is listed at 130 mA transmit and 71 mA receive at 0 dBm (datasheet).
  • ESP32-S3: two Xtensa LX7 cores at 240 MHz with vector instructions for neural networks and DSP. Strong for camera, audio and on-device ML, heavy for a wrist (datasheet).
  • ESP32-H2: no Wi-Fi; BLE 5.3 and 802.15.4 at about 36 mA peak transmit, QFN32 4 × 4 mm (datasheet). Espressif's most wearable-friendly radio, but still above Nordic and ST.
An ESP32-S3 development board with a module, two USB-C ports and pin headers, on white paper.
FIG. 05 · An ESP32-S3 board: dual-core, with vector instructions for on-device ML.Photo: VectorVoyager, CC BY-SA 4.0, via Wikimedia Commons

Strengths: Wi-Fi on the device, generous RAM, low cost, ESP-IDF with FreeRTOS built in, and a 12-year longevity commitment for the C3, C6, S3 and H2. Watch out for: radio current, larger packages, and deep sleep that restarts the program from the beginning (see the code below).

From my work: I have shipped ESP32-S3 firmware for a cooking appliance with BLE provisioning, Wi-Fi WebSocket control and over-the-air updates, and for an MQTT-controlled AGV; an ESP32 also runs the telecom tower controller, and an ESP-based tracker the e-bike telemetry. All of them have mains power or a large battery. That is exactly where ESP32 shines, and exactly what a wristband does not have.

Nordic nRF: built for Bluetooth on a coin cell

A tiny Pro Micro–sized board based on a Nordic nRF52840, with a USB-C connector.
FIG. 06 · A thumb-sized nRF52840 board (nice!nano format).Photo: -stk, CC BY-SA 4.0, via Wikimedia Commons

Nordic Semiconductor designs almost nothing but low-power radios, and it shows. Its BLE radios draw a few milliamps, sleep currents sit around a microamp, and chip-scale packages fit a ring or a patch. Nordic chips power a large share of the fitness bands, trackers and medical sensors on the market.

Close-up of a Nordic nRF51822 chip on the green circuit board of a health bracelet.
FIG. 07 · A Nordic chip (the older nRF51822) inside a real health bracelet.Photo: Raimond Spekking, CC BY-SA 4.0, via Wikimedia Commons

Variants

  • nRF52832: Cortex-M4F at 64 MHz, BLE 5.4, NFC, 512 KB flash, a 3.0 × 3.2 mm WLCSP and a radio around 5.3 mA transmit (product page). The classic fitness-band chip.
  • nRF52840: 1 MB flash, 256 KB RAM, USB, Thread and Zigbee, 4.8 mA transmit and 4.6 mA receive, System ON sleep of 1.5 µA (specification). The safest all-round default.
  • nRF5340: two Cortex-M33 cores, one for your application and one for the radio, with LE Audio, and a radio run current of 3.2 mA transmit (specification). The pick for earbuds and hearing devices.
  • nRF54L15: the new generation: Cortex-M33 at 128 MHz plus a RISC-V coprocessor, 1.5 MB non-volatile memory, Bluetooth Channel Sounding, and a CSP of 2.45 × 2.25 mm (product page). The choice for new designs.

Strengths: the lowest radio current of the three, tiny packages, a wide range of certified partner modules, and the nRF Connect SDK, which is built on Zephyr. Watch out for: fewer peripherals and less analog than STM32, no Wi-Fi on these parts, and a learning curve if you have never used Zephyr's devicetree and Kconfig.

From my work: I use nRF parts through Zephyr and the nRF Connect SDK, including BLE Audio, Mesh and periodic advertising with responses (PAwR). Once the toolchain is set up, the low-power behaviour comes almost for free: the idle thread puts the chip to sleep without any special code.

Side by side

ChipCPUFlash / RAMSmallest package
STM32L476Cortex-M4F, 80 MHz1 MB / 128 KBWLCSP72, 3.8 × 4.4 mm
STM32U575/585Cortex-M33, 160 MHz2 MB / 786 KBWLCSP90, 4.2 × 4.0 mm
STM32WB55M4F 64 MHz + M0+ (radio)1 MB / 256 KBWLCSP100, 4.4 × 4.4 mm
STM32WBA55Cortex-M33, 100 MHz1 MB / 128 KBWLCSP41, 2.8 × 3.0 mm
ESP32-C3RISC-V, 160 MHzUp to 8 MB in package / 400 KBQFN32, 5 × 5 mm
ESP32-C6RISC-V 160 MHz + LP 20 MHz4–8 MB / 512 KBQFN32, 5 × 5 mm
ESP32-S32× Xtensa LX7, 240 MHzExternal / 512 KBQFN56, 7 × 7 mm
ESP32-H2RISC-V, 96 MHz2–4 MB / 320 KBQFN32, 4 × 4 mm
nRF52832Cortex-M4F, 64 MHz512 KB / 64 KBWLCSP, 3.0 × 3.2 mm
nRF52840Cortex-M4F, 64 MHz1 MB / 256 KBWLCSP, 3.5 × 3.6 mm
nRF53402× Cortex-M33 (128 + 64 MHz)1 MB / 512 KB + 256 / 64 KBWLCSP95, 4.4 × 4.0 mm
nRF54L15M33 128 MHz + RISC-V1.5 MB / 256 KBCSP47, 2.45 × 2.25 mm
Compute, memory and size.
ChipRadiosRadio TX 0 dBm / RXLowest sleep (mode)
STM32L476None (add a radio chip)—Stop 2 + RTC: 1.4 µA
STM32U575/585None (add a radio chip)—Shutdown: 160 nA
STM32WB55BLE 5.4, 802.15.45.2 / 4.5 mAStop + RTC, 256 KB RAM: 2.1 µA
STM32WBA55BLE, 802.15.45.2 / 4.4 mAStandby, 64 KB RAM: 0.9 µA
ESP32-C3Wi-Fi 4, BLE 5Wi-Fi RX 84 mA (peak)Deep-sleep: 5 µA
ESP32-C6Wi-Fi 6, BLE 5.3, 802.15.4BLE 130 / 71 mA (peak)Deep-sleep: 7 µA
ESP32-S3Wi-Fi 4, BLE 5—Deep-sleep: 7 µA
ESP32-H2BLE 5.3, 802.15.4BLE 36 / 24 mA (peak)Deep-sleep: 7 µA
nRF52832BLE 5.4, NFC, ANT5.3 / 5.4 mASystem ON: 1.9 µA
nRF52840BLE 5.4, Thread, Zigbee, USB4.8 / 4.6 mASystem ON: 1.5 µA
nRF5340BLE 5.4, LE Audio, Thread, Matter3.2 / 2.6 mA—
nRF54L15BLE (with Channel Sounding), Thread, Matter4.8 / 3.4 mASystem OFF + GRTC: 0.8 µA
Typical values from each vendor's datasheet or product page (see References). Espressif quotes whole-chip peak current; ST and Nordic quote radio current, so compare orders of magnitude, not exact numbers. Sleep modes differ in what they keep running. A dash means the vendor gives no comparable figure.
FIG. 08 · BLE transmit current at 0 dBm, from the table above. The ESP32 figures are whole-chip peaks, so read the gap as an order of magnitude.

Radios: BLE, Wi-Fi, Thread and beyond

  • BLE only (most wearables): the phone is the gateway. Nordic is the reference; STM32WB/WBA are close behind; ESP32-H2 works with more current.
  • Wi-Fi on the device: only ESP32 among these. Expect much higher radio current and plan the battery and charging around it.
  • Thread, Zigbee, Matter: nRF52840, nRF5340, nRF54L15, STM32WB/WBA55, ESP32-C6 and H2 all support 802.15.4. Rarely needed on a body, useful for home health hubs.
  • LE Audio: nRF5340 is the established choice for hearing aids and earbuds.
  • Channel Sounding: nRF54L15 supports this new Bluetooth feature for accurate distance measurement, useful for find-my and proximity features.

The same job in code

The clearest way to feel the difference is to write the same small firmware on each. The task: sleep, wake, and publish a heart-rate value over BLE. These snippets follow each vendor's documented APIs; treat them as illustrations to adapt, not drop-in production code.

One source for all three: Zephyr

Zephyr RTOS supports all three families, so one application can be built for each. This is a trimmed version of Zephyr's peripheral_hr sample:

c · main.c
#include <zephyr/kernel.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/services/hrs.h>

/* Advertise as a heart-rate sensor (standard 0x180D service). */
static const struct bt_data ad[] = {
    BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
    BT_DATA_BYTES(BT_DATA_UUID16_ALL, BT_UUID_16_ENCODE(BT_UUID_HRS_VAL)),
};

int main(void)
{
    if (bt_enable(NULL)) {
        return 0;
    }
    bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0);

    uint8_t bpm = 60; /* replace with your PPG algorithm's output */
    while (1) {
        /* The CPU sleeps here: Zephyr's idle thread enters the
         * chip's low-power state until the next timer or radio event. */
        k_sleep(K_SECONDS(1));
        bt_hrs_notify(bpm);
    }
}
kconfig · prj.conf
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="Wrist HR"
CONFIG_BT_HRS=y
# Peripherals that are not in use are powered down.
CONFIG_PM_DEVICE=y
# A UART console keeps clocks running: turn it off in production.
CONFIG_SERIAL=n
CONFIG_CONSOLE=n
shell
# Same source, three vendors (board names from the Zephyr docs):
west build -b nrf52840dk/nrf52840   app
west build -b nucleo_wb55rg         app   # needs ST's BLE stack on the M0+ core
west build -b esp32c3_devkitm       app   # needs: west blobs fetch hal_espressif

The code is identical; the power results are not. The same k_sleep() lands in a microamp-level sleep on the nRF52840, but in a far less frugal idle state on an ESP32 unless you enable and tune its power management. Portability of code is not portability of battery life.

ESP32 with ESP-IDF: deep sleep restarts the program

c · ESP-IDF
#include "esp_sleep.h"

/* Survives deep sleep: lives in RTC memory, not normal RAM. */
RTC_DATA_ATTR static uint32_t boot_count;

void app_main(void)
{
    boot_count++;
    read_sensor_and_send();        /* your work: sample, then send */

    /* Wake again in 60 s. Deep sleep powers down the CPU and most RAM,
     * so the chip restarts from app_main() when it wakes. */
    esp_sleep_enable_timer_wakeup(60ULL * 1000 * 1000);
    esp_deep_sleep_start();
}

Deep sleep gives the lowest current but resets the chip, so state you need must live in RTC memory (RTC_DATA_ATTR). Light sleep keeps RAM but draws more. Espressif's sleep modes guide lists the wake-up sources.

STM32 with the HAL: Stop 2 and clock recovery

c · STM32 HAL
/* STM32L4 / U5 / WB: sleep in Stop 2 until the RTC wake-up timer
 * (set up in STM32CubeMX) fires, then continue where we left off. */
HAL_SuspendTick();                         /* stop the 1 ms SysTick */
HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);

/* Execution resumes here. Stop mode switches back to the internal
 * oscillator, so restore the full clock tree before using peripherals. */
SystemClock_Config();
HAL_ResumeTick();

Stop 2 keeps RAM and registers, so the program continues on the next line. The classic bug is forgetting SystemClock_Config() after waking: the chip then runs on its slower internal oscillator and UART baud rates or timers drift.

Nordic with the nRF Connect SDK: remove what keeps it awake

kconfig · prj.conf
# nRF Connect SDK: low power is the default, so the work is removing
# what keeps the chip awake.
CONFIG_SERIAL=n            # UART logging holds the high-frequency clock on
CONFIG_LOG=n
CONFIG_PM_DEVICE=y
# Longer connection intervals = fewer radio events per second.
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=80   # x 1.25 ms = 100 ms
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=160  # x 1.25 ms = 200 ms

On Nordic chips the system sleeps by default whenever no thread is running. Most power bugs are something left on: a UART console, logging, or a short BLE connection interval. Measure with a current probe such as Nordic's Power Profiler Kit before and after each change.

Tools, RTOS and on-device ML

STM32ESP32Nordic nRF
Vendor SDKSTM32Cube (HAL/LL), STM32CubeWBAESP-IDF (FreeRTOS inside)nRF Connect SDK (Zephyr inside)
Zephyr supportYes, many boardsYes, many boardsYes, first-class
ConfigurationSTM32CubeMX (graphical)menuconfigDevicetree + Kconfig
On-device MLST Edge AI, TFLite MicroESP-DL, ESP-NN, TFLite MicroTFLite Micro, Edge Impulse
DebugST-LINK on every NucleoBuilt-in USB-JTAG on C3/C6/S3/H2J-Link on every DK

For machine learning on any of the three, TensorFlow Lite for Microcontrollers and Edge Impulse both work. For wearables, the model is usually small (a few kilobytes of weights for activity or fall classification), so memory rarely decides the chip; power does.

If the wearable is a medical device

  • Use a certified radio module for the first product. Espressif, ST (STM32WB5MMG) and Nordic partners all sell modules with FCC and CE approvals, which saves a costly RF certification cycle.
  • Check supply length. ST and Espressif publish longevity commitments; Nordic publishes a long-term availability statement. Medical products often stay on sale for ten years or more.
  • Plan security early. TrustZone (STM32U5, WBA, nRF5340, nRF54L15) and Nordic's CryptoCell help with secure boot, encrypted storage and signed updates.
  • Respect the standards. Medical device firmware is usually developed under IEC 62304 and the device tested to IEC 60601-1. Bring in a regulatory specialist before the design freezes.

How to choose in three questions

FIG. 09 · A quick decision path for a wearable's main chip.

Then confirm it on the bench. Buy the development kit, run the Zephyr sample above, and measure the real average current with a power profiler. One afternoon of measurement is worth more than any comparison table, this one included.

Common questions

Is ESP32 good for wearables?

For wearables that charge every day, connect to Wi-Fi or need lots of RAM (smartwatch-style displays, camera wearables), yes. For small bands and patches that must last weeks on a tiny battery, a Nordic or STM32WB/WBA BLE chip is usually the better fit.

nRF52840 or nRF54L15 for a new design?

The nRF54L15 is newer, smaller, faster and has more memory, so it is the better long-term choice for new products. The nRF52840 has the larger body of examples, modules and community answers, which can matter for a first prototype.

Can STM32 do BLE without a second chip?

Yes: the STM32WB and STM32WBA families have BLE built in, and the STM32WB5MMG is a certified module. Other STM32 lines need a separate radio chip or module.

Which chip has the lowest power consumption?

For BLE wearables, Nordic's nRF52 and nRF54L series and ST's WBA usually give the lowest average current. Datasheet sleep figures are measured under different conditions, so compare average current on your own duty cycle, not the single lowest number.

New to firmware? Once you have picked a chip, the Embedded C roadmap lists what to learn and in what order, with videos and articles for every topic.

References

  1. STM32L476 datasheet (DS10198)
  2. STM32U585 datasheet (DS13086)
  3. STM32WB55 datasheet (DS11929)
  4. STM32WBA55 datasheet (DS14127)
  5. STM32WB5MMG certified module
  6. ST product longevity programme
  7. ESP32-C3 datasheet
  8. ESP32-C6 datasheet
  9. ESP32-S3 datasheet
  10. ESP32-H2 datasheet
  11. Espressif longevity commitment
  12. Espressif module certificates
  13. nRF52832 product page
  14. nRF52840 product specification, key features
  15. nRF5340 product specification, key features
  16. nRF54L15 product page
  17. Nordic third-party modules
  18. Nordic Online Power Profiler
  19. Zephyr RTOS documentation
  20. Zephyr peripheral_hr sample
  21. ESP-IDF sleep modes (ESP32-C3)
  22. nRF Connect SDK documentation
  23. STM32CubeWBA
  24. ST Edge AI (STM32Cube.AI)
  25. TensorFlow Lite for Microcontrollers
  26. Edge Impulse documentation

Get my CV

Book a meeting