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]
Rating:
Author: MIKROE
Last Updated: 2020-11-18
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Current
Downloaded: 1836 times
Not followed.
License: MIT license
VCT Monitor Click is a compact add-on board that contains a highly integrated monitoring solution without compromising accuracy. This board features the LTC2990, an I2C configurable high-performance temperature, voltage, and current monitor from Analog Devices.
Do you want to subscribe in order to receive notifications regarding "VCT Monitor click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "VCT Monitor click" changes.
Do you want to report abuse regarding "VCT Monitor click".
Library Description
The library contains basic functions for using VCT monitor click.
Key functions:
float vctmonitor_read_voltage_differential ( void )
- Differential voltage functionfloat vctmonitor_read_current ( void )
- Current functionfloat vctmonitor_read_temperature ( void )
- Temperature functionExamples description
The application is composed of three sections :
void application_task ( )
{
float temperature;
float voltage;
float current;
current = vctmonitor_read_current( );
FloatToStr( current,demo_text );
mikrobus_logWrite( "Current: ",_LOG_TEXT );
mikrobus_logWrite( demo_text,_LOG_TEXT );
mikrobus_logWrite( "mA",_LOG_LINE );
voltage = vctmonitor_read_voltage_differential( );
FloatToStr( voltage,demo_text );
mikrobus_logWrite( "Voltage: ",_LOG_TEXT );
mikrobus_logWrite( demo_text,_LOG_TEXT );
mikrobus_logWrite( "mV",_LOG_LINE );
temperature = vctmonitor_read_temperature();
FloatToStr( temperature, demo_text );
mikrobus_logWrite( "Temperature: ", _LOG_TEXT );
mikrobus_logWrite( demo_text, _LOG_TEXT);
mikrobus_logWrite( "C",_LOG_LINE );
mikrobus_logWrite("_________________",_LOG_LINE);
Delay_ms( 4000 );
}
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.