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.
The input is the raw_value read from the sensor. To use that equation, you should set DECIM_RATE to 512.
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.
Thank you for previous response. I have additional question ahead.
Should i expect any reasonable UVI without diffuser?
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.