cancel
Showing results for 
Search instead for 
Did you mean: 

Does the noise affect measurements on VL53L0X?

till_1994_2025
Associate
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!
1 REPLY 1
John_Kvam
Senior

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.