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
  4. GPIO numbering

GPIO numbering

Scheduled Pinned Locked Moved VOXL 2
2 Posts 1 Posters 652 Views
  • 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.
  • Viswanadh CheguV Offline
    Viswanadh CheguV Offline
    Viswanadh Chegu
    wrote on last edited by Viswanadh Chegu
    #1

    Hi,

    I would like to access the gpio pin 12 using interposer M0076 TP5 at J8
    Screenshot from 2023-07-03 16-36-01.png

    echo 12 > /sys/class/gpio/export 
    

    Not works shows Invalid argument

    but

    echo 1073 > /sys/class/gpio/export
    

    works

    But in voxl2 the numbering is different starts at 1072 and ends at 1280
    Screenshot from 2023-07-03 16-37-28.png

    gpiochip1100 has 180 in ngpio

    how to get exact number for gpio pin 12 in relation to above.
    can someone tell the mapping of gpio numbers.

    Viswanadh CheguV 1 Reply Last reply
    0
    • Viswanadh CheguV Viswanadh Chegu

      Hi,

      I would like to access the gpio pin 12 using interposer M0076 TP5 at J8
      Screenshot from 2023-07-03 16-36-01.png

      echo 12 > /sys/class/gpio/export 
      

      Not works shows Invalid argument

      but

      echo 1073 > /sys/class/gpio/export
      

      works

      But in voxl2 the numbering is different starts at 1072 and ends at 1280
      Screenshot from 2023-07-03 16-37-28.png

      gpiochip1100 has 180 in ngpio

      how to get exact number for gpio pin 12 in relation to above.
      can someone tell the mapping of gpio numbers.

      Viswanadh CheguV Offline
      Viswanadh CheguV Offline
      Viswanadh Chegu
      wrote on last edited by
      #2

      Found the offset
      its gpiochip1100
      so for gpio 12

      echo 1112 > /sys/class/gpio/export
      

      will enable gpio 12

      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

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups