cancel
Showing results for 
Search instead for 
Did you mean: 

How to calibrate VL53L0x

zhy
Associate III

Hi,

     1》In the dark,Place the white target 140mm from the sensor

          call function

         Status = VL53L0X_perform_offset_calibration(&vl53l0x_dev,0x8c0000,&pOffsetMicroMeter);
     2》In indoor environments ,Place the black target  600mm from sensor
         call function
         Status = VL53L0X_perform_xtalk_calibration(&vl53l0x_dev, 0x2580000, &pXTalkCompensationRateMegaCps);
    3》in main function       
        Status = VL53L0X_set_offset_calibration_data_micro_meter(&vl53l0x_dev,&pOffsetMicroMeter);  
        Status = VL53L0X_SetXTalkCompensationRateMegaCps(&vl53l0x_dev,pXTalkCompensationRateMegaCps); 
    Is the above process correct?  
       But
       
     Status = VL53L0X_set_offset_calibration_data_micro_meter(&vl53l0x_dev,11300);              //设置offset
     Status = VL53L0X_get_offset_calibration_data_micro_meter(&vl53l0x_dev,&pOffsetMicroMeter);   //读取offset
         pOffsetMicroMeter = 11250   
    if ony call 
          Status = VL53L0X_get_offset_calibration_data_micro_meter(&vl53l0x_dev,&pOffsetMicroMeter);   //读取offset
          pOffsetMicroMeter = 32150        
   it seem :
           dtat not be write NVM
                                                      best wish
                                                                      thank you

     

1 REPLY 1
zhy
Associate III
   Hi, 
   
    PALDevDataSet(Dev, LinearityCorrectiveGain, 1000);        //How to adjust it if I have a cover plate?
    PALDevDataSet(Dev, DmaxCalRangeMilliMeter, 400);        //  Only 400mm can be measured  ?
    PALDevDataSet(Dev, DmaxCalSignalRateRtnMegaCps,
        (FixPoint1616_t)((0x00016B85))); /* 1.42 No Cover Glass*/   //Do I need to adjust it if I have a cover plate?