# Title: PowerBank Click Board™ ## Description: How Does The PowerBank Click Board™ Work? The PowerBank Click Board™ can supply power from the connected battery through a USB port as well as charge the battery. The MP2632B can operate in both charge mode and boost mode to allow for full-system and battery-power management. It has an integrated VIN-to-SYS pass-through path to pass the input voltage to the system. The pass-through path has built-in over-voltage (OVP) and over-current protection (OCP) and a higher priority over the charging path. This board can also re-charge connected battery from microUSB connector on the bottom side by providing input power. When the input power is present, the MP2632B operates in charge mode. The MP2632B detects the battery voltage automatically and charges the battery in three phases: trickle current, constant current, and constant voltage. Other features include charge termination and auto-recharge. The MP2632B also integrates both input current limit and input voltage regulation to manage the input power and prioritize the system load. In the absence of an input source, the MP2632B switches to boost mode through PB to power SYS from the battery. In boost mode, the OLIM pin programs the output current limit, and the MP2632B turns off at light load automatically. The MP2632B also allows for output short-circuit protection (SCP) to disconnect the battery completely from the load in the event of a short-circuit fault. Normal operation resumes once the short-circuit fault is removed. The operational mode selector button on the PowerBank Click has few purposes. If the button is pressed for more than 1.5ms, the boost is enabled and latched if V IN is not available. LEDs 1-4 are ON for five seconds whenever the button is pressed for more than 1.5ms. If the button is pressed for more than 1.5ms twice within one second, it serves as a torch light ON/OFF switch. If the button is held pressed for more than 2.5 seconds, this is defined as a long push, and boost is shut down manually. A 4-LED driver is integrated for voltage-based fuel gauge indication. Together with torch-light control, the MP2632B provides an all-in-one solution for power banks and similar applications without an external microcontroller. The PowerBank Click is also equipped with a MCP3221, a successive approximation A/D converter (ADC) with a 12-bit resolution to monitor battery voltage over I2C bus over mikroBUS™ socket. This Click Board™ is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with logic levels of 3V3. SPECIFICATIONS Type Battery charger Applications Battery Charger Applications, Power-Bank Applications for Smartphones, Tablets and Other Portable Devices On-board modules MP2632B switch-mode battery charger Key Features Switch-mode battery charger with system power-path management designed for single-cell Li-ion or Li-polymer batteries Interface I2C Compatibility mikroBUS Click board size L (57.15 x 25.4 mm) Input Voltage 5V PINOUT DIAGRAM This table shows how the pinout on PowerBank Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 NC NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 SCL I2C Clock NC 6 MOSI SDA 11 SDA I2C Data NC 7 3.3V 5V 10 5V Power Supply Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description PWR PWR - Power LED Indicator LD1-4 LD1-4 - Battery Status LEDs / Fault Indicator LD5 LD5 - Operation Mode Indicator T1 - - Operation Mode Selector CN1 - - USB Power/Communication Port CN2 - - USB Charge Port ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Battery Charger, Click Board, MikroE, Monolithic Power Systems, Power Management ## Price range: 20.3 - 20.3 GBP ## Link: https://thedebugstore.com/products/mikroe-4082-powerbank-click-board-uk ## Compare-at price range: 29.0 - 29.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Monolithic Power Systems (MPS) Device Support: Development Boards & Tools](https://thedebugstore.com/a/llms/collections/devices-monolithic-power) - [Power Management Click Boards™](https://thedebugstore.com/a/llms/collections/power-management-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Battery Charger Click Boards™](https://thedebugstore.com/a/llms/collections/battery-charger-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [Battery Charger Click Boards™](https://thedebugstore.com/a/llms/collections/battery-charger-click-boards) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-4082, Available: yes, Inventory: 1 ## Metafields - full_description:
The PowerBank Click Board™ can supply power from the connected battery through a USB port as well as charge the battery. The MP2632B can operate in both charge mode and boost mode to allow for full-system and battery-power management. It has an integrated VIN-to-SYS pass-through path to pass the input voltage to the system. The pass-through path has built-in over-voltage (OVP) and over-current protection (OCP) and a higher priority over the charging path.
.jpg)
This board can also re-charge connected battery from microUSB connector on the bottom side by providing input power. When the input power is present, the MP2632B operates in charge mode. The MP2632B detects the battery voltage automatically and charges the battery in three phases: trickle current, constant current, and constant voltage. Other features include charge termination and auto-recharge. The MP2632B also integrates both input current limit and input voltage regulation to manage the input power and prioritize the system load.
In the absence of an input source, the MP2632B switches to boost mode through PB to power SYS from the battery. In boost mode, the OLIM pin programs the output current limit, and the MP2632B turns off at light load automatically. The MP2632B also allows for output short-circuit protection (SCP) to disconnect the battery completely from the load in the event of a short-circuit fault. Normal operation resumes once the short-circuit fault is removed.
The operational mode selector button on the PowerBank Click has few purposes. If the button is pressed for more than 1.5ms, the boost is enabled and latched if V IN is not available. LEDs 1-4 are ON for five seconds whenever the button is pressed for more than 1.5ms. If the button is pressed for more than 1.5ms twice within one second, it serves as a torch light ON/OFF switch. If the button is held pressed for more than 2.5 seconds, this is defined as a long push, and boost is shut down manually.
A 4-LED driver is integrated for voltage-based fuel gauge indication. Together with torch-light control, the MP2632B provides an all-in-one solution for power banks and similar applications without an external microcontroller.
The PowerBank Click is also equipped with a MCP3221, a successive approximation A/D converter (ADC) with a 12-bit resolution to monitor battery voltage over I2C bus over mikroBUS™ socket.
This Click Board™ is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with logic levels of 3V3.
| Type | Battery charger |
| Applications | Battery Charger Applications, Power-Bank Applications for Smartphones, Tablets and Other Portable Devices |
| On-board modules | MP2632B switch-mode battery charger |
| Key Features | Switch-mode battery charger with system power-path management designed for single-cell Li-ion or Li-polymer batteries |
| Interface | I2C |
| Compatibility | mikroBUS |
| Click board size | L (57.15 x 25.4 mm) |
| Input Voltage | 5V |
This table shows how the pinout on PowerBank Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| NC | 1 | AN | PWM | 16 | NC | ||
| NC | 2 | RST | INT | 15 | NC | ||
| NC | 3 | CS | RX | 14 | NC | ||
| NC | 4 | SCK | TX | 13 | NC | ||
| NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
| NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
| NC | 7 | 3.3V | 5V | 10 | 5V | Power Supply | |
| Ground | GND | 8 | GND | GND | 9 | GND | Ground |
| Label | Name | Default | Description |
|---|---|---|---|
| PWR | PWR | - | Power LED Indicator |
| LD1-4 | LD1-4 | - | Battery Status LEDs / Fault Indicator |
| LD5 | LD5 | - | Operation Mode Indicator |
| T1 | - | - | Operation Mode Selector |
| CN1 | - | - | USB Power/Communication Port |
| CN2 | - | - | USB Charge Port |
We provide a library for the PowerBank Click 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.
The library covers all the necessary functions that enables the usage of the PowerBank click board. It offers reading from output register and calculations that result in relatively accurate measurement of connected batteries voltage.
uint16_t powerbank_read_data ( ); - Function is used to read raw data from MCP3221.uint16_t powerbank_read_voltage ( uint16_t v_ref ); - Function is used to calculate voltage of the connected battery.The application is composed of three sections :
void application_task ( )
{
voltage = powerbank_read_voltage( v_ref );
WordToStr( voltage, log_txt );
mikrobus_logWrite( "Battery voltage: ", _LOG_TEXT );
mikrobus_logWrite( log_txt, _LOG_TEXT );
mikrobus_logWrite( "mV", _LOG_LINE );
mikrobus_logWrite( "------------------------", _LOG_LINE );
Delay_ms( 2000 );
}
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
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.
This 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.
- attachments: [{"download_file":[{"download_file":"Powerbank Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Microchip MP2632B Li-ion and Li-poly Battery Charger Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Microchip MCP3221 12-bit A/D Converter Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-4082 - google_product_category: Electronics - custom_label_0: Click Board - device_vendor: Monolithic Power Systems Inc. - device_type: MP2632BGR-Z - warranty: 12 months - brand: MikroE - key_feature_1: PowerBank Charging Circuit - manufacturer: Mikroelektronika d.o.o. - target_keyword: PowerBank Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545478333","gid://shopify/Collection/279697490109"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The PowerBank Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"PowerBank Click Board™","bold":true},{"type":"text","value":" can supply power from the connected battery through a USB port as well as charge the battery. The MP2632B can operate in both charge mode and boost mode to allow for full-system and battery-power management. It has an integrated VIN-to-SYS pass-through path to pass the input voltage to the system. The pass-through path has built-in over-voltage (OVP) and over-current protection (OCP) and a higher priority over the charging path."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"This board can also re-charge connected battery from microUSB connector on the bottom side by providing input power. When the input power is present, the MP2632B operates in charge mode. The MP2632B detects the battery voltage automatically and charges the battery in three phases: trickle current, constant current, and constant voltage. Other features include charge termination and auto-recharge. The MP2632B also integrates both input current limit and input voltage regulation to manage the input power and prioritize the system load."}]},{"type":"paragraph","children":[{"type":"text","value":"In the absence of an input source, the MP2632B switches to boost mode through PB to power SYS from the battery. In boost mode, the OLIM pin programs the output current limit, and the MP2632B turns off at light load automatically. The MP2632B also allows for output short-circuit protection (SCP) to disconnect the battery completely from the load in the event of a short-circuit fault. Normal operation resumes once the short-circuit fault is removed."}]},{"type":"paragraph","children":[{"type":"text","value":"The operational mode selector button on the PowerBank Click has few purposes. If the button is pressed for more than 1.5ms, the boost is enabled and latched if V IN is not available. LEDs 1-4 are ON for five seconds whenever the button is pressed for more than 1.5ms. If the button is pressed for more than 1.5ms twice within one second, it serves as a torch light ON/OFF switch. If the button is held pressed for more than 2.5 seconds, this is defined as a long push, and boost is shut down manually."}]},{"type":"paragraph","children":[{"type":"text","value":"A 4-LED driver is integrated for voltage-based fuel gauge indication. Together with torch-light control, the MP2632B provides an all-in-one solution for power banks and similar applications without an external microcontroller."}]},{"type":"paragraph","children":[{"type":"text","value":"The PowerBank Click is also equipped with a MCP3221, a successive approximation A/D converter (ADC) with a 12-bit resolution to monitor battery voltage over I2C bus over mikroBUS™ socket."}]},{"type":"paragraph","children":[{"type":"text","value":"This Click Board™ is designed to be operated only with 5V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with logic levels of 3V3."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nBattery charger\nApplications\nBattery Charger Applications, Power-Bank Applications for Smartphones, Tablets and Other Portable Devices\nOn-board modules\nMP2632B switch-mode battery charger\nKey Features\nSwitch-mode battery charger with system power-path management designed for single-cell Li-ion or Li-polymer batteries\nInterface\nI2C\nCompatibility\nmikroBUS\nClick board size\nL (57.15 x 25.4 mm)\nInput Voltage\n5V"}]},{"type":"paragraph","children":[{"type":"text","value":" "}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout on PowerBank Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nNC\nNC\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nSCL\nI2C Clock\nNC\n6\nMOSI\nSDA\n11\nSDA\nI2C Data\nNC\n7\n3.3V\n5V\n10\n5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\n Description\nPWR\nPWR\n-\nPower LED Indicator\nLD1-4\nLD1-4\n-\nBattery Status LEDs / Fault Indicator\nLD5\nLD5\n-\nOperation Mode Indicator\nT1\n-\n-\nOperation Mode Selector\nCN1\n-\n-\nUSB Power/Communication Port\nCN2\n-\n-\nUSB Charge Port"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The PowerBank Click Board™ is a USB charging expansion board that can be used for creating power bank devices or adding a charging option to your device. For battery charging management, this board uses MP2632B a highly integrated 3A Lu-ion and Li-polymer battery charger from Microchip. In addition to the battery charger, PowerBank Click also has an MCP3221 analogue to digital converter, which is serving for monitoring battery voltage over the I2C interface. Besides battery charging and monitoring features, this board also has an operation section button, notification LEDs for operational mode selection and battery status. Power banks are popular for charging USB charged devices and can be used as a power supply for various USB powered devices such as lights and small fans.
The PowerBank Click Board™ 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.