Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. voxl2 rangefinder (lw20)

voxl2 rangefinder (lw20)

Scheduled Pinned Locked Moved Ask your questions right here!
10 Posts 4 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    relevinsky
    Contributor
    wrote on last edited by
    #1

    Hi,

    I need to connect my rangefinder (LW20) to the VOXL2 board using connector J19 (by I2C) to the PX4 flight controller. What configurations should I make in QGroundControl to receive the "Distance Sensor" message in the Mavlink Analyze tab?

    Thank you.

    Eric KatzfeyE 1 Reply Last reply
    0
    • R relevinsky

      Hi,

      I need to connect my rangefinder (LW20) to the VOXL2 board using connector J19 (by I2C) to the PX4 flight controller. What configurations should I make in QGroundControl to receive the "Distance Sensor" message in the Mavlink Analyze tab?

      Thank you.

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @relevinsky The driver for that is not currently built into the VOXL2 PX4 firmware. You would need to add that to your build.

      voxltesterV 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @relevinsky The driver for that is not currently built into the VOXL2 PX4 firmware. You would need to add that to your build.

        voxltesterV Offline
        voxltesterV Offline
        voxltester
        Contributor
        wrote on last edited by voxltester
        #3

        @Eric-Katzfey
        I am wondering if rangefinders can be used for VOXL2.
        Specifically, I have LW20/C rangefinder and tried to setup on VOXL2 by referring to https://docs.modalai.com/voxl2-D0015/. But it is not working.

        One more thing is voxl-configure-rangefinders package.
        https://gitlab.com/voxl-public/voxl-sdk/services/qrb5165-rangefinder-server
        Can you explain what this one is for?
        I tried to use it by running voxl-configure-rangefinders, it is not working..
        I hope you provide the instruction to install the rangefinder on the VOXL2.

        Thank you.

        Eric KatzfeyE 2 Replies Last reply
        0
        • voxltesterV voxltester

          @Eric-Katzfey
          I am wondering if rangefinders can be used for VOXL2.
          Specifically, I have LW20/C rangefinder and tried to setup on VOXL2 by referring to https://docs.modalai.com/voxl2-D0015/. But it is not working.

          One more thing is voxl-configure-rangefinders package.
          https://gitlab.com/voxl-public/voxl-sdk/services/qrb5165-rangefinder-server
          Can you explain what this one is for?
          I tried to use it by running voxl-configure-rangefinders, it is not working..
          I hope you provide the instruction to install the rangefinder on the VOXL2.

          Thank you.

          Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          @voxltester In order to use the LW20 with i2c interface you would need to add that driver to your build (e.g. in boards/modalai/voxl2-slpi/default.px4board). And then you would need to start that driver in the startup script (e.g. in boards/modalai/voxl2/target/voxl-px4-start).

          voxltesterV 1 Reply Last reply
          0
          • voxltesterV voxltester

            @Eric-Katzfey
            I am wondering if rangefinders can be used for VOXL2.
            Specifically, I have LW20/C rangefinder and tried to setup on VOXL2 by referring to https://docs.modalai.com/voxl2-D0015/. But it is not working.

            One more thing is voxl-configure-rangefinders package.
            https://gitlab.com/voxl-public/voxl-sdk/services/qrb5165-rangefinder-server
            Can you explain what this one is for?
            I tried to use it by running voxl-configure-rangefinders, it is not working..
            I hope you provide the instruction to install the rangefinder on the VOXL2.

            Thank you.

            Eric KatzfeyE Offline
            Eric KatzfeyE Offline
            Eric Katzfey
            ModalAI Team
            wrote on last edited by
            #5

            @voxltester The voxl-configure-rangefinders refers to range finders connected to the apps processor outside of px4. If you use that then the voxl-rangefinder-server will communicate to px4 with mavlink messages to indicate distance.

            1 Reply Last reply
            0
            • Eric KatzfeyE Eric Katzfey

              @voxltester In order to use the LW20 with i2c interface you would need to add that driver to your build (e.g. in boards/modalai/voxl2-slpi/default.px4board). And then you would need to start that driver in the startup script (e.g. in boards/modalai/voxl2/target/voxl-px4-start).

              voxltesterV Offline
              voxltesterV Offline
              voxltester
              Contributor
              wrote on last edited by voxltester
              #6

              @Eric-Katzfey
              Thank you for your quick answer.
              Eric, on my VOXL2 flight deck, I cannot find board folder...
              Please refer to the version info of my VOXL2.

              voxl2:/$ voxl-version 
              --------------------------------------------------------------------------------
              system-image: 1.7.1-M0054-14.1a-perf-nightly-20231025
              kernel:       #1 SMP PREEMPT Thu Oct 26 03:25:38 UTC 2023 4.19.125
              --------------------------------------------------------------------------------
              hw platform:  M0054
              mach.var:     1.0
              --------------------------------------------------------------------------------
              voxl-suite:   1.1.3-1
              --------------------------------------------------------------------------------
              Packages:
              Repo:  http://voxl-packages.modalai.com/ ./dists/qrb5165/sdk-1.1/binary-arm64/
              Last Updated: 2024-05-07 20:27:28
              
              voxltesterV tomT 2 Replies Last reply
              0
              • voxltesterV voxltester

                @Eric-Katzfey
                Thank you for your quick answer.
                Eric, on my VOXL2 flight deck, I cannot find board folder...
                Please refer to the version info of my VOXL2.

                voxl2:/$ voxl-version 
                --------------------------------------------------------------------------------
                system-image: 1.7.1-M0054-14.1a-perf-nightly-20231025
                kernel:       #1 SMP PREEMPT Thu Oct 26 03:25:38 UTC 2023 4.19.125
                --------------------------------------------------------------------------------
                hw platform:  M0054
                mach.var:     1.0
                --------------------------------------------------------------------------------
                voxl-suite:   1.1.3-1
                --------------------------------------------------------------------------------
                Packages:
                Repo:  http://voxl-packages.modalai.com/ ./dists/qrb5165/sdk-1.1/binary-arm64/
                Last Updated: 2024-05-07 20:27:28
                
                voxltesterV Offline
                voxltesterV Offline
                voxltester
                Contributor
                wrote on last edited by voxltester
                #7

                @Eric-Katzfey
                One more question,
                Is there any other way to use LW20 instead of i2c?

                1 Reply Last reply
                0
                • voxltesterV voxltester

                  @Eric-Katzfey
                  Thank you for your quick answer.
                  Eric, on my VOXL2 flight deck, I cannot find board folder...
                  Please refer to the version info of my VOXL2.

                  voxl2:/$ voxl-version 
                  --------------------------------------------------------------------------------
                  system-image: 1.7.1-M0054-14.1a-perf-nightly-20231025
                  kernel:       #1 SMP PREEMPT Thu Oct 26 03:25:38 UTC 2023 4.19.125
                  --------------------------------------------------------------------------------
                  hw platform:  M0054
                  mach.var:     1.0
                  --------------------------------------------------------------------------------
                  voxl-suite:   1.1.3-1
                  --------------------------------------------------------------------------------
                  Packages:
                  Repo:  http://voxl-packages.modalai.com/ ./dists/qrb5165/sdk-1.1/binary-arm64/
                  Last Updated: 2024-05-07 20:27:28
                  
                  tomT Offline
                  tomT Offline
                  tom
                  admin
                  wrote on last edited by
                  #8

                  @voxltester This is what he is referring to as the boards folder: https://github.com/modalai/px4-firmware/tree/b5c45bb232afc6a936b8349f4fa0be1efeb17707/boards

                  voxltesterV 1 Reply Last reply
                  0
                  • tomT tom

                    @voxltester This is what he is referring to as the boards folder: https://github.com/modalai/px4-firmware/tree/b5c45bb232afc6a936b8349f4fa0be1efeb17707/boards

                    voxltesterV Offline
                    voxltesterV Offline
                    voxltester
                    Contributor
                    wrote on last edited by
                    #9

                    @tom
                    THank you for the info.
                    I am using VOXL2 flight deck... I never touched the PX4....

                    What I found just before is /etc/modalai/voxl-px4.conf
                    I edited DISTANCE_SENSOR=LIGHTWARE_SF000, then I was able to see PX4 parameter SENS_EN_SF0X in QGC. I set it as LW20/c..

                    But I cannot see the rangefinder data in QGC MAVLink Inspector...

                    Eric KatzfeyE 1 Reply Last reply
                    0
                    • voxltesterV voxltester

                      @tom
                      THank you for the info.
                      I am using VOXL2 flight deck... I never touched the PX4....

                      What I found just before is /etc/modalai/voxl-px4.conf
                      I edited DISTANCE_SENSOR=LIGHTWARE_SF000, then I was able to see PX4 parameter SENS_EN_SF0X in QGC. I set it as LW20/c..

                      But I cannot see the rangefinder data in QGC MAVLink Inspector...

                      Eric KatzfeyE Offline
                      Eric KatzfeyE Offline
                      Eric Katzfey
                      ModalAI Team
                      wrote on last edited by
                      #10

                      @voxltester Again, LW20 is not in the px4 build. Until you rebuild px4 with that driver you cannot use it within px4. So, you have 2 choices. Rebuild PX4 and try to get LW20 working within PX4 or take a look at the source code for voxl-rangefinder-server and see if you can add support for LW20 into that. It currently supports the vl53l1x rangefinder. Perhaps you can just switch to that rangefinder model? Otherwise the source code it here: https://gitlab.com/voxl-public/voxl-sdk/services/qrb5165-rangefinder-server

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      ModalAI
                      Categories Recent Tags ModalAI.com Docs
                      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups