2021-09-13 12:07 PM
Hi, I'm trying to get the bare driver running in user mode to work on the Pi, because I just need the easiest way to use the VL53L3CX module, and I think the Linux driver is not necessary. I'm not sure how exactly to get the ULD working on a Pi however, any guidance/example code for RPi is appreciated. Thanks!
2021-10-08 01:54 PM
Ah, I see an issue. The VL53L3CX uses the Bare driver - also called the full histogram driver.
The Ultra Lite Driver (ULD) supports only the VL53L1X.
To be sure, the ULD WILL run on the VL53L3CX, but the distance you can range to is limited. This is why the ULD is not listed as supported on the L3.
(It will only range to about 1.2 meters. Where the full L3 driver will get to 4 or 5 meters.)
So to get the bare driver running on the RPI, you need to download the example code - which will get you started.
But as delivered we don't know which processor you are running on.
So the ReadMulti and WriteMulti I2C access functions in the platform.c files are unpopulated.
Search GitHub for a platform.c file for the RaspberryPi. Or you can write your own. But downloading one is easier.
Good luck,