Skip to main content
VBhat.1
Associate II
September 13, 2021
Question

VL53L3CX Bare Driver on Raspberry Pi?

  • September 13, 2021
  • 1 reply
  • 969 views

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!

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
October 8, 2021

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