Charger 13 Click Board
Charger 13 Click Board
The Charger 13 Click Board™ 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. The Charger 13 Click is based on the RT9532GQW battery charger IC, which has some extra features enabling charging without too much hassle. This IC has an internal switching-mode regulation with input current limiting, allowing it to use an external power supply from a cheap wall adapter, rated up to 28V. On the board, there is a Power LED and two extra LED’s which can be used for charging indications.
The Charger 13 Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the Charger 13 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions to control the Charger 13 Click Board™. The library contains a function which enables or disable charging and check battery charging states.
Key Functions
void charger13_enable()
- Enable the charging function.void charger13_disable()
- Disable the charging function.uint8_t charger13_check()
- Check battery charging function
Example Description
The application is composed of three sections :
- System Initialization - Initializes GPIO and LOG structures, sets INT pin as input and PWM pin as output and start to write log.
- Application Initialization - Initialization driver enable's - GPIO, also write log.
- Application Task - (code snippet) This is an example which demonstrates the use of the Charger 13 Click Board™. This example shows the automatic control of the Charger 13 Click Board™, 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.
- Commands : 'E' - Enable charging; 'D' - Disable charging;
void applicationTask() { char receivedData; if ( UART_Rdy_Ptr() ) { receivedData = UART_Rd_Ptr(); switch ( receivedData ) { case 'E' : { if ( enableFlag == 0 ) { enableFlag = 1; charger13_enable(); mikrobus_logWrite( "Charging Status : Enabled", _LOG_LINE ); mikrobus_logWrite( "-------------------------", _LOG_LINE ); } break; } case 'D' : { if ( enableFlag == 1 ) { enableFlag = 0; charger13_disable(); mikrobus_logWrite( "Charging Status : Disable", _LOG_LINE ); mikrobus_logWrite( "-------------------------", _LOG_LINE ); } break; } } } if ( charger13_check() != chargerFlag ) { chargerFlag = charger13_check(); if ( chargerFlag == 0 ) { mikrobus_logWrite( " Battery is charging ", _LOG_LINE ); mikrobus_logWrite( "-------------------------", _LOG_LINE ); } else { mikrobus_logWrite( " Battery does not charge ", _LOG_LINE ); mikrobus_logWrite( "-------------------------", _LOG_LINE ); } } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The Charger 13 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Charger 13 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.