Adafruit_VL53L1X library with TOF sensor

Good Evening
Problems again I am attempting to use a _VL53L1X TOF sensor to measure a distance of 0-2 metres. Arduino IDE and the Adafruit_VL53L1X library are being used with the sample code.
When setup the sensor works adequatly upto a metre then starts to become non-linear and then runs out of steam at about 1.3 metres.
Hardware Documentation mentions 2 modes long (4m) and short (1.3m) there doesn't seem to be anything in the library to set the mode.
Timing budget has been set to various values upto 500ms but doesn't seem to make a difference.
Am I missing something?
Many thanks for the assistance in the past.

Well I seem to have found the answer the library supplied by Adafuit (adafruit_Vl531L1X) has the relevant code commented out.

It seems several librarys are based on a code driver supplied by manufacturer. For some reason the manufacturer doesn't detail the device's registers but expects all access via it's driver.
Found that VL53L1X by pololu has the relavent code and this has made a diffeerence in the way the device operates.
Not totally finished experimentation but looks like another hurdle over.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.