mirror of
https://github.com/cmur2/python-veml6070.git
synced 2026-05-30 19:47:13 +02:00
module: calculate UVA light intensity correctly for rset != RSET_240K
- compensation for rset != RSET_240K was wrong, it increased UVA power/ADC step for rset > RSET_240K - UVA power/ADC step should have been decreasing as refresh time (sampling time) got longer - same behavior as with integration_time setting, that works correctly
This commit is contained in:
@@ -19,6 +19,7 @@ Not all functions of the chip are supported, especially not the interrupt handli
|
||||
In September 2019 it was discovered (and fixed) that:
|
||||
|
||||
- previously the sensor was never shutdown between measurements which wastes power but still takes measurements successfully
|
||||
- the UVA light intensity was calculated wrongly (too high) for `rset != RSET_240K` due to wrong compensation: higher `rset` leads to higher sampling time leads to higher absolute ADC step counts which *should* lead to every ADC step indicating a smaller amount of `W/(m*m)` of UVA power and a higher precision of the final UVA power but it wrongly behaved the opposite way. The `integration_time` worked correctly all the time.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user