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 (136662 times)
  2. FAT32 Library (69899 times)
  3. Network Ethernet Library (55920 times)
  4. USB Device Library (46248 times)
  5. Network WiFi Library (41881 times)
  6. FT800 Library (41126 times)
  7. GSM click (28971 times)
  8. PID Library (26406 times)
  9. mikroSDK (26343 times)
  10. microSD click (25350 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: 2312 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

XBEE 3 click

0

Xbee 3 Click is a compact add-on board suitable for mission-critical wireless applications. This board features the XB8X-DMUS-001, a low-power CE/RED certified Digi Xbee® RF module delivering superior performance and interference immunity from Digi International. The module can run either a proprietary DigiMesh® or point-to-multipoint networking protocol utilizing a low-power Silicon Labs MCU and an ADF7023 transceiver, along with an integrated SAW filter that offers industry-leading interference blocking. Operating between 863MHz and 870MHz (868MHz), it allows use in several regions, including approved European countries.

[Learn More]

I2C to SPI click

0

I2C to SPi Click is an all-in-one solution which allows serving as an interface between a standard I2C-bus of a microcontroller and an SPi bus, which allows the microcontroller to communicate directly with SPi devices through its I2C-bus. It is equipped with the stacking headers, so it can be easily connected.

[Learn More]

LCD Mono click

5

LCD Mono Click is a Click boardâ„¢ that uses the LS013B7DH03 LCD display from Sharp which combined with the EFM32, from Silicon Labs, and its energy saving capabilities creates a powerful display application.

[Learn More]