Has anyone tried to use this combination? I have the sensor plugged into the ESLOV port on the H7, and it powers up. However, trying to run any of the example skletches fails. I get the first prints to the serial port, but nothing comes backl from the sensor, so I do not know whether the sensor is bad or good.
That sensor uses a ton of RAM (usual suspect for this type of thing), but the H7 has way more than enough!
Did you specify to use i2c0 in the code?
I’ll see if I can find my Portenta over the weekend…
Another thing is to ensure you are using the correct ‘wire’ (wire vs wire1)
I am using the ESLOV conntector I2C, which is, as far as I can tell, the default I2C bus.
8-Dale
Try this code and post the results:
#include <Wire.h>
void setup() {
Serial.begin(115200);
while (!Serial); // Wait for Serial Monitor
// Initialize the ESLOV I2C bus (Wire)
Wire.begin();
Serial.println("ESLOV I2C Scanner starting...");
}
void loop() {
byte error, address;
int nDevices = 0;
for (address = 1; address < 127; address++) {
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0) {
Serial.print("I2C device found at address 0x");
if (address < 16) Serial.print("0");
Serial.println(address, HEX);
nDevices++;
}
}
if (nDevices == 0) Serial.println("No I2C devices found\n");
else Serial.println("Scan complete\n");
delay(5000);
}
My VL53L5CX is not being detected on the I2C bus.
I am using the correct I2C bus for the ESLOV connector.
My VL53L5CX sensor is detected on thje I2C bus when connected by the other connector, but it is not working with any sample sketch I have tried.
What’s showing in the serial monitor?
SLOV I2C Scanner starting...
I2C device found at address 0x29
Scan complete
There is no sensor output from any demo sketch I have tried.
Ok, last thing - do you have any other MCUs or i2c/qwiic devices you can test with to isolate the issue?
I have several I2C capable MCUs, but I am not sure any of the others I have could handle the VL525CX. I have an Arduino Nano BLE Sense, an Arduino Portenta C33, an Arduino Nano RP2040 Connect, and some others. I would have to solder headers to the VL53L5CX in order to connect it to all but the C33 board. None of my other boards have STEMMA/QUIIC connectors.
Darn - ok, well it’s either a defective sensor or an unviable combo… and I’m out of ideas. We can send out a replacement unit to cover our side of things. Was it purchased from us? If so head over to Return Policy - SparkFun Electronics (contact vendor if purchased elsewhere) and we’ll get ya squared away
I only purchase SparkFun stuff from SparkFun. Yes, I did buy it direct, and it was the last one available at the time.
8-Dale