VL6180x offset issues
Hi,
I am facing some issues related with VL6180x offset calibration (I am not using cover glass, and I have tested many sensors on breakout boards from Adafruit and Pololu).
First, with default SYSRANGE__PART_TO_PART_RANGE_OFFSET value, range measurement is 150:350mm instead of 0:100mm. (With target at 160mm I get 10mm from sensor, etc). So first 0-150 mm I get 0 as range measure.
If applying calibration procedure : https://www.st.com/resource/en/application_note/dm00122600-vl6180x-basic-ranging-application-note-stmicroelectronics.pdf I get:
- Initial measurement with default factory offset when target is at 50mm is 0
- Changing 0x24 to 0 and collecting more than 10 measurements ( All measurements = 0 mm range)
- Offset = 50 - 0 = 50
- AppLying offset = 50 into 0x24 in C2s format --> Now measured range when target is at 50 mm is 25 (target from 0 to 50mm I get 25mm as range measurement), and maximum length measured is 225
- Applying offset = 60 -> Range measurement from 35 to 235
- Applying offset = 70 -> Range measurement from 45 to 245
- Applying offset = 80 -> Range measurement from 55 to 255
Any idea of what could be happening?
Kind Regards,
Rafa
