battmon3 2.0.0.0
|
BATT-MON 3 Click is a compact add-on board representing an advanced battery monitoring solution. This board features the BQ35100, battery fuel gauge, and end-of-service monitor from Texas Instruments. The BQ35100 provides highly configurable fuel gauging for non-rechargeable (primary) lithium batteries without requiring a forced battery discharge. It uses patented TI gauging algorithms to support the option to replace an old battery with a new one seamlessly. It provides accurate results with ultra-low average power consumption, alongside an I2C interface through which the host can read the gathered data.
We provide a library for the BATT-MON 3 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.
This library contains API for BATT-MON 3 Click driver.
battmon3_cfg_setup
Config Object Initialization function. battmon3_init
Initialization function. battmon3_default_cfg
Click Default Configuration function. battmon3_read_voltage
This function reads the battery voltage in millivolts. battmon3_read_current
This function reads the battery current load from BATT+ to GND in milliampers. battmon3_read_used_capacity
This function reads the used battery capacity in mAh. This example demonstrates the use of BATT-MON 3 click by measuring the battery
voltage, current and used capacity, as well as the chip internal temperature.
The demo application is composed of two sections :
Initialized the driver and performs the click default configuration.
Reads the battery voltage (mV), current (mA), used capacity (mAh) and the chip internal
temperature (Celsius) and displays the results on the USB UART approximately once per second.
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:
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.