How do you turn the VL53L4CX extended mode on in python3 ??
How do you turn the VL53L4CX extended mode on in python3 ??
How do you turn the VL53L4CX extended mode on in python3 ??
Short, Med, and Long define the 'pulse repetition rate'. It's how long the sensor waits before the next pulse.
If one waits long enough for the light to go out to 4M, you don't get as many pulses in say 30ms then you would have if you only waited for the light to go out to 2M.
More pulses means you get more photon detects. So, you get more accuracy, and you oddly, you can see faint targets more clearly.
I believe what you are seeing is the combination of both your distance mode and the reflectivity of your target.
When in long mode you are sending fewer pulses and thus getting fewer photons returning.
In medium mode, you get more pulses, and thus more photons.
If you increased your timing budget in 'long' mode so you got the same number of pulses, you should get the same distances.
So next let's talk about the different ways one can use the sensor.
The VL53L1X and the VL53L4CD use standard ranging.
The VL53L1CB and the VL53L4CX were intended to use Histogram ranging.
(Histogram ranging involves sending the raw data to your MCU and it is the power of your MCU that digs out the distance. It does a better job, but it takes more resources.)
If you use the Python L1X code, you are running your VL53L4CX in standard ranging mode, not histograms.
(And yes, it does work. The L4 and the L1 only differ in the VCSEL (laser). Otherwise, they are the same part.)
I see no reason that one angle is better than the other. I can only guess that you might have a window (and thus ambient light) affecting your measurements.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.