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: Calibration problem of OPT3101 EVM with MSP430F5529LP

Part Number: OPT3101
Other Parts Discussed in Thread: , MSP430F5529

Hi ti team,

1. Consult the network information. The E2E forum describes that the parameters of all the registers of OPT3101 can be read by Latte the script of the upper computer software, and the calibration parameters of the reading scheme can be realized. Here are the links:e2e.ti.com/.../2970101

2: Check whether the OPT3101_configuration.cpp file in the SDK provided by the OPT3101EVM needs to be re-generated using OPT3101_ConfiguratorTool, and if so, how to configure it.

3: When opening INLAB_STEP_1 conditional compilation in SDK and carrying out phase calibration on the set distance, whether it is necessary to remove the black electrical tape covered on the photoelectric receiving tube; The calibrated distance set in SDK is 10mm,20mm,80mm,120mm; Whether this distance can be flexibly adjusted according to the actual situation to ensure that the amplitude is in the range of 16000-24000;

4: The user manual in the SDK states that it is necessary to use the incubator for lighting crosstalk temperature calibration and phase offset temperature calibration. Are these two calibration steps necessary for factory calibration? How to do factory calibration?

  • Switch,

      Start by using Latte and a fresh OPT3101EVM. Read the registers and save the data to be used for comparison to the board you are working with. If its the EVM and you did not save the register data then I recommend you start with a fresh EVM in order to get a accurate register data collection for reference.

    Next open the configurator tool and follow the users guide to generate a new OPT3101_configuration.cpp file from a fresh EVM. Now you have a great reference tool with starting points. You will be able to create a new  OPT3101_configuration.cpp file for your working board.

    Next look at your board registers and compare the  OPT3101_configuration.cpp files to make sure they are similar. They wont be exact.

    Yes when calibrating distance you need to remove the tape. the reason for the tape is to eliminate optical crosstalk and calibrate out the electrical crosstalk. 

    You may be able to reuse some of the register data to minimize calibration, it really is up to you what to reuse, but in my opinion you need a full calibration on the factory floor or you will have unknown errors that will affect your accuracy and resolution.  

    Let me know if you have any questions. 

  • Hi Gordon 

    There are also the following questions:

    1. How to read the register data of the new OPT3101 EVM board through Latte

    2. What is the configuration of the OPT3101 Configurator Tool corresponding to the OPT3101_configuration.cpp file in the SDK? Can you provide the screenshot of this configuration

    3. INLAB_STEP_1 in SDK should select white or black background for measuring surface of 10mm, 20mm, 80mm and 120mm

    3. Use MSP430F5529 and OPT3101 EVM to open INLAB_STEP_1 compilation and burning in SDK, and after distance calibration, whether basic ranging can be carried out?

        

  • Pengsheng,

      Please read this document.  How to set up and calibrate OPT3101 based systems for proximity sensing  https://www.ti.com/lit/pdf/slau791

    Every question you are asking is answered in this app note. The OPT3101EVM comes fully calibrated. It's best if you use Latte to read the registers and save the default calibration for your EVM. Then you can play and learn how to do the calibration yourself.

    When Latte is open go the the task bar on the bottom of your screen and click on the Latte icon, another window should open allowing you to read and access the registers. You will also have a Python interface that will allow you to make changes if needed. Make sure to save the registers and setting for your EVM before proceeding so you can restore the original settings if needed. 

  • Gordon

    The MSP430F5529 was used to coordinate with OPT3101 EVM test and calibration, and the configuration was configured as Super-HDR mode in the OPT3101 Configurator Tool, as shown in the following figure:

    Complete the lighting crosstalk calibration measuring distance, the measuring distance is basically normal in the range of 10mm-220mm, and the ranging data is abnormal outside 230mm. What causes this phenomenon? Does the Super-HDR mode switch need to be operated by MCU? The output data is shown as follows:

  • Pengsheng,

      You need to do the calibration with the HDR mode turned off. In order to go back to operating mode with longer range you need to turn HDR back on.