Setting up X-NUCLEO-53L5A1
Hi, I have X_NUCLEO-53L5A1 expansion board. I connected this board to ESP8266 inorder to use the VL53L5CX sensor. But the sensor is not being detected.
#include <Wire.h>
void setup() {
Serial.begin(115200);
Wire.begin(4, 5); // GPIO4 (SDA), GPIO5 (SCL)
Serial.println("\nI2C Scanner - Searching for devices...");
}
void loop() {
byte error, address;
int nDevices = 0;
Serial.println("Scanning...");
for (address = 1; address < 127; address++) {
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0) {
Serial.print("I2C device found at address 0x");
Serial.println(address, HEX);
nDevices++;
}
}
if (nDevices == 0) Serial.println("No I2C devices found.");
else Serial.println("Scan complete.");
delay(5000); // Repeat scan every 5 seconds
}
I get an output saying no devices found. After researching about it, I found that the sensor is not enabled. How do I enable the sensor and make it work.
Connections:
X_NUCLEO-53L5A1 ESP8266
SCL GPIO 5
SDA GPIO 4
3V3 3V3
GND GND
Please help me I am totally new to this. Thanks in advance.
