MaixCAM MaixPy Power Management Unit
Update history
Date | Version | Author | Update content |
---|---|---|---|
2024-11-08 | 1.0.0 | 916BGAI | Initial document |
Warning !!!
Setting incorrect voltages may damage theMaixCAM-Pro
. Do not modify the voltages ofDCDC2~DCDC5
,ALDO1~ALDO4
, andBLDO1~BLDO2
unless you fully understand the purpose and consequences of the adjustment.
1. Introduction#
The MaixCAM-Pro
is equipped with the AXP2101
Power Management Unit (PMU), providing multi-channel power outputs, charging management, and system protection functions. The AXP2101
supports linear charging and features 5
DC-DC
channels and 11 LDO
channels, meeting a variety of power requirements. It also comes with multiple-channel ADCs
for real-time monitoring of voltage and temperature, and integrates protection features such as over-voltage, over-current, and over-temperature to ensure system stability and safety.
The MaixCAM does not have an onboard power management unit. If power management functionality is required, please connect an external power management unit.
2. Using Power Management Unit in MaixPy#
Operate the AXP2101 device using the PMU module.
Example:
You can also use the
AXP2101
module to configure the power management unit. The usage is similar to thePMU
module, and you can refer to the example script axp2101_example.py for guidance.
Initialize the PMU
object, and call get_bat_percent()
to get the current battery level. Call set_bat_charging_cur()
to set the maximum charging current.
Calling poweroff()
will immediately cut off power to the device. Please ensure that data in memory is synced to disk before using this function.
You can use the set_vol()
and get_vol()
methods to set and read the voltage of the DC-DC
and LDO
channels, respectively. Currently, the following channels of the AXP2101
are supported for voltage configuration: DCDC1~DCDC5
, ALDO1~ALDO4
, and BLDO1~BLDO2
.
Warning !!!
Setting incorrect voltages may damage theMaixCAM-Pro
. Do not modify the voltages ofDCDC2~DCDC5
,ALDO1~ALDO4
, andBLDO1~BLDO2
unless you fully understand the purpose and consequences of the adjustment. If you need to test, please use theDCDC1
channel.
For detailed information on the PMU API, please refer to the PMU API Documentation