VL53L1X, Matlab Simulink Communication

Hi everyone, I am currently a sophomore majoring in Electrical Engineering.

My research project involves building a Simulink application which can read in data from Distance Sensor VL53L1X attaching to Arduino Uno, and control a servo motor accordingly.

The challenge is that after digging into the datasheet of VL53L1X, I find it doesn’t explicitly specify the data format in registers of VL53L1X, which means I cannot control the sensor and directly read in data in a reasonable manner. Also there is not any specific Simulink modules to VL53L1X available online as far as I known.

Anybody has any idea about this problem? I would really appreciate your kind help!

Hi Dong,

You may want to take a look at the [source files for our Arduino library for this sensor. That may have some more information about the registers you need to read and write to and the format to get this working in MATLAB.

SparkFun Technical Support cannot help with custom code so for further assistance, you may want to search or post on the [Mathworks community page.

I hope this helps you get this working for your project.](Home - MATLAB Central)](SparkFun_VL53L1X_Arduino_Library/src at master · sparkfun/SparkFun_VL53L1X_Arduino_Library · GitHub)