Skip to main content
Visitor II
September 2, 2020
Question

Integrate Gravity VL53L0X to STM 32 LoRa Discovery Kit, B-L072Z-LRWAN1

  • September 2, 2020
  • 1 reply
  • 554 views

I would like to integrate Gravity VL53L0X to the STM 32 LoRa Discovery Kit, B-L072Z-LRWAN1. Is it possible that I can port part of the code from X-CUBE-53L0A1 into I-CUBE-LRWAN?

Or what code or setting I need to include in I-CUBE-LRWAN?

Basically, I want the LoRa module on the Discovery Kit to read VL53L0X sensor and the data.

Any other hardware connection I should take note?

    This topic has been closed for replies.

    1 reply

    ST Employee
    September 3, 2020

    If you download the VL53l0X driver you should be able to import the code.

    STSW-IMG005 VL53L0X API (Application Programming Interface and documentation)

    Then it's a matter of piping. The API resolves to a bunch of I2C read/write functions that are in the platform.c file.

    It's up to you to get these to work. But if the driver can talk to the device, you should have any problem using one of the example files to write your code.

    Good luck.

    • john