How does it work?
BATT-MAN 2 Click as its foundation uses the MAX77654, a highly-integrated battery charging and power management solution for low-power applications from Analog Devices. It features a single-inductor, multiple-output (SIMO) buck-boost regulator efficiently that provides three independently programmable power rails available on onboard terminals labeled as VSB0, VSB1, and VSB2. Also, it has one 100mA LDO output, labeled as VLDO, with ripple rejection for audio and other noise-sensitive applications. This LDO output can also be configured as a load switch to manage power consumption by disconnecting external blocks when not required. The LDO output can be activated/deactivated by populating the JP2 onboard jumper.
The MAX77654 also has an integrated highly-configurable linear charger that supports a wide range of Li+ battery capacities with a wide range of charge current and charger termination voltage options, featuring battery temperature monitoring for additional safety (JEITA). The charger feature is OFF when the CHG supply is invalid (supply in the range from 4.1V up to 7.25V), disabled, or with the fresh battery. In addition to all the output terminals on this board, another one is marked with VSYS, which is the system power output terminal. In addition to providing power to the system resources and the control logic of the device, VSYS is also designed for external use.
BATT-MAN 2 Click communicates with MCU using the standard I2C 2-Wire interface for configuring and checking the device’s status. Since the sensor for operation requires a 1.8V logic voltage level to work correctly, a small regulating LDO is used, the ADP160 from Analog Devices, providing a 1.8V out of mikroBUS™ rails. That’s why the PCA9306 voltage-level translator is also featured. The I2C interface bus lines are routed to the dual bidirectional voltage-level translator, allowing this Click board™ to work with both 3.3V and 5V MCUs properly.
An onboard switch labeled as ENABLE has the primary purpose of generating a wake-up signal for the PMIC that turns ON the regulators by setting the switch to an appropriate position marked as 1 or 0. In addition, this Click board™ also has some additional features, such as a Reset routed to the RST pin on the mikroBUS™ socket used to hold the processor in a Reset state when the device is powered down.
It also uses an interrupt pin, the INT pin of the mikroBUS™ socket, to signal an essential change in device status, while the three additional LED indicators, red, yellow, and blue LEDs labeled as LED2, LED3, and LED4, can be used for optional user-configurable visual indication. Besides, this device includes an analog multiplexer (AMX), routed to the AN pin on the mikroBUS™ socket, that switches several internal voltage and current signals to an external node for monitoring with an external ADC.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Buck-Boost
Applications
Can be used as a battery charging and power supply solution for low-power applications where size and efficiency are critical
On-board modules
MAX77654 – single inductor, multiple-output (SIMO) power management IC (PMIC) from Maxim Integrated, now part of Analog Devices
Key Features
3 x Buck-Boost outputs, 1 x LDO output, low power consumption, DC charging source, charger optimized for small battery size, flexible and configurable interface, analog MUX output for power monitoring, and more
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V,External
Pinout diagram
This table shows how the pinout on BATT-MAN 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
LD2-LD4 | LD2-LD4 | – | User-Configurable LED Indicators |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
SW1 | ENABLE | Left | Enable Switch Selection 1/0: Left position 1, Right position 0 |
BATT-MAN 2 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage (VCC) | 3.3 | – | 5 | V |
Buck-Boost Channels Range (VSBx) | 0.8 | – | 5.5 | V |
LDO Channel Range (VLDO) | – | – | 100 | mA |
DC Charging Source Channel Range | 4.10 | – | 7.25 | V |
Fast-Charge Current Range (BATT) | 7.5 | – | 300 | mA |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the BATT-MAN 2 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for BATT-MAN 2 Click driver.
Key functions
-
battman2_set_charger_enable
BATT-MAN 2 set charger enable function. -
battman2_set_charger_cfg
BATT-MAN 2 set charger configuration function. -
battman2_get_charger_cfg
BATT-MAN 2 get charger configuration function.
Example Description
This library contains API for BATT-MAN 2 Click driver. The library initializes and defines the I2C bus drivers to write and read data from registers. The library also includes a function for configuring appropriate charge current, charge voltage, prequalification voltage, Buck, Buck-Boost and Linear regulator configuration, etc.
void application_task ( void )
{
#ifdef CHARGER
battman2_get_chg_status( &battman2, &chg_stat );
Delay_ms( 10 );
display_charger_status( );
Delay_ms( 1000 );
battman2_get_charger_cfg( &battman2, &chg_cfg );
log_printf( &logger, " Fast-charge constant current value : %.1f mArn", chg_cfg.chg_cc );
log_printf( &logger, " Minimum CHGIN Regulation Voltage : %.3f Vrn", chg_cfg.vchgin_min );
log_printf( &logger, " Battery Prequalific. Voltage Thld : %.3f Vrn", chg_cfg.chg_pq );
log_printf( &logger, " System Voltage Regulation : %.3f Vrn", chg_cfg.vsys_reg );
log_printf( &logger, " JEITA Ifast-chg-jeita : %.2f mArn", chg_cfg.chg_cc_jeita );
log_printf( &logger, " Fast-charge battery Vreg : %.3f Vrn", chg_cfg.chg_cv );
log_printf( &logger, " Vfast-chg-jeita : %.3f Vrn", chg_cfg.chg_cv_jeita );
log_printf( &logger, "-----------------------------------------------rn" );
Delay_ms( 1000 );
#endif
#ifdef BUCKBOOST
battman2_get_sbb_config( &battman2, sbb_sel, &sbb_cfg );
Delay_ms( 10 );
display_sbb_status( );
Delay_ms( 1000 );
#endif
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.BATTMAN2
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. UART terminal is available in all MikroElektronika compilers.
mikroSDK
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.
For more information about mikroSDK, visit the official page.