uv5 2.1.0.0
|
UV 5 Click is a compact add-on board that can measure UV radiation. This board features the AS7331, a spectral UVA/B/C sensor from ams. The sensor can measure UVA, UVB, and UVC, which are the main types of UV rays from the UV radiation of the sunlight. It uses ADC with a high dynamic range (16… 24-bit) for measurements from low to high radiation conditions and has a high sensitivity, which makes it usable for fluorescence light conditions.
We provide a library for the UV 5 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 UV 5 Click driver.
uv5_cfg_setup
Config Object Initialization function. uv5_init
Initialization function. uv5_default_cfg
Click Default Configuration function. uv5_get_rdy_pin
UV 5 get READY pin state function. uv5_sw_reset
UV 5 software reset function. uv5_channel_uva_read
UV 5 read raw UVA data function. This example demonstrates the use of UV 5 click board by measuring the light irradiance of the UVA, UVB and UVC.
The demo application is composed of two sections :
Initializes the driver, and performs the click default configuration.
Measuring light irradiance level by reading data from the UV 5 click board approximately every 4 seconds and displaying it using UART Serial terminal.
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.