2023-09-25 02:33 PM
Hello,
I am trying to get histograms off of the VL53L8CH sensor. I have the sensor hooked up to an F401 and I'm using the official driver from here: https://www.st.com/en/embedded-software/stsw-img043.html.
When I start ranging with the sensor through the driver, it starts sending binary data over the serial port. I believe the format of this data is described in general terms in section 5.8 of the user guide for the sensor (UM3183). But it's not very specific and it would be quite a pain to write my own function to decode the data. I believe the EVK software (from the link above) includes code that reads in this data from the serial port and saves it to a csv and/or numpy array. However the EVK software is pre-compiled so it's not easy to use this code myself. Is there example code for decoding data from the serial port, or can the code used in the EVK software be made available?
Thank you.
2023-10-09 03:17 AM
Hello,
It looks like you are using the STM32 software we provide for use with the EVK GUI as a “driver”… but it was not intended as a “driver”.
The UM3188 you refer to describes the I2C from the sensor not the STM32->GUI comms.
Today you have two options:
Regards
Anne
2023-10-09 02:26 PM
Thanks for the response Anne,
I have made progress towards getting option 1 to work as you describe. I'm still confused about option 2 though. Can you tell me exactly how to access the STM32 MZ-AI EVK project source code? The download on this page only gives me a pre-built version as far as I can tell.
2023-12-19 12:57 AM
Hi I am also try to get option 1 to work as the description, After writing the Example_12_cnh_data to the F4001 board, how to get the data?