Seeed-Studio / Grove_Digital_Light_Sensor

TSL2561 & ISL29035
MIT License
13 stars 13 forks source link

Data discontinuity #3

Open KHadef opened 8 years ago

KHadef commented 8 years ago

First thank you for the library.

I am conducting a simple experiment. I have an LED that changes it's intensity slowly and continuously. I am using the visible mode and I want to plot a graph of lux value vs. the change in LED intensity. I am having a trouble with lux readings, they are discrete, for example the reading stays at 0 for some time then suddenly jump to 14, and so on. What I want is a continuous change in lux.

Is the problem due to the sensor sensitivity or due to something in the library that could be changed? Is it possible to modify the library in order to be able to read lux values in decimals or more continuous manner? Would you please do that for us if possible? Thank you.

ackPeng commented 1 week ago

@KHadef This is indeed discrete, and this may be the current real data. Sensors often have these jump conditions. Perhaps some filtering algorithms can be used to eliminate this data. Do you have any questions about this?