-
Notifications
You must be signed in to change notification settings - Fork 3
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
UV Index shows zero! #2
Comments
Actually if I lower the resolution to 16 bits, I get a UV Index. I also noticed that if I change the ALS from 18bit to 16bit, the lux readout is 4x higher (from ~15k to ~60k). While I assume the raw ALS would change, I expect to see similar lux levels, just with lower precision. I tried Adafruit's library, but bar an error in their code, it also doesn't calculate lux and UV Index, for same reason I wonder. I could also have a different version of the LTR390 chip, since the data sheet changed the UV Sensitivity count from 2300 to 1400, so maybe mine is an old (2300) version... |
@gotfredsen |
@gotfredsen |
@gotfredsen BTW I've found mistakes in setResolution and getResolution methods. I've corrected them and made new release 1.0.3 |
@levkovigor the ALS/Lux calculations seems perfect now, thank you. See below. However the UV Index calculation might be off. Using a gain of x3, the UV index seems dangerous high ;-). If I keep to x18 (and 20bit), I still get zero. And I accept my UV source might not be the best. I will find a more reliable source and test again.
|
@gotfredsen |
@levkovigor I have compared the LTR390 with two other UV Sensors: VEML6075 and SI1133, both end-of-life. UPDATE: |
@gotfredsen Changed return values of Lux and UV Index to float - 1.0.5
Lux and UV Index are different indicators and depend on the light source and environment |
New release - 1.0.6 |
I have tried out this library even though readUVS() gives data, the UV Index is zero:
Modded example:
Result:
The text was updated successfully, but these errors were encountered: