2024-03-30 02:47 AM
Hi, i would like to increase the range of the VL6180X but i don't know which register i have to modify. I see the code in the RangingAndALS_NucleoXXX sample but i don't understand how the VL6180X register have been modified in order to increase the measuring range.
Solved! Go to Solution.
2024-04-02 07:57 AM
When we invented that chip, we expected it to range to 10cm or so. So the range result only needed to be one byte.
That should be fine they said.
but the 6180 can with a bright target get to 600mm and that doesn't fit in a byte.
So we put in a 'multiplier' which can be 2 or 3.
with a multiplier of 2, and a real distance of 500 mm, we return 250.
It's on you to take the result we send and do the x2.
Otherwise there is nothing else to set.
but you are going to have to remember which multiplier you set.
look for VL6180x_UpscaleSetScaling() in the datasheet.
-john
2024-04-02 07:57 AM
When we invented that chip, we expected it to range to 10cm or so. So the range result only needed to be one byte.
That should be fine they said.
but the 6180 can with a bright target get to 600mm and that doesn't fit in a byte.
So we put in a 'multiplier' which can be 2 or 3.
with a multiplier of 2, and a real distance of 500 mm, we return 250.
It's on you to take the result we send and do the x2.
Otherwise there is nothing else to set.
but you are going to have to remember which multiplier you set.
look for VL6180x_UpscaleSetScaling() in the datasheet.
-john