TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136833 times)
  2. FAT32 Library (69993 times)
  3. Network Ethernet Library (55976 times)
  4. USB Device Library (46290 times)
  5. Network WiFi Library (41895 times)
  6. FT800 Library (41204 times)
  7. GSM click (29010 times)
  8. PID Library (26422 times)
  9. mikroSDK (26390 times)
  10. microSD click (25384 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

VCP Monitor click

Rating:

5

Author: MIKROE

Last Updated: 2020-03-16

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Current sensor

Downloaded: 2063 times

Not followed.

License: MIT license  

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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "VCP Monitor click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "VCP Monitor click" changes.

Do you want to report abuse regarding "VCP Monitor click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

VCP Monitor Click

VCP Monitor Click

Native view of the VCP Monitor Click board.

View full image
VCP Monitor Click

VCP Monitor Click

Front and back view of the VCP Monitor Click board.

View full image

Library Description

The library contains basic communication with the module and allows the user to read and write data to the module. The user can read the current data of current, voltage and power measured by the sensor.

Key functions:

  • float vcpmonitor_get_voltage ( void ) - Reads voltage data in mV
  • float vcpmonitor_get_current ( void ) - Reads current data in mA
  • float vcpmonitor_get_power ( void ) - Reads power data in mW

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C module and INT pin on INPUT
  • Application Initialization - Initializes driver init, check device ID and manufacture ID, start default configuration.
  • Application Task - Reads Current, Voltage and Power data. This data logs to USB UART every 1500ms.
void application_task ( )
{
    float current_data;
    float voltage_data;
    float power_data;
    
    current_data = vcpmonitor_get_current(  );
    IntToStr( current_data, demo_text );
    mikrobus_logWrite( ">> Current data: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    mikrobus_logWrite( " mA", _LOG_LINE );
     
    voltage_data = vcpmonitor_get_voltage(  );
    IntToStr( voltage_data, demo_text );
    mikrobus_logWrite( ">> Voltage data: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    mikrobus_logWrite( " mV", _LOG_LINE );
    
    power_data = vcpmonitor_get_power(  );
    IntToStr( power_data, demo_text );
    mikrobus_logWrite( ">> Power data: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    mikrobus_logWrite( " mW", _LOG_LINE );
    
    mikrobus_logWrite( " ------------------------------- ", _LOG_LINE );
    Delay_ms( 1500 );
}

Other mikroE Libraries used in the example:

  • I2C Library
  • Conversions library

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

Flash 8 click

0

Flash 8 Click is a compact add-on board representing a highly reliable memory solution. This board features the GD5F2GQ5UEYIGR, a 2Gb high-density non-volatile memory storage solution for embedded systems from GigaDevice Semiconductor. It is based on an industry-standard NAND Flash memory core, representing an attractive alternative to SPI-NOR and standard parallel NAND Flash with advanced features. The GD5F2GQ5UEYIGR also has advanced security features (8K-Byte OTP region), software/hardware write protection, can withstand many write cycles (minimum 100k), and has a data retention period greater than ten years.

[Learn More]

13DOF click

5

13DOF Click is an advanced 13-axis motion tracking Click board, which utilizes three different sensor ICs onboard: BME680, a digital gas, humidity, pressure and temperature sensor and BMM150, a geomagnetic sensor and a BMI088, small, versatile 6DoF sensor module.

[Learn More]

EEPROM 3 click

2

EEPROM 3 click carries Atmel’s AT24CM02 DIP-8 socket EEPROM chip with 256 KB of memory. The board communicates with the target MCU through the mikroBUS I2C interface (SCL, SDA pins) with speeds up to 1 MHz. The chip allows for an entire page of data to be written in a single cycle. The board is designed to use either a 3.3V or a 5V power supply.

[Learn More]