Page 1 of 2
UV 2 click
From MikroElektonika Documentation
UVA 2 click carries a VEML6075 UVA and UVB light sensor. VEML6075 is a CMOS chip that
incorporates a photodiode, amplifiers, and analog/digital circuits into a single chip.
UV 2 click
Features and usage notes
With UV 2 click, Solar ultraviolet light
intensity is converted to 16-bit digital values.
To keep a stable output in changing
temperature conditions, the chip has
temperature compensation capabilities. This
ensures reliable performance under long term
UV exposure.
Schematic also available in PDF (http://cdndocs.mikroe.com/images/f/ff/UV_2_click_schematic_
The sensor has a specified UVA sensitivity of
365 nm and UVB sensitivity of 315 nm).
Measurement results are stored in four separate
registers. The last result read will remain in the
register until a new measurement is loaded. In
addition to UVA and UVB it has UVD (a
dummy channel for dark current cancellation),
UVcomp1, and UVcomp2. All registers are
accessible via I2C communication.
The board communicates with the target MCU through the mikroBUS™ I2C interface. Both
standard (100 kHz) and fast (400 kHz) I2C is supported. Designed to use a 3.3 power supply only.
The chip vendor provides a separate Application Note sheet with detailed specifications on how to
derive UV radiation values from the sensor readings. For reference, here we provide an explanation
of UVA and UVB, taken from the Application Note sheet:
UV 2 click
IC/Module VEML6075
(http://www.vishay.com/docs/84304/veml6075.pdf)
Interface
I2C
Power
3.3V
supply
Website
www.mikroe.com/click/uv-2
(http://www.mikroe.com/click/uv-2)
The UVB rays - wavelengths ranging from 280 nm to 320 nm - are extremely energetic and
harmful for the skin to the extent that they are responsible for 65 % of skin tumors. Thankfully, only 0.1 % of the solar energy that arrives on the earth’s surface
is in the shape of UVB radiation.
The UVA rays - wavelengths ranging from 320 nm to 400 nm - are less powerful than the previous ones, but highly penetrating. They are capable of reaching the
skin, becoming responsible for photoaging and promoting the onset of different forms of skin cancer. 4.9 % of the solar energy is made up of UVA rays.
Programming
Code starts up the UV 2 click, reads the UV index and prints it out on the TFT board.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include
#include "resources.h"
uint8_t uv2_get_8bit(uint8_t reg)
{
uint8_t tempreg = reg;
uint8_t temp = 0;
I2C1_Start();
I2C1_Write(0x10, &tempreg,1,END_MODE_RESTART);
I2C1_Read(0x10,&temp,1, END_MODE_STOP);
}
uint16_t uv2_get_16bit (uint8_t reg)
{
uint8_t temp[2] = {0};
uint16_t retval = 0;
uint8_t tempreg = reg;
I2C1_Start();
I2C1_Write(0x10, &tempreg,1,END_MODE_RESTART);
I2C1_Read(0x10,temp,2, END_MODE_STOP);
retval = (uint16_t) temp[0];
retval |= ((uint16_t) temp[1])
很抱歉,暂时无法提供与“MIKROE-2378”相匹配的价格&库存,您可以联系我们找货
免费人工找货