cancel
Showing results for 
Search instead for 
Did you mean: 

RingGesture: ToF VL53L5CX for finger and hand gestures

tjaekel
Lead

My project makes progress, see here:

https://youtu.be/ah19fWodqg8 

https://youtu.be/svEeEQ9jmDc 

My question:

When I set LPn low - is just the I2C disabled? Or would also an initiated ranging stop?
In order to save power: is there a need to set via I2C the mode, or would LPn low already bring the sensor into low power mode? (I am not convinced based on what I have studied in the datasheet).

Another question:

The RES signal on ToF sensor: does it reset the entire chip? As I understand, just the I2C is reset. In order to reset the entire chip, I had to toggle also both VDDs.

I have realized: when the chip is messed up (e.g. still running a range scan configured), just toggling RES is not enough. I need a power cycle of entire setup. Is this expected as "reset behavior"?

2 REPLIES 2
John E KVAM
ST Employee

LPn is the worst named pin ever. I suspect early in the design it was supposed to be LPn, but it evolved into simply an i2C off pin. I think the call it 'comms enable'.

To save power, you can issue the 'Stop' command. That should do it. 

But if the sensor is 'messed up' for some reason, and toggling the LPn (to clear i2c errors) your best next step is to indeed drop the VDDs.

- john


Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.

ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'

I agree:
LPn can mean LPx (and x for a number). Often we see nLP, telling me it is low active signal.
Instead of toggling VDDs (which I do not have as an option, just entire setup unpowered vs. powered), there is also nRST (which should reset the I2C on ToF sensors - wired, but not used yet).

So far, it works OK. Sometime, the ToF sensor config is messed up, I do a full system power cycle right now.

The 'Stop' command?
Yes, I enable ranging or disable it again (it should be the 'Stop'). Afterwards, I set LPn low for the current sensor. I "hope" it goes into lowest power mode, before I select and do the same with the next sensor.

My understanding:

  • just to stop the active ranging mode (via "Stop") is not yet the lowest power mode
    (just enters HP IDLE)
  • it needs also LPn low for the inactive sensor (what I do before changing to a different sensor)

TOF_power_states.png

LPn low for "LP IDLE" should do the trick.
But I think: you cannot go from "RANGING" just via LPn low directly to "LP IDLE" (what I have realized). It will not stop the active ranging (I did by mistake and saw still a huge heat generated, on all sensors, because all remain "active ranging", even LPn goes low!

Thank you.