UPS 3 Click Board
UPS 3 Click Board
The UPS 3 Click Board™ is a compact add-on board that represents a bidirectional active charge/balancing solution. This board features the LTC3110, a bidirectional buck-boost DC/DC regulator/charger combination with selectable operation modes for charging and system backup from Analog Devices. It can autonomously transition from Charge to Backup mode or switch modes based on an external command. A proprietary low noise switching algorithm optimizes efficiency with capacitor/battery voltages above, below, or equal to the system output voltage. Additional features include voltage supervisors for direction control and end of a charge and a general-purpose comparator with open-collector output for interfacing with MCU. This Click Board™ is suitable for a backup power source for a wide range of battery-operated embedded applications.
The UPS 3 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.
Software Support
We provide a library for the UPS 3 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from ourLibStock™or found on the mikroE GitHub account.
Library Description
This library contains API for the UPS 3 Click Board™ driver.
Key Functions
void ups3_cfg_setup ( ups3_cfg_t *cfg );
- Config Object Initialization function.UPS3_RETVAL ups3_init ( ups3_t *ctx, ups3_cfg_t *cfg );
- Initialization function.void ups3_default_cfg ( ups3_t *ctx );
- Click the Default Configuration function.
Example Description
This application demonstrates the use of the UPS 3 Click Board™™.
void application_task ( void ) { if ( ups3_get_error( &ups3 ) == UPS3_GET_ERROR_CMPIN_OK ) { if ( ups3_get_cap_ok( &ups3 ) != cok_status ) { new_status = UPS3_STATUS_NEW; cok_status = ups3_get_cap_ok( &ups3 ); } else { new_status = UPS3_STATUS_OLD; } if ( new_status == UPS3_STATUS_NEW ) { ups3_hw_reset( &ups3 ); new_status = UPS3_STATUS_OLD; } if ( ( ups3_get_chrg( &ups3 ) == UPS3_GET_CHRG_BACKUP_MODE ) && ( ups3_get_cap_ok( &ups3 ) == UPS3_GET_CAP_OK_FBV_LOW ) ) { log_printf( &logger, " Backup Mode ON rn" ); } if ( ups3_get_cap_ok( &ups3 ) == UPS3_GET_CAP_OK_FBV_HIGH ) { log_printf( &logger, " Vcap charged rn" ); } } else { log_printf( &logger, " Backup Mode OFF rn" ); log_printf( &logger, " Turn ON the Power Supply rn" ); while ( ups3_get_error( &ups3 ) == UPS3_GET_ERROR_CMPIN_EMPTY ) { Delay_ms( 100 ); } ups3_hw_reset( &ups3 ); Delay_ms( 100 ); } log_printf( &logger, "--------------------------rn" ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from ourLibStock™or found onmikroE GitHub account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Ups3
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 MikroElektronikacompilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The UPS 3 Click Board™ is supported withmikroSDK- MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from LibStock and installed for the compiler you are using.
UPS 3 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.