Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lux calculation differs from sensor documentation #41

Open
adolfintel opened this issue Jan 5, 2021 · 0 comments
Open

Lux calculation differs from sensor documentation #41

adolfintel opened this issue Jan 5, 2021 · 0 comments

Comments

@adolfintel
Copy link

This library calculates lux with just this formula:

illuminance = (-0.32466F * r) + (1.57837F * g) + (-0.73191F * b);

The sensor documentation here, in section 3.2 shows that an additional step is required to calculate the lux value: the calculated value needs to be divided by INTEGRATION_TIME_MS*SENSOR_GAIN/DGF, where DGF for this sensor is 310 assuming there is no glass in front of if (see appendix 1).

Is there a reason why the lux calculation was implemented this way?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant