Skip to main content
Associate
July 22, 2026
Question

STM32 low power design: How do you optimize battery life for sensor nodes?

  • July 22, 2026
  • 3 replies
  • 22 views

Hi everyone,

I'm working on a battery-powered sensor node project based on STM32 MCU.

The device needs to wake up periodically, collect sensor data, process it briefly, transmit the data, and then return to sleep mode.

The expected lifetime is several years, so I am focusing on reducing the average current consumption rather than only optimizing active mode performance.

Currently, I am considering several areas:

1. Which STM32 low-power modes are usually the best choice for long sleep intervals? (Sleep vs Stop vs Standby)

2. How much impact do you normally see from:

  • disabling unused peripherals?
  • reducing clock frequency?
  • SRAM retention configuration?
  • wake-up time optimization?

3. For sensor applications that wake up every few seconds or minutes, is it generally better to:

  1. run the MCU at higher frequency for a shorter time and sleep longer?
  2. or keep a lower frequency continuously?

4. When measuring low current consumption, do you usually measure only the MCU current, or the whole system including sensors, regulators, and communication modules?

I know STM32L series is designed for low-power applications, but I'm interested in practical experiences from engineers who have built real battery-powered products.

Any suggestions or design tips would be appreciated.

3 replies

Andrew Neil
Super User
July 22, 2026

Which STM32 low-power modes are usually the best choice for long sleep intervals? (Sleep vs Stop vs Standby)

Look at the descriptions in the Datasheet - they tell you how much current is used in each.

The trade-offs are: Deeper sleep gives longer battery life, but less functionality while asleep, and takes more to wake up.

 

Look at peripherals that can run “autonomously” while the CPU is asleep;

Look at sensors which can store data so that the MCU can read a “batch” at a time - rather than having to keep waking to read just one measurement.

 

  • reducing clock frequency?

Generally speaking, it’s best to sleep as deeply and as long as possible - so you run at a reasonably fast speed when awake to finish processing and get back to sleep as soon as possible.

 

When measuring low current consumption, do you usually measure only the MCU current, or the whole system including sensors, regulators, and communication modules?

Of course, you have to measure everything - because that’s what’s going to define your battery life!

There’s no point optimising the MCU to microamps if the rest of the system is taking milliamps!

Achieving really low power is a whole-system exercise.

 

PS:

And to actually measure the power consumption of such a system, you will need something like STLINK-V3PWR or X-NUCLEO-LPM01A or similar - a meter is not going to give useful results.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
July 22, 2026

Look at peripherals that can run “autonomously” while the CPU is asleep;

As ​@mƎALLEm suggests, more recent families like STM32U feature LPBAM - Low-Power Background Autonomous Mode:

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_LPBAM

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
ST Technical Moderator
July 22, 2026

Hello,

For low power application, I recommend to opt for new ultra low power MCUs such as STM32Uxx family (instead of STM32L1 family/old MCU family): STM32U3xxSTM32U0xx

When measuring low current consumption, do you usually measure only the MCU current, or the whole system including sensors, regulators, and communication modules?

Indeed each component on your board/application has it’s own consumption. So it pulls energy from the battery. The current consumption provided in the datasheet are only for the MCU. So you need to add the other component consuptions.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Andrew Neil
Super User
July 22, 2026

I'm working on a battery-powered sensor node …

Have you considered going battery-less - use energy harvesting … ?

eg,

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.