balancer4
2.0.0.0
|
Balancer 4 Click is a compact add-on board optimized for overvoltage protection balancing the voltage of serially connected batteries. This board features the MP2672A, a highly integrated, flexible switch-mode battery charger for Lithium-Ion batteries with two cells in series from Monolithic Power Systems (MPS). The MP2672A has a narrow voltage DC (NVDC) power structure and monitors the voltage across each cell, equalizing the cell’s voltages if the difference between the two cells exceeds the mismatch threshold. It also has two selective operating modes with configurable output current up to 2A via register setting via I2C serial interface, alongside selectable MP2672A power supply, LED indication, and protection features allowing a reliable operation.
We provide a library for the Balancer 4 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Balancer 4 Click driver.
balancer4_cfg_setup
Config Object Initialization function. balancer4_init
Initialization function. balancer4_default_cfg
Click Default Configuration function. balancer4_write_register
This function writes a desired data byte to the selected register by using I2C serial interface. balancer4_write_and_verify_register
This function writes a desired data byte to the selected register and verifies if is is written correctly by reading it. balancer4_read_register
This function reads a data byte from the selected register by using I2C serial interface. This example demonstrates the use of Balancer 4 click board by configuring the click board for charging and then reading the status and fault registers.
The demo application is composed of two sections :
Initializes the driver and configures the click board for charging.
Reads and displays the status and fault registers on the USB UART every 500ms approximately.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.