cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L1 sensors activate without expansion board but by using SHUT pin on/off

leo su
Associate II
Posted on May 23, 2018 at 14:05

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_2V8

Status = 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 during 

VL53L1_WaitDeviceBooted(), any help?

2 REPLIES 2
leo su
Associate II
Posted on May 28, 2018 at 05:50

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???

Posted on May 28, 2018 at 08:02

Our supply voltage is v3.3, not v2.8, is that the problem of it?