Skip to main content
MFord.1
Associate III
August 10, 2021
Solved

VL53L0X returning "0" for SignalRateRtnMegaCps?

  • August 10, 2021
  • 1 reply
  • 1216 views

Hi,

I am running into a problem where the VL53L0x will return "0" for its SignalRateRtnMegaCps value for certain range measurements. Some sensors I have it does this an overwhelming amount of the time. Some sensors I only see this periodically.

I use this SignalRtn value to gauge how strong of a reading I received. The 0's happen in situations where I would certainly expect there to be a strong value for SignalRate.

Does anyone knows if this "0" means anything? Or if anyone has come across this before? Thanks

This topic has been closed for replies.
Best answer by John E KVAM

The thing to do is check the RangeStatus. I'm going to guess that the RangeStatus is non-zero.

The RangeStatus is NOT the function call status - but a register you have to ask for after the range is done.

This value will clue you in to why the ranging operation status failed.

Zero is the value we put into the signal strengh register when the range fails.

  • john

1 reply

John E KVAM
John E KVAMBest answer
ST Employee
August 18, 2021

The thing to do is check the RangeStatus. I'm going to guess that the RangeStatus is non-zero.

The RangeStatus is NOT the function call status - but a register you have to ask for after the range is done.

This value will clue you in to why the ranging operation status failed.

Zero is the value we put into the signal strengh register when the range fails.

  • john