Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT4048: Fluctuating data from PWM controlled light source.

Part Number: OPT4048

Tool/software:

I'm using the OPT4048 light sensor to measure the qualities of a sample while a light is being shined on it. I believe the values are fluctuating due to the timing of the PWM signals. If I look strictly at the CCT values I can observe fluctuations anywhere from 100 kelvin difference to 700 kelvin difference. 

Here are the settings used by the sensor in code:

[ 63][I][light_sensor.cpp:51] sensor_setup(): Fault Count (R/W): 0
[ 69][I][light_sensor.cpp:52] sensor_setup(): Polarity (R/W): 0
[ 75][I][light_sensor.cpp:53] sensor_setup(): Operating Mode (R/W): 1
[ 81][I][light_sensor.cpp:54] sensor_setup(): Conversion time (R/W): 3
[ 88][I][light_sensor.cpp:55] sensor_setup(): Range Number (R/W): 3
[ 94][I][light_sensor.cpp:56] sensor_setup(): Conversion time (R/W): 8
[ 101][I][light_sensor.cpp:57] sensor_setup(): Quick Wake-Up (R/W): c
[ 107][I][light_sensor.cpp:58] sensor_setup(): ------------------------------
[ 115][I][light_sensor.cpp:68] sensor_setup(): OPT4048 Current Config B:
[ 121][I][light_sensor.cpp:69] sensor_setup(): ------------------------------
[ 128][I][light_sensor.cpp:70] sensor_setup(): I2C Burst (R/W): 1
[ 134][I][light_sensor.cpp:71] sensor_setup(): Interrupt Config (R/W): 0
[ 140][I][light_sensor.cpp:72] sensor_setup(): Interrupt Direction (R/W): 1
[ 147][I][light_sensor.cpp:73] sensor_setup(): Threshold Channel (R/W): 0

Is there an elegant way to make sure the sensor does not read between PWM signals or to ensure the values stay more consistent?