This example shows how to set up a constant current (CC) and constant voltage (CV) charging on a typical battery in a smartphone. A constant current starts charging the battery. When the battery voltage reaches a specific value, the constant voltage charging process starts.
Simulation Results from Simscape Logging
The plot below shows the battery charging current. First, the current is constant. Then it decreases as the constant voltage charging starts.