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 IO
  4. m0065 connecting a sensor

m0065 connecting a sensor

Scheduled Pinned Locked Moved VOXL 2 IO
6 Posts 2 Posters 922 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.
  • A Offline
    A Offline
    andrevs01
    wrote on last edited by
    #1

    Hi Modal AI Team.

    I was wondering how I can connect inputs like sensors to voxl2 to read and process data. My current attempt is through m0065, the voxl2 io expander board but i dont quite get how i can flash the board to control and read the pwm channels (which i believe to be the only gpio available)..
    Please let me know if this is even feasible at all.

    Thanks in advance!!

    Alex KushleyevA 1 Reply Last reply
    0
    • A andrevs01

      Hi Modal AI Team.

      I was wondering how I can connect inputs like sensors to voxl2 to read and process data. My current attempt is through m0065, the voxl2 io expander board but i dont quite get how i can flash the board to control and read the pwm channels (which i believe to be the only gpio available)..
      Please let me know if this is even feasible at all.

      Thanks in advance!!

      Alex KushleyevA Online
      Alex KushleyevA Online
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by
      #2

      @andrevs01 , what sensors are you trying to connect to VOXL2? M0065 board is only used for PWM output and RC input (Sbus).

      Link Preview Image
      VOXL 2 IO Datasheet

      ModalAI technical documentation for VOXL and VOXL 2 Companion Computers for PX4 and ArduPilot Obstacle Avoidance and GPS-denied navigation, assembled in the USA

      favicon

      ModalAI Technical Docs (docs.modalai.com)

      Alex

      A 1 Reply Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        @andrevs01 , what sensors are you trying to connect to VOXL2? M0065 board is only used for PWM output and RC input (Sbus).

        Link Preview Image
        VOXL 2 IO Datasheet

        ModalAI technical documentation for VOXL and VOXL 2 Companion Computers for PX4 and ArduPilot Obstacle Avoidance and GPS-denied navigation, assembled in the USA

        favicon

        ModalAI Technical Docs (docs.modalai.com)

        Alex

        A Offline
        A Offline
        andrevs01
        wrote on last edited by
        #3

        @Alex-Kushleyev Hi. Sorry for the delay in my response.
        Currently i would just like to know how do i flash the board with my code to control a simple servo motor, or the luminosity of an led... What's the best approach to do that? I can't find any information on the SDK regarding the I/O expansion board.

        Later on, I would like to connect solenoid valves (On/Off) (i don't require a pwm output but that is the only I/O I have access).

        Alex KushleyevA 1 Reply Last reply
        0
        • A andrevs01

          @Alex-Kushleyev Hi. Sorry for the delay in my response.
          Currently i would just like to know how do i flash the board with my code to control a simple servo motor, or the luminosity of an led... What's the best approach to do that? I can't find any information on the SDK regarding the I/O expansion board.

          Later on, I would like to connect solenoid valves (On/Off) (i don't require a pwm output but that is the only I/O I have access).

          Alex KushleyevA Online
          Alex KushleyevA Online
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by Alex Kushleyev
          #4

          @andrevs01 ,

          The documentation is available here:

          https://docs.modalai.com/voxl2-io-datasheet/
          https://docs.modalai.com/voxl2-io-user-guide/
          https://docs.modalai.com/voxl2-io-firmware/

          We do not provide a way to flash the board with your own code (although you could do it if you REALLY wanted to, since the board uses a standard STM32 processor).

          For your use case, are you using PX4 or not? We normally control M0065 PWM outputs from PX4, but it is possible to do it without PX4.

          Alex

          A 1 Reply Last reply
          0
          • Alex KushleyevA Alex Kushleyev

            @andrevs01 ,

            The documentation is available here:

            https://docs.modalai.com/voxl2-io-datasheet/
            https://docs.modalai.com/voxl2-io-user-guide/
            https://docs.modalai.com/voxl2-io-firmware/

            We do not provide a way to flash the board with your own code (although you could do it if you REALLY wanted to, since the board uses a standard STM32 processor).

            For your use case, are you using PX4 or not? We normally control M0065 PWM outputs from PX4, but it is possible to do it without PX4.

            Alex

            A Offline
            A Offline
            andrevs01
            wrote on last edited by
            #5

            @Alex-Kushleyev Thank you for the quick response Alex.

            I don't necessarily need to develop my own code and flash the board, it's just the method I am familiar with working with previous uC...
            But if I were to implement my sensors/pwm outputs through PX4 what would be the recommended steps to do so? Is there git libraries already available for it? If so, can I still change code snippets to operate under my conditions? or parameters in Qgroundcontrol?
            Sorry if I am not clear with my questions but I'm pretty new to these types of complex architectures...

            Thank you again Alex and the Modal AI team

            Alex KushleyevA 1 Reply Last reply
            0
            • A andrevs01

              @Alex-Kushleyev Thank you for the quick response Alex.

              I don't necessarily need to develop my own code and flash the board, it's just the method I am familiar with working with previous uC...
              But if I were to implement my sensors/pwm outputs through PX4 what would be the recommended steps to do so? Is there git libraries already available for it? If so, can I still change code snippets to operate under my conditions? or parameters in Qgroundcontrol?
              Sorry if I am not clear with my questions but I'm pretty new to these types of complex architectures...

              Thank you again Alex and the Modal AI team

              Alex KushleyevA Online
              Alex KushleyevA Online
              Alex Kushleyev
              ModalAI Team
              wrote on last edited by
              #6

              @andrevs01 ,

              The documentation links I provided describe how to get M0065 board running in PX4 as a standard actuator that supports 8 PWM outputs.

              If you are familiar with PX4, GCS, Actuators, then look through those documentation pages and follow the setup.

              However, i don't have the full information about your hardware, so i don't know if you need some customizations:

              • are you using voxl2 on a flying drone? if so, are you using a modalai ESC or another ESC?
              • Are you planning to use M0065 board to generate pwm output for your ESC (if you are using a standard ESC that accepts PWM as control input)
              • do you need to use PX4 for your application? the reason why I ask is that you can use M0065 pwm outputs without PX4 if you don't need PX4 at all.

              Alex

              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