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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2 Mini
  4. UART rangefinder integration with VOXL 2 Mini

UART rangefinder integration with VOXL 2 Mini

Scheduled Pinned Locked Moved VOXL 2 Mini
10 Posts 2 Posters 1.1k Views 1 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.
  • P Offline
    P Offline
    psafi
    wrote on last edited by psafi
    #1

    I have a UART distance sensor from ARK Electronics that I'd like to integrate with VOXL 2 mini. First of all I have a question on wiring: Can this be wired to J10 on VOXL or it has to be connected to an expansion board (we have M0188)? and second question is do I need to add driver to voxl-px4 for this sensor to work?

    Eric KatzfeyE 2 Replies Last reply
    0
    • P psafi

      I have a UART distance sensor from ARK Electronics that I'd like to integrate with VOXL 2 mini. First of all I have a question on wiring: Can this be wired to J10 on VOXL or it has to be connected to an expansion board (we have M0188)? and second question is do I need to add driver to voxl-px4 for this sensor to work?

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

      @psafi Which sensor is it?

      P 1 Reply Last reply
      0
      • P psafi

        I have a UART distance sensor from ARK Electronics that I'd like to integrate with VOXL 2 mini. First of all I have a question on wiring: Can this be wired to J10 on VOXL or it has to be connected to an expansion board (we have M0188)? and second question is do I need to add driver to voxl-px4 for this sensor to work?

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

        @psafi J10 is a UART mapped to the applications processor (Linux). Most of PX4 runs on the DSP and uses UARTs mapped to the DSP. To use J10 you would have to include the driver module into the applications processor build and then start it in the start script.

        1 Reply Last reply
        0
        • Eric KatzfeyE Eric Katzfey

          @psafi Which sensor is it?

          P Offline
          P Offline
          psafi
          wrote on last edited by
          #4

          @Eric-Katzfey ARK FLOW with some customization to enable UART

          Eric KatzfeyE 1 Reply Last reply
          0
          • P psafi

            @Eric-Katzfey ARK FLOW with some customization to enable UART

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

            @psafi So which driver do you use in PX4 then? Do you have a custom driver since you modified it to use UART instead of UAVCAN?

            P 1 Reply Last reply
            0
            • Eric KatzfeyE Eric Katzfey

              @psafi So which driver do you use in PX4 then? Do you have a custom driver since you modified it to use UART instead of UAVCAN?

              P Offline
              P Offline
              psafi
              wrote on last edited by psafi
              #6

              @Eric-Katzfey My expectation is that I am going to receive mavlink messages from it. There is no driver for this product in mainstream PX4. I have never integrated UART version only CAN (which was plug and play with px4, i.e. I was receiving DISTANCE_SENSOR message with some parameter configuration). UART version should technically work the same from software standpoint since it is going to send mavlink messages. I guess the title of my post might be misleading. I am trying to integrate a "mavlink" device and I want it to connect to VOXL over UART.

              Eric KatzfeyE 1 Reply Last reply
              0
              • P psafi

                @Eric-Katzfey My expectation is that I am going to receive mavlink messages from it. There is no driver for this product in mainstream PX4. I have never integrated UART version only CAN (which was plug and play with px4, i.e. I was receiving DISTANCE_SENSOR message with some parameter configuration). UART version should technically work the same from software standpoint since it is going to send mavlink messages. I guess the title of my post might be misleading. I am trying to integrate a "mavlink" device and I want it to connect to VOXL over UART.

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

                @psafi Ah, okay, then you will need to set up a new mavlink instance in /usr/bin/voxl-px4-start. It would be something like mavlink start -x -d /dev/ttyHS0

                P 1 Reply Last reply
                0
                • Eric KatzfeyE Eric Katzfey

                  @psafi Ah, okay, then you will need to set up a new mavlink instance in /usr/bin/voxl-px4-start. It would be something like mavlink start -x -d /dev/ttyHS0

                  P Offline
                  P Offline
                  psafi
                  wrote on last edited by
                  #8

                  @Eric-Katzfey Ok great. This is working now. It would be great if you can give me some idea of the underlying architecture for troubleshooting in the future and also making sure this is not going to have any side effects on the entire system. What is the role of voxl-mavlink-server in all of this? I understand we are telling voxl-px4 to expect mavlink messages on ttyHS0.

                  I see messages 132 and 106 start showing up in output of "mavlink-server -k" which is "show debug info on messages coming from autopilot" and they stop showing up when I unplug the sensor. It'd be great if you can give me some idea of flow of information.

                  Eric KatzfeyE 2 Replies Last reply
                  0
                  • P psafi

                    @Eric-Katzfey Ok great. This is working now. It would be great if you can give me some idea of the underlying architecture for troubleshooting in the future and also making sure this is not going to have any side effects on the entire system. What is the role of voxl-mavlink-server in all of this? I understand we are telling voxl-px4 to expect mavlink messages on ttyHS0.

                    I see messages 132 and 106 start showing up in output of "mavlink-server -k" which is "show debug info on messages coming from autopilot" and they stop showing up when I unplug the sensor. It'd be great if you can give me some idea of flow of information.

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

                    @psafi Some of it is just standard PX4 stuff so you can take a look at their documentation. For voxl-mavlink-server this may help: https://docs.modalai.com/mavlink/

                    1 Reply Last reply
                    0
                    • P psafi

                      @Eric-Katzfey Ok great. This is working now. It would be great if you can give me some idea of the underlying architecture for troubleshooting in the future and also making sure this is not going to have any side effects on the entire system. What is the role of voxl-mavlink-server in all of this? I understand we are telling voxl-px4 to expect mavlink messages on ttyHS0.

                      I see messages 132 and 106 start showing up in output of "mavlink-server -k" which is "show debug info on messages coming from autopilot" and they stop showing up when I unplug the sensor. It'd be great if you can give me some idea of flow of information.

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

                      @psafi In this case we don't use voxl-mavlink-server directly because we are essentially setting up a "mavlink device" straight into px4.

                      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