TOP Contributors

  1. MIKROE (2660 codes)
  2. Alcides Ramos (356 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 (137013 times)
  2. FAT32 Library (70137 times)
  3. Network Ethernet Library (56028 times)
  4. USB Device Library (46353 times)
  5. Network WiFi Library (41968 times)
  6. FT800 Library (41295 times)
  7. GSM click (29058 times)
  8. mikroSDK (26493 times)
  9. PID Library (26452 times)
  10. microSD click (25414 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 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-06-17

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Current sensor

Downloaded: 2342 times

Not followed.

License: MIT license  

VCP Monitor 2 Click is a three-channel, high-side current and bus voltage monitor with alert indication function ensuring the intended application works within desired operating conditions.

No Abuse Reported

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

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

Do you want to report abuse regarding "VCP Monitor 2 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 2 Click

VCP Monitor 2 Click

Native view of the VCP Monitor 2 Click board.

View full image
VCP Monitor 2 Click

VCP Monitor 2 Click

Front and back view of the VCP Monitor 2 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 vcpmonitor2_get_shunt_voltage ( uint8_t channel ) - Get Shunt voltage in mV
  • float vcpmonitor2_get_current ( uint8_t channel ) - Get Current data in mA
  • float vcpmonitor2_get_power ( uint8_t channel ) - Get Power in W

Examples description

The application is composed of three sections :

  • System Initialization - Initialization I2C module and RST pin on OUTPUT
  • Application Initialization - Initiaization driver init, device configuration for measurement, alert status reset and configuration
  • Application Task - Display Voltage on the BUS and Shunt, current and power data. Display Alert status informations.
void application_task ( )
{
    mikrobus_logWrite( ">> CHANNEL 1 <<", _LOG_LINE );
    display_channel_data( VCPMONITOR2_CHANNEL_1 );
    mikrobus_logWrite( ">> CHANNEL 2 <<", _LOG_LINE );
    display_channel_data( VCPMONITOR2_CHANNEL_2 );
    mikrobus_logWrite( ">> CHANNEL 3 <<", _LOG_LINE );
    display_channel_data( VCPMONITOR2_CHANNEL_3 );
    display_alert_status( );
    mikrobus_logWrite( "---------------------", _LOG_LINE );
    Delay_ms( 4000 );
}


Additional Functions :

  • display_alert_status() - Alert status
  • display_channel_data() - Channel data

Other mikroE Libraries used in the example:

  • I2C Library
  • UART 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

EERAM 3v3 click

0

EERAM 3.3V click is a static RAM (SRAM) memory click board™ with the unique feature - it has a backup non-volatile memory array, used to store the data from the SRAM array. Since the SRAM is not able to maintain its content after the power loss, the non-volatile EEPROM backup can be a very handy addition that can be used to preserve the data, even after the power loss event. This is a very useful feature when working with critical or sensitive applications. The memory backup procedure can be executed both automatically and manually. When it is set to work in the manual mode, the onboard capacitor will act as a power source with enough power to complete the backup cycle. The power-on backup restore mode is also available, taking only about 25ms to complete.

[Learn More]

Barcode click

0

Barcode Click is a very fast and agile barcode scanner on a click board™, which is compliant with a wide range of different 1D and 2D barcode protocols.

[Learn More]

Buck 13 click

5

Buck 13 Click is a high-efficiency step-down converter which provides a highly regulated output voltage derived from the connected power source, rated from 4.5V to 5.5V.

[Learn More]