uv3 2.0.0.0
|
UV 3 click is an advanced ultraviolet (UV) light sensor with I2C protocol interface. The click carries VEML6070 UVA light sensor designed by the CMOS process. UV 3 click runs on either 3.3V or 5V power supply.
We provide a library for the Uv3 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Uv3 Click driver.
- Initialization function.void uv3_cfg_setup ( uv3_cfg_t *cfg );
void uv3_default_cfg ( uv3_t *ctx );
- Function read UV data measurements from to the two target 8-bit slave address.void uv3_enable_sensor ( uv3_t *ctx );
uint16_t uv3_read_measurements ( uv3_t *ctx );
uint8_t uv3_risk_level ( uint16_t uv_data );
Converts solar UV light intensity to digital data and measure UV radiation under long time solar UV exposure.
The demo application is composed of two sections :
Initialization driver enable's - I2C, enable sensor and start write log.
This example measures the level of the UV light and logs every 2 seconds to the terminal.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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.