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.
Hello,
I have some questions regarding calibration of OPT3101 chip.
1. If I do Xtalk Illumination calibration, there is no need for Xtalk electrical calibration as this is included in illumination xtalk right?
2. XTALK_FILT_TIME_CONST has large impact on measured iPhase and qPhase in Calibration. If I program a smaller value to XTALK_FILT_TIME_CONST (calculated 4) than default (8) iPhase and qPhase can get so large that they can not be scaled down to 16bit anymore (as ILLUM_XTALK_REG_SCALE max is 7). Can I leave this value on default or is there any issues then?
3. There is only one ILLUM_XTALK_REG_SCALE register for ILLUM_DAC_L and ILLUM_DAC_H. So when using HDR mode I have to scale to fit the largest ILLUM_XTALK_REG_SCALE from HDR0 and HDR1 and have compromises in accuracy?
4. If I do offset calibration at a certain distance, it can happen that if an object come close to the sensor the phase value will go below 0 and jump to a high number. Is there any recommended way to prevent this? Add own offset or recalculate if it goes below 0?
Thanks
Regards
Urs
Hi Alex,
thank you for your answers.
I will try to make internal xtalk calibration separately. But at room temperature it shouldn't make any big difference if I understood correctly? Right now I do only illumination xtalk calibration and only write to the xPHASE_XTALK_REG_HDRxx registers and nothing to the xPHASE_XTALK_INT_REG registers.
2) Yes I mean exactly this. With smaller XTALK_FILT_TIME_CONST I get constantly higher numbers in iPhase and qPhase. My calculation is about the same:
uint8_t xtalkFilterTau = ceil(10-log2(opt3101Config.NUM_AVG_SUB_FRAMES + 1));
and I actually wait 20 Tau for everything to settle and get decent accuracy. waitTime = 20*pow(2, xtalkFilterTau)*frameTimeMs; with frameTimeMs = 0.25*(opt3101Config.NUM_AVG_SUB_FRAMES + 1)
What should be a good value for low Xtalk? I get around 170k for iPhase and 180k for qPhase as an example on the prototypes.
Best,
Urs