cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L4CD soft reset or shutdown

Jason Mount
Associate III

How do you perform a soft reset on the VL53L4CD if XSHUT is not used?  I can't seem to find an example.  I see the VL53L4CD_ULP_SOFT_RESET or VL53L4CD_SOFT_RESET is defined, but I don't know what to write to it.

Also, how do you shut the sensor down without XSHUT, is telling it to StopRanging enough?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

There are two parts to the sensor - one is the I2C interface and the other is the ranging engine. 

Writing a '1' to the soft reset will reboot the ranging engine - but you should not need to do that. 

The Xshut pin will indeed shutdown the entire sensor. But unless you want to hold it in reset for some reason - like changing the I2C address of a different sensor - you should not need to do that either. 

Simplest way to operate is simply to tell the sensor to stop ranging. The ranging engine will stop. The I2C interface will still be running, and you can issue the restart at any time. It will take off from where you were. All settings intact.

It does consume some power while stopped as we are keeping the memory and the I2C alive. But it's really minor.  

 


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

View solution in original post

1 REPLY 1
John E KVAM
ST Employee

There are two parts to the sensor - one is the I2C interface and the other is the ranging engine. 

Writing a '1' to the soft reset will reboot the ranging engine - but you should not need to do that. 

The Xshut pin will indeed shutdown the entire sensor. But unless you want to hold it in reset for some reason - like changing the I2C address of a different sensor - you should not need to do that either. 

Simplest way to operate is simply to tell the sensor to stop ranging. The ranging engine will stop. The I2C interface will still be running, and you can issue the restart at any time. It will take off from where you were. All settings intact.

It does consume some power while stopped as we are keeping the memory and the I2C alive. But it's really minor.  

 


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.