How do you get an interrupt if there is no target in the measuring range? (ULD API 3.4.0, VL53L1X)
The function VL53L1X_SetDistanceThreshold has as a comment that the parameter IntOnNoTarget should no longer be used. I also found in my tests that the configuration has no effect. Can someone provide more information on this?
// @param IntOnNoTarget = 0 (No longer used - just use 0)
VL53L1X_ERROR VL53L1X_SetDistanceThreshold(uint16_t dev, uint16_t ThreshLow, uint16_t ThreshHigh, uint8_t Window, uint8_t IntOnNoTarget);What I also found that the GPIO interrupt "above" is not triggered without a wall / ceiling in the background of the measuring range.
How to reproduce?
- Vl53L1X is aligned in the air
- Distance mode short
- Threshold is set to 30cm
- Hand is brought into the area <30cm, and
- quickly removed to the side
- No interrupt is recognized
However, if you do not remove your hand to the side, but upwards away from the sensor, the interrupt is recognized. Is that a weakness of ToF or of the sensor? Can you set a timeout within the sensor so that an interrupt is triggered?
