Skip to content

luxFactor

Stefan Armborst edited this page Jan 27, 2020 · 18 revisions

luxFactor

With this factor, you can calibrate the sensor with an professional lux meter.
It is also useful, to calibrate 2 BH175 sensors with different sensitivities to the same sensitivity.

float luxFactor;

result float

public value, that can be set to any value in the range of float.


Hints:

This is the conversion factor to Lux. This value is chip depended and can vary between 0.96 and 1.44.
The default value is 1.2.
If you calculate the deviation for 100 lux (at luxFactor = 1.2) you will get a range between 83 Lux and 125 Lux with the limits above.

The formula used by this library to calculate Lux is:
Lux = raw value / luxFactor * Factor * 69 / mtreg.

So, if you increase the luxFactor you will decrease the Lux value.

(Factor is 0.5 at BH1750Quality BH1750_QUALITY_HIGH2 and 1 at BH1750Quality BH1750_QUALITY_HIGH and BH1750_QUALITY_LOW.

Clone this wiki locally