charger
2.1.0.0
|
Charger Click is a compact add-on board providing a standalone battery charger and monitor. This board features Microchip's MCP73831, a miniature single-cell, fully integrated Li-Ion, Li-Polymer charge management controller. The charge voltage of the MCP73831 is set to 4.20V, and a charge current to 250mA with an external resistor. In addition, this Click boardâ„¢ features the DS2438, a smart battery monitor that monitors the total amount of current going into and out of the battery.
We provide a library for the Charger 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 Charger Click driver.
charger_cfg_setup
Config Object Initialization function. charger_init
Initialization function. charger_default_cfg
Click Default Configuration function. charger_read_temperature
This function reads the chip internal temperature measurement in degrees Celsius. charger_read_batt_vdd
This function reads the battery input voltage. charger_read_current
This function reads the battery charging current. This example demonstrates the use of Charger click board by monitoring the battery charging status.
The demo application is composed of two sections :
Initializes the driver, performs the click default configuration, calibrates the zero current charging offset, and resets the elapsed time counter.
Reads the chip internal temperature, battery and system VDD, battery charging
current, and the elapsed time counter, approximately once per second. All data are displayed on the USB UART where you can track their changes.
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.