Skip to main content

NX40 Low Power Guide

This page explains the low-power design approach for NX40 Series BLE applications.

A low-power BLE device should stay in sleep mode most of the time, wake up only when needed, complete its task quickly, and return to sleep.

note

This page focuses on firmware-level and application-level power behavior. Power supply design, debug access, and PCB design are covered in NX40 Hardware Design.


Low-Power Operating Concept

A typical NX40 low-power application follows this cycle:

StepAction
1Stay in sleep mode
2Wake up by timer, button, sensor interrupt, or host event
3Read sensor or update application state
4Advertise, connect, or send data
5Disable unused peripherals
6Return to sleep mode

The average current depends on the balance between active time and sleep time.


Key Low-Power Parameters

ParameterWhy It Matters
Sleep currentDetermines how much energy the device uses while idle
Wake-up intervalControls how often the device becomes active
Advertising intervalControls how often the device broadcasts
Connection intervalControls how often connected devices exchange data
TX powerHigher TX power can improve range but increases current
Peripheral usageSensors, LEDs, UART, SPI, I2C, and debug logs can increase current
Firmware stateFirmware must allow the system to enter sleep
tip

Battery life is usually determined by average current, not only peak current. Short active bursts can be acceptable if the device returns to sleep quickly.


Advertising Interval

BLE advertising is commonly used for sensors, beacons, and devices waiting for a connection.

Advertising BehaviorImpact
Short intervalFaster discovery, higher power consumption
Long intervalSlower discovery, lower power consumption
Continuous advertisingEasy to discover, but may reduce battery life
Event-based advertisingSaves power when advertising is only needed after an event
Stop advertising when idleReduces unnecessary radio activity

Use the longest advertising interval that still meets the product’s discovery and response requirements.


Connection Interval

For connected BLE devices, the connection interval controls how often the peripheral and central device exchange data.

Connection SettingResult
Short connection intervalLower latency, more frequent radio activity
Long connection intervalLower average current, higher latency
Infrequent data transferCan usually use longer intervals
Real-time controlMay require shorter intervals
Sensor monitoringOften works with longer intervals

Choose the connection interval based on application behavior, not only on the default BLE example.


TX Power

Transmit power affects both wireless range and current consumption.

TX Power ChoiceEffect
Higher TX powerCan improve range, but increases current
Lower TX powerReduces current, but may reduce range
Fixed TX powerSimpler behavior
Adaptive TX powerCan save energy if supported by application design
note

Validate TX power together with antenna placement and enclosure design. Increasing TX power cannot fully compensate for poor antenna layout.


Peripheral Power Management

Unused peripherals should be disabled when the device is in sleep mode.

PeripheralLow-Power Recommendation
UARTDisable when logs or host communication are not needed
SPIEnable only during peripheral access
I2CEnable only during sensor access
ADCEnable only during measurement
PWMDisable when output is not required
LEDsAvoid keeping LEDs on in battery-powered mode
SensorsUse sleep, standby, or interrupt mode when available
Debug logsReduce or disable in release firmware

Sensor Duty Cycle

Many NX40 applications may use external sensors. Sensor current can dominate total power consumption if not managed carefully.

Design QuestionRecommendation
How often is data required?Match measurement rate to actual application need
Can the sensor sleep?Put sensor into standby between readings
Can an interrupt wake the system?Use motion, threshold, or event-based wake-up when possible
Is continuous sampling required?Avoid continuous operation if periodic sampling is enough
Are pull-ups always active?Review pull-up values and active bus states
tip

Low-power design must include the whole system, not only the NX40 module.


Debug and Logging

Debug features are useful during development but may increase current.

FeatureDevelopmentRelease
UART logsUseful for debuggingReduce or disable
RTT/debug logsUseful during firmware developmentDisable if not needed
LED indicatorsUseful for visual feedbackAvoid always-on LEDs
Debug interfaceKeep accessibleDo not leave firmware in debug-heavy mode

Current Measurement

Measure current on real hardware.

Recommended measurements:

ModeWhat to Measure
BootStartup current and boot duration
IdleCurrent when application is not active
AdvertisingAverage current during advertising
ConnectedCurrent at selected connection interval
Sensor readCurrent during measurement
SleepLowest idle current
Full cycleAverage current over one complete application cycle
caution

Do not rely only on firmware assumptions. Measure current on the final hardware or prototype board.


Low-Power Checklist

AreaCheck
Firmware can enter sleep
Advertising interval is not too short
Connection interval matches application need
TX power is not higher than necessary
Sensors are disabled or sleeping when idle
UART/SPI/I2C/ADC/PWM are disabled when unused
LEDs are not always on in battery mode
Debug logs are reduced in release build
Current is measured on real hardware
Battery life is estimated from measured average current

Common Low-Power Issues

SymptomPossible CauseCheck
Current is always highFirmware never enters sleepCheck application state and active peripherals
Sleep current is higher than expectedExternal components remain activeCheck sensors, LEDs, pull-ups, and host circuits
Battery drains quicklyAdvertising or connection interval too shortIncrease intervals if acceptable
BLE response is slowInterval too longBalance latency and power
Current changes after enclosure assemblyRF behavior changedCheck antenna and TX power behavior
Current differs between boardsAssembly or external load variationCompare hardware, soldering, and sensor states

What Not to Include Here

To avoid duplicated content:

TopicGo To
Power rail and debug hardwareNX40 Hardware Design
Antenna placement and RF pathNX40 Antenna Design
First board bring-upNX40 Quick Start
BLE services and data modelNX40 BLE Application Guide