Short Range Issue with VL53L4CD
- September 30, 2022
- 1 reply
- 1962 views
Hi,
I've been testing out the VL53L4CD and it's working really well so far, however I'm having a bit of an issue at one specific short range point. Everything works smoothly until I get to about 15 mm above the sensor, then the numbers jump up erratically, intermittently, and actually start to decrease the closer I get towards the 0 mm mark (when my hand completely covers the sensor). I've attached a screenshot of my serial monitor readings when my hand is hovering roughly 15mm above the sensor (with the values in my code constrained between min 200 kcps and max 10,000 kcps), and as you can see it jumps to 10,000 sporadically. Basically I just want a gradual increase and hit the max threshold (i.e. 10,000 or whatever I set it to) when my hand is physically touching the sensor.
I suspected this might have something to do with either the "sigma threshold" or the "signal threshold" described on page 9 of the PDF attached (section 3.3), because a default value of 15mm is mentioned there, however when I try to include either of those functions in my code and setting them to 0 it doesn't seem to make a difference. So maybe I'm way off base with that.
Is it possible these sensors aren't as reliable at very short distances? Or do I need to calibrate something else? Any help would be greatly appreciated, thanks!
