Chargeur 13 Click Board
Chargeur 13 Click Board
Overview
Le Le chargeur 13 Click Board™ est un chargeur de batterie à cellule unique lithium-ion (Li+). Ce click peut être utilisé pour les chargeurs de batterie Li-Ion à faible coût, ou les outils électriques, les jouets, les solutions de stockage d'énergie de secours, etc. Chargeur 13 Clic est basé sur le circuit intégré de chargeur de batterie RT9532GQW, qui possède quelques fonctionnalités supplémentaires permettant de charger sans trop de problèmes. Ce circuit intégré dispose d'une régulation interne en mode de commutation avec limitation du courant d'entrée, ce qui lui permet d'utiliser une alimentation externe à partir d'un adaptateur mural bon marché, évalué jusqu'à 28 V. Sur la carte, il y a une LED d'alimentation et deux LED supplémentaires qui peuvent être utilisées pour les indications de charge.
Le Chargeur 13 Click est pris en charge par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette Click Board™ est un produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
Charging of the Li+ battery cell is a demanding task that requires a very accurate current and voltage monitoring and limiting. In addition, it also requires specific charging conditions, depending on the battery level (constant current mode, constant voltage mode). Li+ batteries contain flammable chemical compounds and can easily be ignited. The RT9532GQW IC closely monitors the battery voltage and current during the charging process, ensuring safe and reliable operation. The Charger 13 Click Board™ is a perfect solution for the development of multiple Li+ battery cell charging applications, offering a set of connectors, pins, and LED indicators, allowing fast and easy prototyping.
How Does The Charger 13 Click Board™ Work?
The Charger 13 Click Board™ is based on the RT9532GQW - fully integrated single cell Li-ion battery charger IC ideal for portable applications. The RT9532 optimizes the charging task by using a control algorithm including pre-charge mode, fast charge mode and constant voltage mode. The input voltage range of the VIN pin can be as high as 28V. When the input voltage exceeds the OVP threshold, it will turn off the charging MOSFET to avoid overheating of the chip. Along with its small physical size, the low number of external components makes this IC ideally suitable for various applications. The 4.2V factory preset reference voltage simplifies design.
The RT9532GQW IC is designed with reliability in mind: the IC prevents draining the battery below the critical level, offers prequel charging (for deeply depleted batteries), features an overvoltage protection, charging status monitoring and so on. The Charger 13 Click Board™ itself is equipped with a set of indicators used to monitor both charging process and power distribution.
- CHARGE LED indicates the charge-in-progress status.
- STATUS LED indicates power status during the charging process.
On the left side of the click board is an input screw terminal with corresponding markings, where the external voltage as high as 28V can be applied. The connector on the right side is reserved for a Li-Ion battery with GND and VBAT+ markings. When connected to power source, the green STATUS LED will indicate it, while the red – CHARGING LED will indicate the charging in progress and will turn off once the battery charging is finished.
The voltage range which can be used to power up the Charger 13 Click Board™, allows for it to work with both 3.3V and 5V capable MCUs. It can be selected by soldering a small SMD jumper, labeled as VCC SEL to the correct position.
SPECIFICATIONS
Type | Battery charger |
Applications | The Charger 13 Click Board™ is a perfect choice for development lithium-ion (Li+) cell battery charging applications. |
On-board modules | RT9532GQW, a highly Integrated, linear battery charger from Richtek |
Key Features | Intelligent, constant-current, constant voltage (CCCV), temperature-regulated battery charger |
Interface | GPIO |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V,5V |
PINOUT DIAGRAM
This table shows how the pinout on the Charger 13 Click Board™ corresponds to the pinout of the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | EN | Enable In | |
NC | 2 | RST | INT | 15 | INT | Charging Interrupt Out | |
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Designator | Name | Default Position | Default Options | Description |
---|---|---|---|---|
JP1 | VIN SEL | Left | 5V | Power Supply Selection Jumper INT/EXT, left position INT, right position EXT |
LD1 | STATUS | - | - | Power Status LED indicator |
LD2 | CHARGING | - | - | Charging Status LED indicator |
LD3 | PWR | - | - | Power LED Indicator |
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.
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.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.