Skip to main content
Associate II
August 31, 2025
Solved

Does the noise affect measurements on VL53L0X?

  • August 31, 2025
  • 2 replies
  • 294 views
Hi everyone,I'm working with the VL53L0X sensor and have a couple of questions:
  1. Does noise affect the sensor's measurements?
  2. Does the sensor include a checksum or mechanism to verify the integrity of I2C messages?
  3. Can adding capacitors to the I2C bus help reduce noise interference?
Thanks in advance for your help!
Best answer by John_Kvam

There is a lot to answer in this. 

So, let's talk about light how sunlight affects the result. Sunlight has 940nm light in its spectrum. And although there is less of it - because 940nm light is absorbed by water vapor in the upper atmosphere it's still significant. So the signal to noise ratio is the amount of signal the sensor can see above the sunlight's 'noise'.

But perhaps you meant noise on the power rails. That's pretty much handled by the sensor. We invented it for the cell-phone market and put a lot of power conditioning in due to the expected battery power drop. So, it's not really an issue. (But don't be *** about it. Put those recommended caps in there. )

Now I2C noise is the real killer. As a bit is clocked as the CLK pin drops, any glitch during this decent causes an extra bit to clock. And once the host and the sensor get out of sync, you end up with the famous 'line-stuck-low' issue. 

So, choosing your I2C configuration is really important. Keep your wires short. Keep them thick and good insulation helps. Sometimes twisted pair works better. And google how to choose a pull-up based on the capacitance of your system. (I'm software - I've never really understood the formula that's used to do this.)

It's not often that you need a checksum on the I2C as any minor glitch will just hang the bus. 

Good luck, 

- john

2 replies

John_KvamBest answer
Associate
August 31, 2025

There is a lot to answer in this. 

So, let's talk about light how sunlight affects the result. Sunlight has 940nm light in its spectrum. And although there is less of it - because 940nm light is absorbed by water vapor in the upper atmosphere it's still significant. So the signal to noise ratio is the amount of signal the sensor can see above the sunlight's 'noise'.

But perhaps you meant noise on the power rails. That's pretty much handled by the sensor. We invented it for the cell-phone market and put a lot of power conditioning in due to the expected battery power drop. So, it's not really an issue. (But don't be *** about it. Put those recommended caps in there. )

Now I2C noise is the real killer. As a bit is clocked as the CLK pin drops, any glitch during this decent causes an extra bit to clock. And once the host and the sensor get out of sync, you end up with the famous 'line-stuck-low' issue. 

So, choosing your I2C configuration is really important. Keep your wires short. Keep them thick and good insulation helps. Sometimes twisted pair works better. And google how to choose a pull-up based on the capacitance of your system. (I'm software - I've never really understood the formula that's used to do this.)

It's not often that you need a checksum on the I2C as any minor glitch will just hang the bus. 

Good luck, 

- john

"If this or any post solves your issue, please mark them as ""Accept as Solution"". It really helps the next guy.And if you notice anything wrong do not hesitate to ""Report Inappropriate Content"".I am a recently retired ST Employee. My former username was John E KVAM."
Associate II
October 10, 2025

Thanks John for your reply, I get everything!