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

ALS reading unreliable due to variable 'range' setting #1

Open
ehegnes opened this issue Oct 24, 2014 · 0 comments
Open

ALS reading unreliable due to variable 'range' setting #1

ehegnes opened this issue Oct 24, 2014 · 0 comments
Labels

Comments

@ehegnes
Copy link
Owner

ehegnes commented Oct 24, 2014

The range of the IR reading can be capped at any value in /sys/bus/iio/devices/iio:device0/range_available. It seems that /sys/bus/iio/devices/iio:device0/range is the current maximum reading, however this is not empirically true. I would assume that this maximum value (range) increases when the current maximum reading is observed for a specified length of time. A reading of above 1000 lux throws off the calibration, as the proportionality of the reading changes.

Either the script must be made to account for these changes in the range, through normalization, or the range must be maintained at a consistent value (probably the maximum value in range_available).

@ehegnes ehegnes added the bug label Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant