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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. VOXL m500 Reference Drone
  4. voxl-gpio not working as expected

voxl-gpio not working as expected

Scheduled Pinned Locked Moved VOXL m500 Reference Drone
3 Posts 2 Posters 789 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.
  • M Offline
    M Offline
    Matthew Howlett
    Contributor
    wrote on last edited by
    #1

    I have tried all the listed GPIO pins exposed on connectors J7, J10, J11 and J12.
    Why can't I write to a GPIO pin?

    36a9209e-18d1-4d13-a291-0dd271767ae1-image.png

    1 Reply Last reply
    0
    • Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by Alex Kushleyev
      #2

      Hello Matthew,

      When you execute voxl-gpio write, it configures the desired pin to OUTPUT mode and sets the desired state (0=low or 1=high). When you execute voxl-gpio read, the pin is configured as INPUT with a pull-up, so any previous pin state is no longer applicable. If nothing is connected to the pin while it is configured as INPUT, it will read 1 due to the pull-up.

      If you would like to test the pin read and write functionality, you could set up a loop back connection, where you connect two pins together and you write one pin and read another.

      I hope this helps

      Alex

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Matthew Howlett
        Contributor
        wrote on last edited by
        #3

        Great, thanks for the info. I suspected something along those lines.

        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