uvb 2.0.0.0
|
UVB Click is ultraviolet sensing board based on GUVB-C31SM sensor from GenUV, capable of measuring UV index between 0 to 16. UVB Click supports integrated functions of ultraviolet light sensors such that can be easily configured and used in user applications. Overexposure to UVB radiation not only can cause sunburn but also some forms of skin cancer, so knowing amount of UVB light can be quite important and this Click boardâ„¢ is perfect solution for that task.
We provide a library for the UVB 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 UVB Click driver.
uvb_cfg_setup
Config Object Initialization function. uvb_init
Initialization function. uvb_default_cfg
Click Default Configuration function. uvb_configuration
Configuration register. uvb_read_byte
Read one byte data from register. uvb_get_uv_data
Get UVB data. This Click is ultraviolet sensing board, capable of measuring UV index between 0 to 16. UVB Click supports integrated functions of ultraviolet light sensors.
The demo application is composed of two sections :
Initialization driver init, check communication and configuration module for measurement.
Reads UVB data and logs to the USBUART every 1500ms.
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.