Comments (6)
Hopefully fixed with the 2.0.0 release:
https://github.com/adafruit/Adafruit_VEML7700/releases/tag/2.0.0
from adafruit_veml7700.
@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
from adafruit_veml7700.
hmm unclear. i think it should be a new function called lux_normalize() that will turn the plain lux thru the special function
from adafruit_veml7700.
https://forums.adafruit.com/viewtopic.php?f=19&t=152997&p=758582#p758582
from adafruit_veml7700.
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…
https://github.com/jeff-winn/dotnet-veml7700/blob/main/docs/Adafruit_VEML7700/designingveml7700.pdf
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…
https://github.com/jeff-winn/dotnet-veml7700/blob/main/src/Adafruit.Devices.Veml7700/Adafruit_VEML7700.cs
from adafruit_veml7700.
from adafruit_veml7700.
Related Issues (13)
- Gain and Integration Time Not Changing HOT 1
- "Adafruit Unified Sensor" missing from the 'depends' statement in 'library.properties' file HOT 6
- Bug in example code HOT 4
- Delay introduced when reading sensor from v1.2.0 to v2.0.1 HOT 5
- Auto lux not working for low light levels HOT 3
- When I tried to build the sample app, it requires Adafruit_i2cDevice.h and Adafruit_I2cregister.h . These files are not found by the compiler. I checked on my machine, and no files of these names exist anywhere on my machine. There is not such file in the library, nor is there another library that has a name like this. The only places I could find the names in a github search were in the header files for Adafruit_VEML7700 sources that do a #include. Something is missing here. HOT 1
- VEML7700 with D1 mini and Tasmota HOT 2
- ESP32 Compile Issues
- Auto Lux gets stuck in dark conditions HOT 4
- Reading value stuck HOT 2
- readLux() will return -1 for NOWAIT options HOT 1
- Lux value does not exceed 471.85 LUX. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_veml7700.