SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By SamCE
#186125
I am using the sparkfun VL6180 Rangefinder Sensor, I am unable to find how to get an output of the distance to target that gives accuracy less than the nearest mm (if it is possible). I think this data must exist from the sensor but the coding is clipping it somewhere in the processing, I would like to be able to see if the distance is 12.6mm instead of 13mm for example.

I have looked around in the functions of the demo library (https://github.com/sparkfun/ToF_Range_F ... sor-VL6180) and read through the datasheet (https://cdn.sparkfun.com/datasheets/Sen ... 112632.pdf) for a long while and have tried to find a way through various functions mainly focusing on 'RESULT__RANGE_RAW' but unfortunately with no luck.

Any help on this that anyone could offer, even just to point me towards the right methodology would be amazing.

Thankyou, Sam
User avatar
By Ross Robotics
#186139
Resolution is 1mm with accuracy @+/- 1mm
By SamCE
#186140
So just to confirm, the data that the sensor supplies is only ever to the closest mm and there is no way to output anything other than that?
User avatar
By Ross Robotics
#186142
Correct