2023-12-05 01:01 AM
I want to use the VL53L8CH in histogram mode to distinguish between multiple reflective surfaces. I found a c-driver package in STSW-IMG043, but no useful example how to initialize the sensor and get data out (over I2C).
What I'am looking for:
1) initialize sensor and start ranging, with some example code to setup the histogram configuration
2) get histogram data over I2C
In the mentioned driver software there are a lot of functions, some of them are clear what they do, other are not clear, but I did not found an application in a software layer avbove which bundles these driver functions to a senseful initialization- or read method.
Solved! Go to Solution.
2023-12-06 02:53 AM
Hello,
You can find some example in the STSW-IMG043_ULD from here .
The en.STSW-IMG043_ULD\VL53LMZ_MassMarket_ULD\Examples\Example_12_cnh_data.c file is dedicated to cnh
If you download the package and unzip it, then do the following :
y
Hope this helps,
Anne
2023-12-05 10:56 PM
Hi John
Thank for your answer. Water level in a cup, that's exact the use case I want to realize. And because of multiple reflective areas, a histogram would be best to recognize the liquid level without crosstalk of the cup bottom or roof. I do not expect that I will need many features of this sensor for that, just get out a histogram, perhaps reduced to a partial zone of the sensor area.
Altough I understand that there is no sense to publish code for every use case, it would be good to have some basic functionallity examples.to see which of the bunch of functions are needed to setup a basic configuration and read data.
2023-12-06 02:53 AM
Hello,
You can find some example in the STSW-IMG043_ULD from here .
The en.STSW-IMG043_ULD\VL53LMZ_MassMarket_ULD\Examples\Example_12_cnh_data.c file is dedicated to cnh
If you download the package and unzip it, then do the following :
y
Hope this helps,
Anne
2023-12-06 05:56 AM
Hi Anne
Thanks for the link to the exitsing usage examples. I think this helps a lot, I will try as soon as possible.
Best regards, Michael