charger2
2.0.0.0
|
Charger 2 Click is a LiPo/Li-Ion battery charger with the additional monitoring IC onboard. This Click boardâ„¢ as a whole, offers unpreceded battery charging and monitoring solution for 3.7V LiPo/Li-Ion batteries, with the capacity measurement/gas gauge function, for up to 7000 mAh.
We provide a library for the Charger2 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Charger2 Click driver.
void charger2_cfg_setup ( charger2_cfg_t *cfg );
CHARGER2_RETVAL charger2_init ( charger2_t *ctx, charger2_cfg_t *cfg );
void charger2_default_cfg ( charger2_t *ctx );
uint8_t charger2_write_reg ( charger2_t *ctx, uint8_t register_address, uint8_t transfer_data );
uint8_t charger2_read_data ( charger2_t *ctx, uint8_t data_mode, uint32_t *data_out );
uint8_t charger2_check_conv_cycle( charger2_t *ctx, uint8_t conv_mode );
This app charges the battery.
The demo application is composed of two sections :
Initializes device.
Reads the all necessary information for the battery charging status and logs this results on UART. Repeats operation every second. The LED diodes are used to indicate the Vcc presence when this voltage is in operating range, and to show the charging status.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.