cancel
Showing results for 
Search instead for 
Did you mean: 

How do you turn the VL53L4CX extended mode on in python3 ??

peterhczaja
Associate

How do you turn the VL53L4CX extended mode on in python3 ??

3 REPLIES 3

It's not part of the standard language.

Do you mean, "what Python3 libraries are available for the VL53L4CX which support extended mode?"

Or do you already have a library? If so, say which one.

 

How to write your question to maximize your chances to find a solution

I've install the PYPI version of VL53L1X, which appears to control the VL53L4CX perfectly. However, I have experimented with the ROI at full extent i.e. 0, 15, 15, 0, and with the range varying from 1 to 3 i.e. short, medium and long. Sometimes I get "wrap around", and sometimes I don't, depending on range of object and range setting. But, I've now set the ROI to as small as it can go i.e. 4, 8, 8, 4, and using ranges 2 and 3 I get some good clear results, with no wrap around. But, where I expected the range to plateau out at distances over 4m, it actually just records around 2.5m when in Long (3) mode. So if extended mode was turned on, would the distances recorded be more accurate and longer ?

As you can see from the 2 attached scans, both have the same parameters i.e. timing budget and ROI, but one is long and the other medium, range seeting 3 and 2 respectively. They look roughly the same until the distances between 135 and 180 degrees, where they differ dramatically. Also, in  that area (135 to 180 degrees) the distance should go further than 250cm - they should in theory go off the scale.


@peterhczaja wrote:

I've install the PYPI version of VL53L1X.


This: https://pypi.org/project/VL53L1X/ ?

There are contact links for the maintainers on that page