2024-07-05 06:26 AM
Hi! I am trying to built this ToF rangefinder using this tutorial
But instead of using the VL53L0X I am using the VL53L4CX
I have attempted with 2 different ESP32-C3 Controllers and 2 separate VL53L4CX sensors and no matter what I do I can't get any I2C signal.
My current setup is as follows:
A brand new out of the box VL53L4CX TOF sensor wired up as follows
D0 = SCL
D1 = SDA
GND = GND
3V3 = VIN
I am using the built in connector on the sensor, so I don't have to do any soldering. But on the first sensor I had I also tried the pins directly. Neither has worked.
I have tried all the ESP32 pins D0-D10.
I have tried other I2C products on the same ESP32-C3 and they are working fine.
I have tried a whole a bunch of variations on the I2C detector scripts and none of them see the VL53L4CX. The scripts registers other I2C devices just fine.
Any Ideas what I could do next?
Should I just give up using the VL53L4CX?
2024-07-05 06:55 AM - edited 2024-07-05 07:35 AM
@LasseKruse wrote:I am using the VL53L4CX
It appears to be on a 3rd-party breakout board - please supply full details (manufacturer's product page, schematic, etc).
The tutorial used a different 3rd-party breakout board - are you sure they're compatible?
@LasseKruse wrote:I can't get any I2C signal.
What, exactly, does that mean - stuck high? stuck low? other??
How do you observe it?
What do you see with the VL53L4CX disconnected?
The ESP32, as the I2C Master, is what "generates" the signals.
So, if there's no signals, then it's an ESP32 problem - nothing to do with ST.
Do you have correct pullups?
Can you successfully communicate with any other I2C devices?