uva 2.0.0.0
|
UVA Click is a compact add-on board used to detect solar UV index. This board features the GUVA-C32SM, an ultraviolet light sensor capable of measuring UV index between 0 to 14 from Genicom Co., Ltd. It contains the GaN-based chip die, amplifiers, ADC, digital control logic, and I2C interface circuit to measure UVA volumes, working in the spectral range of 220-370nm. The GUVA-C32M can acquire the intensity of UVA, respectively, and outputs digital count according to each intensity.
We provide a library for the UVA 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 UVA Click driver.
uva_cfg_setup
Config Object Initialization function. uva_init
Initialization function. uva_default_cfg
Click Default Configuration function. uva_read_data
This function reads the raw UVA data from registers. uva_soft_reset
This function executes the soft reset command. uva_write_register
This function writes a data byte to the selected register by using I2C serial interface. This example demonstrates the use of UVA click board by reading and displaying the UVA data measurement results.
The demo application is composed of two sections :
Initializes the driver and applies the click default configuration.
Reads the UVA data measurements every 100ms and displays the results on the USB UART.
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.