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.

OPT3101: OPT3101 Phase ambient coefficient

Part Number: OPT3101

Hi Team:

              In slau791.pdf  3.6.3 Phase offset Ambient coefficient

              Phase offset ambient light calibration is required at the determined distance,the ambient light setting parameter in the SDK code is 0;

             In this step, how to set the ambient light parameters? Do we need to use external measuring instruments to measure the ambient light?

             Serial print parameter:

            This parameter is phase, not phase offset, which parameter is used to calculate the phase offset?

             Thanks!

             

  • Pengsheng,

      Yes you will need a light level meter t measure the ambient light level. You will need an external light source that will produce >10000 codes of ambient. Set the distance, measure the ambient at this distance. The phase offset is calculated in 4.3 Phase Offset Calibration, of OPT3101 Distance Sensor System Calibration. Then follow the block diagram of figure 5. on page 9. The final step is where you will store the new data.

  • Gordon:

         Sorry,I can't understand function envController.setAmbientLight() ,the parameter how much should be set ?

  • Pengsheng,

    This function pauses the program and waits for a user input to continue and is assuming that the user is manually setting the ambient light.

    Slau791 section 3.6.3.1

  • Gordon:

             1:Phase offset Ambient coefficient calibration is not to be done in a dark environment?

             2:Is this calibration correct? After setting the distance between OPT3101 and the target, use the halogen lamp as the ambient light, adjust the brightness, read the phase, and read the ambient ?

             3:The maximum value of OPT3101 the ambient  tested was 410, is right?

             4: Slau791 section 3.6.3.1 Similar to the phase temperature coefficient, phase offset is recommended to be measured with very high signal amplitude (between 16000 and 24000) to minimize error from residue crosstalk. The target color or distance does not matter because the goal is to measure the variation of phase offset with ambient and not the phase offset itself. To get the highest ambient level for a given ambient lamp, it is recommended to run this with the lowest current setting. Running at lowest current setting would help move the target closer to the OPT3101 system, making it easy to illuminate with target with ambient light.

                 it is recommended to run this with the lowest current setting. Running at lowest current setting would help move the target closer to the OPT3101 system,In SDK

    void OPT3101::device::calibrationSession_perDesignCalibrationPhaseAmbient(),
                
                 
               envController.refDistancesInMM[c0][c1] is at lowest current set?

     Thanks!

  • Pengsheng,

      This does not sound correct. You have 4 currents and user defined distances for Super HDR. Use the lowest current and user defined distance then turn on the lamp for a high ambient environment. The background should not be moved. Use the halogen lamp to sweep the ambient levels. Starting far away and slowly moving closer allows the full range of ambient levels to be covered.

    Please look at your setup. Let me know if you still have problems.