2025-02-11 11:17 AM
Hi,
i'm playing around with the VL53L4CX after putting it on my own pcb (yay).
The user guide states that for the SPAD caliberation, NO target should be placed. The crosstalk requires a 600mm target.
Do i understand correctly that the SPAD caliberation therefor is best performed outside and upwards to the sky? Or maybe in a room that is at least 6 meter long?
It confuses me because i wonder how this is done in a factory where space is a premium :)
Kind regards,
Ruben
2025-02-11 11:51 AM
The requirements for the RefSPAD calculation are "no close target" and by that they mean 5cm or so.
If you wanted, in your factory to do the offset calculation at say 14cm (it's what we suggest). It would be fine to set up a target at 14cm, do the RefSpad calc, then do the offset calc.
Once that is done, we have to work on Crosstalk.
You need a target where the normal ranging ends up being 10-20% short. If you use a dark target, that might only be 30cm. Or it could be more depending on the target reflectivity and the quality of your coverglass.
Experiment to find this. Make sure the diameter of the target is at least 1/2 the distance you are ranging.
Once you have this distance. Create a set-up to do your calibration. Create some sort of flap that can fall down and create the 14cm offset target.
Fold the flap down, do the RefSpad and the offset cal. Then lift the flap and do the crosstalk cal.
If you have very consistent glass quality and the air gap between sensor and glass is consistent, consider calibration of the first few off the production line, then just use the worst of these calibration values for your entire line.
(The penalty for over calibration of the cross talk is a short measurement, but under calibration can lead to a ghost image - and you don't want that.
For the best accuracy, go ahead and crosstalk cal them all. But if you don't absolutely need the best accuracy, lots of people crosstalk the design, then just use the numbers.
- john
2025-02-11 12:21 PM - edited 2025-02-11 12:39 PM
Thanks john!
i'm assuming that i can not do the refSPAD calibration with the coverglass? For me it would mean placing the cover glass after the first refSPAD calibration - that's ok. It is another step though.
The manual states that the crosstalk should be done at 600mm in a dark environment. i have noticed that VL53L4CX_PerformOffsetPerVcselCalibration has a parameter, so i'm assuming that I can just put it at 300mm as well. But, the VL53L4CX_PerformXTalkCalibration does not. So is that what you're saying with the 10-20% short? Or should i just stick to the 600mm?
My setup is of course not a factory :) I'm a hobbyst and i'm just thinking to make a box for this where i can shove the device in and perform the calibration in there. I'm happy to do that in steps and in between put the coverglass on.
Additionally. In my setup it would be ideal if i could do these steps separately. Can i run the the refSPAD and PerformOffsetPerVcselCalibration in one method and GetCalibrationData(), to then load that again before doing the PerformXTalkCalibration?