Arduino releases power management library for Arduino Pro modules to optimize power consumption

Arduino has released a new power management library designed for Arduino Pro modules to help users monitor battery usage, fine-tune charging parameters, and optimize the power consumption of their Arduino code by notably enabling sleep and standby modes on supported devices.

Currently, the Arduino Portenta H7 boards, the Arduino Portenta C33, and the Nicla Vision module are supported by the new power management library. The company explains some boards consume under 100 microamperes in deep sleep mode enabling months or even years of continuous runtime on a single charge, so making use of those features is important to lower the power consumption of battery-powered IoT devices and wearables.

Arduino Portenta C33 Power Management Library Battery Monitoring

Arduino power management library key features:

  • Battery monitoring – Reports battery metrics such as voltage, current, percentage, and temperature.
  • Battery health tracking – Monitors battery health with detailed insights into temperature and reported capacity.
  • Charging control – Monitors and adjusts charging parameters to better battery management
  • Sleep and Standby modes – Portenta C33 or Portenta H7 can be put into low-power Sleep and Standby modes for a longer battery life. Support for the Nicla Vision module is not implemented yet but is coming soon.
  • Power rail control – Fine-tune power usage by toggling and setting voltages on various power rails of the board.

Installing the library is super easy just search for “PowerManagement” and the new Arduino library will show up and can be installed from the IDE like any other library. You’ll also find it with the source code and documentation on GitHub.

Install Arduino PowerManagement library

To give it a quick try, Arduino provides five example sketches for battery monitoring, charging, and standby/wake-up management, You can load then directly from the Arduino IDE or find them on GitHub.

Arduino Battery Monitoring Sketch
Arduino Battery Monitoring Sketch

Arduino also shared some power consumption numbers before and after optimization using the Nordic Power Profiler Kit II through the JST power connector of the Portenta boards. The company notes that numbers might be higher when powering through the VIN or 5V pin because it involves more power regulators that are not as efficient as the PF1550’s integrated regulators. Here are the results…

Power Consumption Arduino Portenta C33 H7 Lite H7
Power consumption comparison – Note: Sleep measurements are not available on the Portenta H7 modules because they go to sleep automatically when idling.

If your application allows it, going into standby with peripherals off yields the best power savings. The Renesas and STMicro MCUs found in the Portenta boards provide granular control of peripherals so you can only disable those that are not needed. Arduino has more information and recommendations in the announcement explaining how to optimize power and battery using the new power management library.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
0 Comments
oldest
newest
Khadas VIM4 SBC