VEML6070 sensor features
VEML6070 is an advanced ultraviolet (UV) light sensor with I2C protocol interface and designed by the CMOS process. The active acknowledge (ACK) feature with threshold windows setting allows the UV sensor to send out a UVI alert message.
Specifications
Type | Optical |
Applications | It can be used for UV measurement applications, sun exposure protection devices, display backlighting control, prototyping of wearables, handsets, and various consumer electronics based on received ambient or UV light |
On-board modules | VEML6070 UVA light sensor |
Key Features | Converts solar UV light intensity to digital data, excellent performance of UV radiation measurement under long time solar UV exposure |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
Pinout diagram
This table shows how the pinout on UV 3 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).Jumpers and settings
Designator | Name | Default Position | Default Option | Description |
---|---|---|---|---|
JP1 | Logic level | Left | 3.3V | Data in level Voltage Selection 3V3/5V, left position 3V3, right position 5V |
Programming
Code examples for UV 3 click, written for MikroElektronika hardware and compilers are available on Libstock.Code snippet
This code reads the value of UV light from VEML6070 and sends it to the user via UART.01 char uartTxt [20]; 02 03 void systemInit() 04 { 05 Uart5_Init (9600); 06 Uart5_Write_Text ("rnInitializing..."); 07 I2C2_Init( 100000 ); 08 Delay_ms (100); 09 UV_3_initDriver (0x70,I2C2_Start, I2C2_Stop, I2C2_Write, I2C2_Read); 10 VEML6070_Init(); 11 Uart5_Write_Text ("rnInitialized"); 12 } 13 14 void main() 15 { 16 systemInit(); 17 18 while( 1 ) 19 { 20 Uart5_Write_Text ("rnUV value: "); 21 IntToStr (UV_3_read(), uartTxt); 22 Uart5_Write_Text (uartTxt); 23 Delay_ms (750); 24 } 25 }