2021-01-21 08:00 PM
I was wondering If anyone could provide me with detail step as I am new to stm sensor
2021-01-29 09:17 AM
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,
2021-02-08 07:49 AM
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.