Skip to main content
Jhern.1
Associate III
May 12, 2022
Question

What to change in order to range under high ambient light conditions (VL6180x)

  • May 12, 2022
  • 5 replies
  • 1640 views

Hello,

I am trying some settings on VL6180x for avoing "Max_Signal_To_Noise_Ratio" when ranginf under sunlight conditions.

I have tried to disable DMAX (#define DEF_DMAX_ENABLE     0), but still I get the MAX snr errror.

I have been trying to set other limit to SNR, Which I managed to do it, But no succes when ranging at sunlight.

I do not need high accuracy.

Regards, Ramon.

This topic has been closed for replies.

5 replies

Anne BIGOT
Technical Moderator
May 13, 2022

Hello Ramon,

You can try to reduce the noise by setting the readout__averaging_sample_period register

readout__averaging_sample_period: The internal readout averaging sample period can be

adjusted from 0 to 255. Increasing the sampling period decreases noise but also reduces the

effective max convergence time and increases power consumption:

You can find more details in the datasheet of the VL6180X here

Anne

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'
Jhern.1
Jhern.1Author
Associate III
May 13, 2022

Hello Anne,

Thanks for answering.

Note the error is given due to high ambient light.

0693W00000Npuf4QAB.pngDo you think by using longer sampling periods I can minimize the effect of the light?

Regards, Ramon.

Anne BIGOT
Technical Moderator
May 16, 2022

Hello,

Unless you really want to use the VL6180X, it is better to switch to the VL53L4CD outdoor. Please buy the evaluation kit and try it : P-NUCLEO-53L4A1.

Anne

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'
Jhern.1
Jhern.1Author
Associate III
May 19, 2022

Hi,

Thanks for your answer,

I see you can range up to 130cm with this part. I just need to range up to 15 cm. I have a solid obstacle at 15 cm and I need to detect objects between sensor and obstacle.

Do you think this part is ok for ranging at 15 cm maximum?

Regards, Ramon.

Anne BIGOT
Technical Moderator
January 10, 2024

Hello,

The VL53L4CD is a close distance sensor so it is OK for ranging at 15 cm.
Regards

 

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'