2018-05-23 05:05 AM
We use VL53L1 connected to our MCU board without xVL53L1 expansion board as DevId = 0/1/2...
By using MCU controlling the IO to off/on the XSHUT pin of sensor but during init. process,it fails at
VL53L1_WaitDeviceBooted() with error message,
VL53L1_ERROR_CONTROL_
INTERFACE
flow is as below:
1. XSHUT with all 3 sensor to low for device-disable.
2. each enable by XSHUT to high with standard init process as example code suggests
-> it fails at this stage, (I2C seems not working..,,. is it related with
==
/* 2V8 power mode selection codex 447463 */
#ifdef USE_I2C_2V8Status = VL53L1_RdByte(Dev, VL53L1_PAD_I2C_HV__EXTSUP_CONFIG, &i);
if (Status == VL53L1_ERROR_NONE) { i = (i & 0xfe) | 0x01; Status = VL53L1_WrByte(Dev, VL53L1_PAD_I2C_HV__EXTSUP_CONFIG, i); }#endif==
but it is called at fun VL53L1_DataInit() after
VL53L1_WaitDeviceBooted() and this will cause
I2C action failure duringVL53L1_WaitDeviceBooted(), any help?
2018-05-27 08:50 PM
By the way,
we try using only 1 sensor without expander board but using GPIO1 to shut off/turn on the sensor
and however it doesn' t work either. We find I2C bus is not workable..... don't know any other feasibility consideration that we missed???2018-05-28 01:02 AM
Our supply voltage is v3.3, not v2.8, is that the problem of it?