Interface VL6180 ToF proximity sensor to a 3rd-party controller
Hi,
I'm trying to get the VL6180 Time-of-Flight (ToF) proximity sensor working with the SAM E54 Xplained Pro evaluation kit.
Hardware Setup:
-
Board: SAM E54 Xplained Pro
-
Sensor: ST VL6180 ToF Module
-
IDE: MPLAB X v6.10 (Linux x64)
-
Connection: I2C + GPIO
Current Status:
-
SERCOM3 is connected to SDA on PA2 and SDL on PA23
-
The external interrupt (GPIO 1) is connected on PB08
-
GPIO 0 is connected on PB09
-
Using the VL6180X API (v2.3.1)
Goal:
-
Get the VL6180 working via I2C
-
Operate the sensor in interrupt mode to read sensor data
I attempted to use the VL6180X API (v2.3.1), but it needs to be ported to the SAM E54. I'm struggling to understand:
-
Which parts of the API need modification for the SAM E54?
-
How to correctly implement I2C communication with the VL6180 using the API?
-
How to configure and handle interrupt-based operation on the SAM E54?
-
Are there any example projects or resources that could help with this setup?
Any help or guidance would be greatly appreciated! Thanks in advance.
