I recently purchased 10 of these sensors.
I have tried with two different UNO Boards the UNO Q and the UNO R4
On both systems using the arduino ide and the Arduino library VL53L5CX and running the example builtin. it state the sensor are not found.
Did I get 10 dead sensors or is there something I am Missing?
Any assistance would be appreciated
if you connect VL53L5CX to Qwiic you have to select Wire1 instead of Wire
make 3 changes in the sketch from
Wire.begin(); //This resets to 100kHz I2C
Wire.setClock(400000); //Sensor has max I2C freq of 400kHz
Serial.println(“Initializing sensor board. This can take up to 10s. Please wait.”);
if (myImager.begin() == false)
{
Serial.println(F(“Sensor not found - check your wiring. Freezing”));
while (1) ;
}
To:
Wire1.begin(); //This resets to 100kHz I2C
Wire1.setClock(400000); //Sensor has max I2C freq of 400kHz
Serial.println(“Initializing sensor board. This can take up to 10s. Please wait.”);
if (myImager.begin((DEFAULT_I2C_ADDR >> 1),Wire1) == false)
{
Serial.println(F(“Sensor not found - check your wiring. Freezing”));
while (1) ;
}