charger13 2.0.0.0
|
Charger 13 Click is a single lithium-ion (Li+) cell battery charger. This click can be used for Low-Cost Li-Ion battery chargers, or Power Tools, toys, backup energy storage solutions, etc.
We provide a library for the Charger13 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 Charger13 Click driver.
- Initialization function.void charger13_cfg_setup ( charger13_cfg_t *cfg );
CHARGER13_RETVAL charger13_init ( charger13_t *ctx, charger13_cfg_t *cfg );
void charger13_default_cfg ( charger13_t *ctx );
- This function disable battery charging by sets to HIGH state of the EN ( PWM ) pin of the Charger 13 click board.void charger13_enable ( charger13_t *ctx );
charger13_disable ( charger13_t *ctx );
uint8_t charger13_check ( charger13_t *ctx );
This demo application charges the battery.
The demo application is composed of two sections :
Initialization device.
This is an example which demonstrates the use of Charger 13 click board. This example shows the automatic control of the Charger 13 click, waits for valid user input and executes functions based on a set of valid commands and check the battery charge status. Results are being sent to the Usart Terminal where you can track their changes. All data logs on usb uart for approximately every 1 sec when the data value changes.
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.