vcpmonitor 2.0.0.0
|
The VCP Monitor Click is add-on board power monitor system. This Click boardâ„¢ is based on INA260AIPWR - precision digital current and power monitor with low-drift, integrated precision shunt resistor, from Texas Instruments. Therefore, using VCP Monitor Click, current, voltage and power can be monitored.
We provide a library for the VCPmonitor 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for VCPmonitor Click driver.
- Initialization function.void vcpmonitor_cfg_setup ( vcpmonitor_cfg_t *cfg );
VCPMONITOR_RETVAL vcpmonitor_init ( vcpmonitor_t *ctx, vcpmonitor_cfg_t *cfg );
void vcpmonitor_default_cfg ( vcpmonitor_t *ctx );
- This function reads power data in mW.float vcpmonitor_get_current ( vcpmonitor_t *ctx );
float vcpmonitor_get_power ( vcpmonitor_t *ctx );
float vcpmonitor_get_voltage ( vcpmonitor_t *ctx );
The VCP Monitor Click is add-on board power monitor system. This Click board is based on precision digital current and power monitor with low-drift, integrated precision shunt resistor.
The demo application is composed of two sections :
Initiaizes the driver, and checks the communication by reading the device and manufacture IDs. After that, performs the device default configuration.
Displays the voltage, current, and power measured by the sensor on the USB UART every 2 seconds.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.