PlatformIO Community

VL53L1X MBED Library


#1

I just got the VL53L1X ToF sensor and I have a k64f board using ARMmbed. I have been searching all day long, but I could not find a library for the board for mbed, does anyone know if there is any library available for this sensor on mbed?


#2

There is two libraries now.
The more simple one:
https://os.mbed.com/users/jvfausto/code/VL53L1X/

And a more complex one:
https://os.mbed.com/users/jvfausto/code/VL53L1X_Pololu/


#3

Great! Just use them in project as an option in platformio.ini

[env:myenv]
board = ..
lib_deps =
  https://os.mbed.com/users/jvfausto/code/VL53L1X/

#4

I’ve been playing around a lot with the library but I can’t seem to get it working with the MAX32630. I keep getting the following error:

mbed assertation failed: stop != 0, file: /extras/mbed-os.lib/targets/TARGET_Maxim/TARGET_MAX32630/i2c_api.c, line 103

Do you have any ideas on how to fix this? Thanks


#5

This is a bug in mbed-os fixed by https://github.com/ARMmbed/mbed-os/commit/e802b255bef87b44a9ea121a0b7d7c7d1f4f9729#diff-5d4e71eefaefc629a9b6aab2d3c90c6e… With which ancient mbed-os are you working?


#6

Is this library compatible with the stm X-NUCLEO-53L1A1X?


#7

It should work, I moved onto using STM boards since the summer. I have updated the code to support multiple ToF sensors, and added a running median filter.

https://os.mbed.com/users/jvfausto/code/VL53L1X_Filter/