AS7331 Calculation of the Result

Dear sirs.

I have a problem to Calculate UV-A UV-B and UVC.

The Register 6-10 have followed data.

REG 6=0x9C

REG7=0xCB

REG8=0x58

REG9=0x52

REG10=0x1h

IF i receiver 17,5,5 for UVA-UVB and UVC.

What are

UV-A=?

UV-B=?

UV-C=?

The calculation for TEMP is very Clear.

Tchip=Register1*0,05-66,9.

The calculation for UV is NOT clear.

I looking forward to hear from you.
Bjarne Profort

Section 6.1 Optical Characteristics of the AS7331 data sheet gives the sensitivity values for various gain settings.

Dividing the counts by the appropriate sensitivity values gives the approximate incoming intensity in uW/cm^2, per channel.

Study the data sheet and keep a copy handy, as it is by far the best resource.

1 Like

As jremington said…and also if you’re after the code’s conversion, it starts on line ~274 here (and as it mentions, it refers to 7.4 equation 4 also from the datasheet)