- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
03-15-2017 09:40 AM
UV index = 0.0187(0.00391 Input^2 + Input)
I want to use given equation to measure UVI, but datasheet doesn't mention what exactly is Input.
My channel 0 configuration is following, other values are default 0.
SI_CH0.ADCCONFIG.S.ADCMUX = am_UV;
SI_CH0.ADCCONFIG.S.DECIMRATE = dr_4096;
SI_CH0.ADCSENS.S.HW_GAIN = 9;
With these settings i'am using Force command to measure what?
One reading witch means "Input"? 512 consecutive measurements added? averaged?
I guess i need to do some arithmetics with raw values to get Input. Please help me to put on right track.
03-15-2017 11:07 AM
I plotted equation result. Is it normal having 0-250 raw value working range?
I expected different equation which would use at least ~16 bits of 24 bits available range.
Please confirm that this result is normal.
03-15-2017 11:21 AM
The shape of the curve applies to the case with diffuser. Without diffuser, the result won't be as accurate.
If you change the configuration, you can scale the result accordingly to fit in the same curve.