Professional Documents
Culture Documents
www.vishay.com
The VEML6040 is an advanced RGB / ambient light sensor with an I2C protocol interface and designed with CMOS technology.
VEML6040
GND 1 4 VDD
W
G
R
B
Control logic
Output buffer
I2C interface
SDA 2 3 SCL
The VEML6040 color sensor senses red, green, blue, and white light and incorporates photodiodes, amplifiers, and
analog / digital circuits into a single CMOS chip. This digital RGBW information can be used in feedback control systems, among
other things, to monitor and actively control a light source. For example, with the color msensor applied, the brightness and
color temperature of a backlight can be adjusted, based on the ambient light conditions, in order to make the panel look
more comfortable to the users eyes. The VEML6040s adoption of the FiltronTM technology achieves an accurate response
to the mid of each requested band for the red, green, and blue channel. Furthermore, it provides excellent temperature
compensation, keeping the output stable under changing temperatures.
The VEML6040s functions are easily operated via simple commands sent over the I2C (SMBus compatible) bus.
The VEML6040 is packaged in a lead (Pb)-free 4-pin OPLGA package, which offers the best market-proven reliability.
The VEML6040 comes within a very small surface-mount package with dimensions of just 2.0 mm x 1.25 mm x 1.0 mm
(L x W x H).
APPLICATION NOTE
1.7 V to 3.6 V
R1 R2
Host
Micro Controller
VEML6040
Average Gain 1
14 000 10000
Relative Responsivity (W/cm2)
12 000
6000
Blue
100
4000
2000
0 10
400 450 500 550 600 650 700 750 800 850 900 950 1000
Wavelength (nm)
2nd line
Average Gain 1
1.0 10000
0.9
Relative Responsivity (W/cm2)
The sensitivity of the component changes according to the set integration time. With a set integration time of 80 ms, the lux
sensitivity of the green channel is 0.12584 lux/step. Choosing a longer integration time will increase the sensitivity accordingly,
with the longest integration time of 1280 ms leading to the highest sensitivity of 0.007865 lux/step. The maximal detectable
intensity is also derived from the set integration time. The sensitivity and detectable range for each of the selectable integration
APPLICATION NOTE
The results will be updated after each measurement cycle, with each color channel being processed in parallel, so that red,
green, and blue content of the light source is all measured at the same time. The amount of time taken for the completion of
one measurement cycle depends on the IT setting in the command register. In self-timed mode the VEML6040 measures
continuously; the host can poll the result registers. To ensure that the value read is current, an integration waiting period should
be observed between readings. In Active Force mode, the VEML6040 executes one measurement cycle once the TRIG bit
has been set. The result is updates after the measurement has completed, which remain in the result registers until a new
measurement is made.
0.7
1000
Relative Responsivity
0.6
0.5
0.4
v() 100
0.3
0.2
0.1
APPLICATION NOTE
0 10
400 450 500 550 600 650 700 750 800 850 900 950 1000
Wavelength (nm)
2nd line
600 1000
Relative Responsivity
500
400
300 100
200
100
0 10
40 80 160 320
Wavelength (nm)
2nd line
Fig. 6 - Linearity of Integration Times
Z
Transient Thermal Impedance
Transient Thermal Impedance
1.6
Tristimulus Values
1.4
1000
Relative Responsivity
1.2
Y X
1.0
APPLICATION NOTE
0.8
100
0.6
0.4
0.2
0 10
350 400 450 500 550 600 650 700 750 800
Wavelength (nm)
2nd line
Fig. 7 - Color Matching Functions
780 780 780
X= X ( )d, Y = Y ( )d, Z = Z ( )d
360 360 360
Average Gain 1
0.9 10000
520
0.8 540
2nd Line (W/cm2)
500 580
0.5
4000 3000
y
Fig. 8 - The CIE1931 (x, y) Chromaticity Space, also Showing the Chromaticities of Black-Body Light Sources of Various Temperatures
(Planckian Locus), and Lines of Constant Correlated Color Temperature
Y
y = -------------------------
X+Y+Z
X
x = -------------------------
X+Y+Z
When converting between the XYZ color space and the xyY color space, the Y value (illuminance) is simply kept the
same:
Y=Y
APPLICATION NOTE
Correlation coefficients
(mapping matrix)
XYZ
xyY
McCamy formula
CCT (K)
As indicated by the first step, a so-called mapping matrix is required to convert the RGB values to XYZ values. The coefficients
in this matrix map the RGB sensor values to the defined color matching functions, to then accurately arrive at the XYZ tristimulus
values. Once the correlation coefficients of the mapping matrix are found, the following equation can be used to arrive at the
XYZ values:
X M1 M2 M3 R
Y = M 4 M 5 M 6
x G
Z M7 M8 M9 B
M1 M2 M3 R
Where M 4 M 5 M 6 is the mapping matrix and G are the values read from the sensor.
M7 M8 M9 B
APPLICATION NOTE
Values from chroma meter Counts from VEML6040
This can then be plugged into the XYZ equation to give the following:
Where:
CCTi = CCTi_Raw + offset
CCTi_Raw = -------------
R-B
G
Offset (open air) = 0.5
In open-air conditions the offset = 0.5. Depending on the optical conditions (e.g. cover glass) this offset may change.
APPLICATION NOTE
Axis Title
0 20
10000
1.0
1stDisplacement
Sensitivity
(%)
0.9
40
1000
Transmission
2nd line
0.8
line
2nd line
rel - Relative
- Angular
0.7
100
60
SLight
0.6
80
10
0.5 0.4 0.3 0.2 0.1 0
- Wavelength (nm)
2nd line
Fig. 10 - Relative Radiant Sensitivity vs. Angular Displacement Fig. 11 - Angle of Half Sensitivity: Cone
Remark:
This wide angle and the placement of the sensor as close as possible to the cover is needed to show good responsivity.
APPLICATION NOTE
0.5 x
.
D
d
tan 55 = 1.43 = x/d
x = 1.43 x d
1.0
The calculation is then: tan = x/d with = 55 and tan 55 1.43 = x/d x = 1.43 x d
Then the total width is w = 0.5 mm + 2 x x.
APPLICATION NOTE
0.5 x
.
D
d
tan 40 = 0.84 = x/d
x = 0.84 x d
1.0
The calculation is then: tan = x/d with = 40 and tan 40 0.84 = x/d x = 0.84 x d
Then the total width is w = 0.5 mm + 2 x x.
APPLICATION NOTE