cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L3CX Bare Driver on Raspberry Pi?

VBhat.1
Associate III

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!

1 REPLY 1
John E KVAM
ST Employee

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,

  • john

If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.