cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L0X: Verifying Changed Address

David Yak
Associate
Posted on September 05, 2017 at 22:29

I'm using one of these sensors with a nrf52 board. I'm looking for a way to check/verify if the address on one of the sensors is already set to what I want to set it to (before I try to set it, obviously). My idea was to check a register on the sensor before I try changing anything, but I've found that ST does not provide registers for this sensor so that's out of the question, and its depleted all my ideas. Anyone know how I can try this?

The reason I ask is sometimes I re-flash my code to the board without power cycling the board (therefore the sensors do not power cycle), and that causes an issue when I try to change the address of a sensor that has already had its address changed.

#vl53l0x #nrf52
1 REPLY 1
Andrew Fletcher
Associate II
Posted on October 09, 2017 at 03:10

I use

VL53L0X_GetProductRevision(tofSens, &major, &minor);�?

To find this out which seems? to be working OK.