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

ModalAI Forum

  1. ModalAI Support Forum
  2. Flight Core and Legacy VOXL
  3. GPIO via Python Script

GPIO via Python Script

Scheduled Pinned Locked Moved Unsolved Flight Core and Legacy VOXL
flight-deck
2 Posts 2 Posters 506 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.
  • Paolo FerminP Offline
    Paolo FerminP Offline
    Paolo Fermin
    wrote on last edited by
    #1

    To whom it may concern,

    I am attempting to use the VOXL flight deck to control VOXL GPIO pin 85, which is outputting to an Arduino Nano which will read the signal and perform an action. I am successfully able to toggle the pin using the voxl-gpio binary. However, I would like to trigger this pin from a Python script that is running on my base station. The base station is sending MAVLink offboard commands to my drone. I thought that I would be able to use Python os commands to simulate a command line input, but the problem is that my base station does not have access to the voxl-gpio service. It is possible to control the GPIO pin from a Python script?

    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      Hi Paolo, we do not have the GPIO interface implemented in python. We do have the i2c interface implemented in python and you could use that as a basis for accessing the GPIO interface. Source code here: https://gitlab.com/voxl-public/core-libs/libvoxl_io/-/tree/master/lib/python

      1 Reply Last reply
      0

      Reading along? Create a free ModalAI Forum account to join in.

      With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

      Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

      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