2022-08-23 11:26 AM
2022-08-23 11:30 AM
Can't you scan the I2C address space, and check the WHO_AM_I registers?
2022-08-23 12:11 PM
We can scan the bus and locate - see the part.
Most memory devices do contain a manufacturer and device ID register.
I don't believe the TOF devices have a WHO_AM_I indexed register. (At least not documented...)
2022-08-23 01:57 PM
All the ST ToF sensors will talk on 0x29 (7-bit address) 0x52/0x53 are the write/read addresses.
So if you have more than one, you have an issue.
But if you are trying to tell the difference between a VL53L0 and a VL53L1 then read address 0x00 and address 0x01. These will give you different numbers.