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

Si1133 Light sensor reports bogus UV values #209

Closed
terrillmoore opened this issue Aug 20, 2019 · 0 comments
Closed

Si1133 Light sensor reports bogus UV values #209

terrillmoore opened this issue Aug 20, 2019 · 0 comments
Assignees
Labels

Comments

@terrillmoore
Copy link
Member

The SI1133 reports either 0 or full-scale positive for UV. Regardless of the lack of calibration, this is a bad thing; we should report something that scales properly and responds to external inputs.

Review of the code against SiLabs sample code shows that our UV configuration was very different. Review against the datasheet shows that we don't properly set up for forced mode (with the measure counter index set to zero). In force mode, we should use the IRQ register to know when we're done; so we need a polling routine to check it.

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