|
1 | 1 | # VL53L8CH |
2 | | -Arduino library to support the VL53L8CH artificial intelligence enabler, high performance 8x8 multizone Time-of-Flight (ToF) sensor |
| 2 | +Arduino library to support the VL53L8CH Time-of-Flight 8x8 multizone ranging sensor with wide field view. |
| 3 | + |
| 4 | +## API |
| 5 | + |
| 6 | +This sensor uses I2C/SPI to communicate. And I2C/SPI instance is required to access to the sensor. |
| 7 | +The APIs provide simple distance measure and multizone detection in both polling and interrupt modes. |
| 8 | +The APIs derive from VL53LMZ ULD SDK v1.7.0. |
| 9 | + |
| 10 | +## Examples |
| 11 | + |
| 12 | +The examples contained in this library are based on VL53L8CH-SATEL sensor board. |
| 13 | + |
| 14 | +You need to connect the VL53L8CH-SATEL sensor board directly to the Nucleo board with wires as explained below in the case of I2C communication: |
| 15 | + - pin 1 (SPI_I2C_n) of the VL53L8CH satellite connected to pin GND of the Nucleo board |
| 16 | + - pin 2 (LPn) of the VL53L8CH satellite connected to pin A3 of the Nucleo board |
| 17 | + - pin 3 (NCS) not connected |
| 18 | + - pin 4 (MISO) not connected |
| 19 | + - pin 5 (MOSI_SDA) of the VL53L8CH satellite connected to pin D14 (SDA) of the Nucleo board |
| 20 | + - pin 6 (MCLK_SCL) of the VL53L8CH satellite connected to pin D15 (SCL) of the Nucleo board |
| 21 | + - pin 7 (PWREN) of the VL53L8CH satellite connected to pin D11 of the Nucleo board |
| 22 | + - pin 8 (I0VDD) of the VL53L8CH satellite not connected |
| 23 | + - pin 9 (3V3) of the VL53L8CH satellite connected to 3V3 of the Nucleo board |
| 24 | + - pin 10 (1V8) of the VL53L8CH satellite not connected |
| 25 | + - pin 11 (5V) of the VL53L8CH satellite not connected |
| 26 | + - GPIO1 of VL53L8CH satellite connected to A2 pin of the Nucleo board (not used) |
| 27 | + - GND of the VL53L8CH satellite connected to GND of the Nucleo board |
| 28 | + |
| 29 | +You need to connect the VL53L8CH-SATEL sensor board directly to the Nucleo board with wires as explained below in the case of SPI communication: |
| 30 | + - pin 1 (SPI_I2C_n) of the VL53L8CH satellite connected to 3V3 of the Nucleo board |
| 31 | + - pin 2 (LPn) of the VL53L8CH satellite connected to 3V3 of the Nucleo board |
| 32 | + - pin 3 (NCS) of the VL53L8CH satellite connected to pin D10 of the Nucleo board |
| 33 | + - pin 4 (MISO) of the VL53L8CH satellite connected to pin D5 of the Nucleo board |
| 34 | + - pin 5 (MOSI_SDA) of the VL53L8CH satellite connected to pin D4 (MOSI) of the Nucleo board |
| 35 | + - pin 6 (MCLK_SCL) of the VL53L8CH satellite connected to pin D3 (MCLK_SCL) of the Nucleo board |
| 36 | + - pin 7 (PWREN) of the VL53L8CH satellite connected to pin D11 of the Nucleo board |
| 37 | + - pin 8 (I0VDD) of the VL53L8CH satellite not connected |
| 38 | + - pin 9 (3V3) of the VL53L8CH satellite connected to 3V3 of the Nucleo board |
| 39 | + - pin 10 (1V8) of the VL53L8CH satellite not connected |
| 40 | + - pin 11 (5V) of the VL53L8CH satellite not connected |
| 41 | + - GPIO1 of VL53L8CH satellite connected to A2 pin of the Nucleo board (not used) |
| 42 | + - GND of the VL53L8CH satellite connected to GND of the Nucleo board |
| 43 | + |
| 44 | +There are 3 examples with the VL53L8CH library: |
| 45 | + |
| 46 | +* VL53L8CH_Sat_HelloWorld_I2C: This example code is to show how to get multizone detection and proximity |
| 47 | + values of the VL53L8CH satellite sensor in polling mode using I2C communication. |
| 48 | + |
| 49 | +* VL53L8CH_Sat_HelloWorld_SPI: This example code is to show how to get multizone detection and proximity |
| 50 | + values of the VL53L8CH satellite sensor in polling mode using SPI communication. |
| 51 | + |
| 52 | +* VL53L8CH_ThresholdsDetection: This example code is to show how to configure the thresholds detection of the VL53L8CH satellite sensor. |
| 53 | + |
| 54 | + |
| 55 | +## Documentation |
| 56 | + |
| 57 | +You can find the source files at |
| 58 | +https://github.com/stm32duino/VL53L8CH |
| 59 | + |
| 60 | +The VL53L8CH datasheet is available at |
| 61 | +https://www.st.com/en/imaging-and-photonics-solutions/VL53L8CH.html |
0 commit comments