Skip to content
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

TSL2561 -> question about Value/Level #1333

Closed
Stan92 opened this issue May 1, 2017 · 10 comments
Closed

TSL2561 -> question about Value/Level #1333

Stan92 opened this issue May 1, 2017 · 10 comments

Comments

@Stan92
Copy link

Stan92 commented May 1, 2017

Hi,
Need to know if it's correct to get value over 80000 and level over 1.0?
I m using the Light controller with a TSL2561 (and a PI 3), and I get these kind of values.
From the documentation, my understanding was the level data should be between 0 & 1.
Thanks for your support as well as the library..

@rwaldron
Copy link
Owner

rwaldron commented May 1, 2017

Sounds like bugs!

I will try to repro this tomorrow and see what I can learn. In the meantime, can you describe the conditions in which this sensor is exposed when these readings occur?

@Stan92
Copy link
Author

Stan92 commented May 2, 2017

The sensor is behind a plank of wood inside a room (the TLS2561 sensor is the one on the top)

tls

@Stan92
Copy link
Author

Stan92 commented May 2, 2017

I had some doubts about the sensor itself then I tested using a python code
https://github.com/ControlEverythingCommunity/TSL2561/blob/master/Python/TSL2561.py

It seems the values look like good using this code.
I get with the same light conditions 346 Lux vs 4149

@rwaldron rwaldron changed the title TLS2561 -> question about Value/Level TSL2561 -> question about Value/Level May 2, 2017
@rwaldron
Copy link
Owner

rwaldron commented May 2, 2017

Thanks for this additional information

@rwaldron
Copy link
Owner

rwaldron commented May 2, 2017

So, I can confirm that I had different numbers as well, when compared to Adafruit's own C libraries. I looked in the source and the only difference that I could identify was that they are using the 16X gain and 13ms integration time. When I change J5 to these settings, I get the same results.

@Stan92
Copy link
Author

Stan92 commented May 2, 2017

Sorry for my ignorance, very new to the library.. what do you mean by "when I change J5"?
EDIT : Oops.. J5 = Johnny Five :-)
EDIT 2 : Could you please tell me how/where to change the settings?

@rwaldron
Copy link
Owner

rwaldron commented May 3, 2017

@Stan92 just go ahead and do npm install johnny-five, make sure you have version 0.10.12 and the changes are already in the library :)

@Stan92
Copy link
Author

Stan92 commented May 3, 2017

I thank you very much... it seems ok :-) great job

@rwaldron
Copy link
Owner

rwaldron commented May 3, 2017

Woo! Excellent :D

@arcadeJHS
Copy link

Sorry to bother you again on a closed topic, but I have got a newbie question!
I am experimenting with the Adafruit TSL2561, and I am not sure about the values I am reading.

Is the "this.value" the direct raw measure of lux sensed by the device?
I mean, does a record of "1000" mean I am measuring "1000 lux"?

So is it correct to assume, reading values from TSL2561 with Johnny-Five, a scale from "0" to "40.000" lux?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants