Skip to main content
Visitor II
January 22, 2021
Question

Hey, I recently bought stm VL53L1x and try to connect it with my raspberry pi B. But I couldn't understand the process to connect it.

  • January 22, 2021
  • 2 replies
  • 1198 views

I was wondering If anyone could provide me with detail step as I am new to stm sensor

    This topic has been closed for replies.

    2 replies

    ST Employee
    January 29, 2021

    this is a hard one to just describe.

    And there are a couple of ways to do it.

    I've included the files that I use on my RPi below.

    One downloads the STSW-IMG019 API for VL53L1

    or the STSW-IMG009 VL53L1X ULD API (Ultra Lite Driver Application Programming Interface)

    and use the files in the inclosed zip file.

    Unless you really need the features of the VL53L1CB, the UltraLight driver is the way to go. It's only a few hundred lines of code and very robust.

    the trick is these 2 APIs do not understand how Linux reads and writes to the I2C.

    So one needs a special functions in platform.c filled out for you processor.

    But we have just released STSW-IMG022 Linux driver for VL53L1CB

    The VL53L1CB is a few cents more expensive than is the VL53L1X, and in order to go into production with the code in the STSW-IMG022 you need the CB chip, but you can do some quick tests and developement with the VL53L1X development platform.

    Good luck,

    • john

    ST Employee
    February 8, 2021

    Here is how I have connected my RPi. I'm using 4 wires in my minimal set-up. But I cheated. There are 2 power pins on that satellite. (Analog and Digital) I have bridged pins 7 and 8 together.