Battery Charge/Discharge Monitor Using the Built-in nPM1300
The nrf54-arduino-core has been updated to v0.9.206, and the nPM1300 library has also become more stable. Taking advantage of the built-in nPM1300, one of the key features of the XIAO nRF54LM20, I built a battery charge/discharge monitor.
Using the XIAO Expansion Board, measured data can be displayed on an I2C-connected SSD1306 OLED display and logged to an SD card. A user button switches the display between the measured values and the configuration settings.
As an example, the graph below shows the charging and discharging characteristics of a 100 mAh battery. The battery was charged with a VBUS input current limit of 500 mA, a charging current of 100 mA, and a charging voltage of 4150 mV, and then discharged through a 33 Ω resistor.
nRF54LM_XIAO_BatteryMonitor.zip (22.4 KB)

