VL53L5CX 8x8 multizone time-of-flight con ESP32
Alimentazione 3.3 V
Bus I2C
Indirizzo I2C
0x29
Misura distanza
Pin e collegamento all’ESP32
| Pin | Ruolo | Pin ESP32 | Note |
|---|---|---|---|
| INT | Interrupt | D35 | Data ready, optional. SATEL-style order; other boards differ |
| I2C_RST | Non collegato all’ESP32 | — | I2C reset, active HIGH. Tie to GND |
| SDA | Dati I2C (SDA) | D21 | |
| SCL | Clock I2C (SCL) | D22 | |
| LPN | Ingresso (lo pilota l’ESP32) | D25 | Low-power enable: HIGH to talk over I2C. Can be tied to IOVDD |
| PWREN | Non collegato all’ESP32 | — | Enables the on-board regulator. Tie to IOVDD |
| AVDD | Alimentazione | 3V3 | Use 3V3 |
| IOVDD | Alimentazione | 3V3 | Use 3V3 |
| GND | Massa | GND |
Collegamento consigliato per l’ESP32 DevKit a 30 pin, evitando i pin della flash, di sola lettura e di strapping. BoardPilot lo controlla mentre colleghi.
Codice di partenza (Arduino)
#include <Wire.h>
void setup() {
Serial.begin(115200);
Wire.begin(21, 22); // SDA = GPIO 21, SCL = GPIO 22
Wire.beginTransmission(0x29);
bool found = Wire.endTransmission() == 0;
Serial.println(found ? "VL53L5CX 8x8 multizone time-of-flight found at 0x29" : "Not found: check power, GND and SDA/SCL");
}
void loop() {}
Fonti
- ST VL53L5CX datasheet, Default I2C address 0x29 (0x52 8-bit); firmware is uploaded by the host at every start (about 86 kB)
- ST UM2884 VL53L5CX ULD guide, LPn must be HIGH to enable I2C communication
Provalo in 3D in BoardPilot
Componenti simili
ADS1015 12-bit ADCADS1115 16-bit ADCADXL375 high-g accelerometer (±200 g)AHT10 temperature + humidityAHT20 + BMP280 combo moduleAHT20 temperature + humidity
Dati dei componenti: CC BY 4.0, riutilizzabili citando BoardPilot.