pwrmeter3 2.1.0.0
|
PWR Meter 3 Click is a compact add-on board that measures voltage and current through the connected load. This board features the ACS37800, an I2C-configurable power monitoring solution from Allegro MicroSystems, which simplifies the addition of power monitoring to many AC/DC powered systems. The ACS37800’s Hall-effect-based current sensing technology achieves reinforced isolation ratings (4800 VRMS) alongside a reliable ±90A bidirectional current sensing. It also has two LED indicators for the realization of visual detection of some anomalies in operation, such as under/overvoltage and fast overcurrent fault detection.
We provide a library for the PWR Meter 3 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for PWR Meter 3 Click driver.
pwrmeter3_cfg_setup
Config Object Initialization function. pwrmeter3_init
Initialization function. pwrmeter3_default_cfg
Click Default Configuration function. pwrmeter3_get_dio0_pin
This function returns the DIO0 pin logic state. pwrmeter3_get_dio1_pin
This function returns the DIO1 pin logic state. pwrmeter3_read_average_rms
This function reads the voltage and current RMS measurements averaged from a specified number of samples. This example demonstrates the use of PWR Meter 3 click board by reading and displaying the voltage, current, and power RMS measurements.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the DC measurement
and VRMS thresholds to about 28V for overvoltage and about 9.3V for undervoltage flag.
Reads the voltage and current RMS values averaged from 500 samples, then calculates the power from it
and displays the results on the USB UART. Also if an UV or OV flag is detected it will be logged accordingly.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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. UART terminal is available in all MikroElektronika compilers.