ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    VOXL2 GPIO and Serial Interfaces

    VOXL 2
    3
    3
    247
    Loading More Posts
    • 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.
    • M
      MGasper
      last edited by

      Hi, I am currently using a VOXL2 and have been diving into the documentation and haven't been able to find or at least notice any reference to how to control GPIO pins and specifically UART pins through the DSP chip with my own program running on the VOXL2. I was wondering if I could be pointed to the appropriate documentation in order to set that up.

      -Thanks

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        Sorry, it is poorly documented. The only I/O that needs to use the DSP is for flight controller development. The rest of the I/O is accessed through the Linux CPU and behaves like most Linux systems.

        This page shows all of the connections https://docs.modalai.com/voxl2-connectors/

        You can see references to things like /dev/ttyHS1 which is a UART available through Linux

        You can find GPIO access in /sys/class/gpio/gpio

        1 Reply Last reply Reply Quote 0
        • modaltbM
          modaltb ModalAI Team
          last edited by

          I've been meaning to get this into a user guide as well, but for the applications processor GPIO, here's an example of setting IO programmatically, in this case GPIOs 46/159:

          https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-bind/-/blob/master/src/voxl-bind.c#L58

          https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-bind/-/blob/master/src/voxl-bind.c#L147

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors