TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136673 times)
  2. FAT32 Library (69913 times)
  3. Network Ethernet Library (55925 times)
  4. USB Device Library (46253 times)
  5. Network WiFi Library (41882 times)
  6. FT800 Library (41132 times)
  7. GSM click (28973 times)
  8. PID Library (26407 times)
  9. mikroSDK (26350 times)
  10. microSD click (25351 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: 2059 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

DC Motor 18 click

0

DC Motor 18 Click is a compact add-on board that contains a brushed DC motor driver. This board features the TB9051FTG, an automotive PWM-type single-channel H-Bridge DC brushed motor driver from Toshiba Semiconductor.

[Learn More]

LightHz click

0

LightHz Click is a compact add-on board that effectively measures ambient light intensity. This board features the TL2L30BR, a programmable light-to-frequency converter from ams. The sensor outputs either a pulse train or a square wave (50% duty cycle) with a frequency directly proportional to light intensity (irradiance). It has programmable sensitivity and full-scale output frequency and could be used as a rough color detector with a selectable frequency range.

[Learn More]

LED Driver 7 Click

5

LED Driver 7 click is a Click boardâ„¢ equipped with the LTC3490, single cell 350mA LED driver from Linear Technology.

[Learn More]