-
Notifications
You must be signed in to change notification settings - Fork 19
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 calc fix #1
Comments
@ladyada OP says the lux correction is to be applied only at 25ms 1/8 gain so I'll give it a go and see how it performs |
hmm unclear. i think it should be a new function called lux_normalize() that will turn the plain lux thru the special function |
I was recently rewriting the driver for this in C# for use in a .NET Core application and may have found the crux of the issue. On the data sheet for the VEML7700, the document clearly contains a multiplier table based on the values of gain and integration time. This driver has hard coded a single value out of that table rather than properly adjust the multiplier. Your multiplier is hard coded at 0.0576! This likely means all numbers produced other than those whose settings match are off. The methods in this driver would be normalize_resolution and readLux where that number has been hard coded. This is likely why there is other logic to try and readjust the value output. Here’s a direct link to the PDF I kept a copy of so I wouldn’t have to track it down again… The multiplier table is on page 5 of that document. Here’s a link to what I wrote, the AdjustLuxMultiplier method in the class is the important one… |
Hopefully fixed with the 2.0.0 release: |
https://forums.adafruit.com/viewtopic.php?f=19&t=149893&p=748684#p748675
The text was updated successfully, but these errors were encountered: