2021-03-30 03:37 AM
I have a 3 VL53L1X satel boards with me .I started testing it out and am facing some minor issues. I saw in the data sheet that I can program the Region of Interest. I am programming it in arduino. I was hoping if I can get a sample code with the programable ROI so i can get started. I was also hoping to know how i can change all of the device address and program it in ESP32 if arduino Nano cannot manage 3 I2C devices at once.
Thank you so much in advance
Solved! Go to Solution.
2021-03-30 07:22 AM
The software to get is the STSW-IMG009
VL53L1X ULD API (Ultra Lite Driver Application Programming Interface)
It's free on the ST web site.
Even if you don't use this software it's VERY helpful.
(perhaps you got some software from Sparkfun or Pololu?)
Straight forward and simple.
in there is a function for setting the ROI.
Just call that.
and if you have not started a project yet, the ULD is the best way to go.
The trick to changing the I2C addresses is:
1) put all the sensors in reset (use the Xshut pin)
2)take one out of reset and call the function to change the I2C address.
3) Then take the next one out of reset and change it's address.
4) repeat for each additional chip.
2021-03-30 07:22 AM
The software to get is the STSW-IMG009
VL53L1X ULD API (Ultra Lite Driver Application Programming Interface)
It's free on the ST web site.
Even if you don't use this software it's VERY helpful.
(perhaps you got some software from Sparkfun or Pololu?)
Straight forward and simple.
in there is a function for setting the ROI.
Just call that.
and if you have not started a project yet, the ULD is the best way to go.
The trick to changing the I2C addresses is:
1) put all the sensors in reset (use the Xshut pin)
2)take one out of reset and call the function to change the I2C address.
3) Then take the next one out of reset and change it's address.
4) repeat for each additional chip.
2021-03-30 09:41 PM
Hello, Does this software work only for ARM processor or can we use the same function in ESP32 also
Thank you
2021-03-30 10:40 PM
Hi,
The VL53L1X driver itself is C code. So it works for AMR as well as Arduino. For your work I would process in two steps.
The ESP32 supports Arduino libraries in principle.
Thanks,
Julien