Corrolating Linux GPIO to Braswell UDOO x86 Expansion Pins

Discussion in 'UDOO X86' started by I_Don't_Know_Anything, Dec 4, 2017.

  1. I_Don't_Know_Anything

    I_Don't_Know_Anything New Member

    Joined:
    Jan 12, 2017
    Messages:
    8
    Likes Received:
    3
    Does anyone have a chart or formula that can be used to know what pins in the Linux sys/class/gpio/gpioXX correlate to the physical pins on the board?

    I am trying to remotely turn on a gpio (Braswell not Aduino) using sockets and a web interface. I have done this with other boards, but I cannot find out the pin correlations for the x86 board. Through the command line it would be something like this:

    echo ?? > /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio??/direction
    echo 1 > /sys/class/gpio/gpio??/value

    Any recommendations on which pins would be best suited for this? I am thinking pin 14 on CN12.
     
    Markus Laire likes this.
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Last edited: Dec 4, 2017
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    And to be fully clear: Pin 14 on CN13 is an Arduino 101 pin! It cannot be used with Braswell.
    Edit: OOPS, there is no Pin 14 on CN12 but there is one on CN13

    Inner pins are Arduino pins (and compatible with a lot of Arduino Shields), Outer Pins are Braswell Pins.
     
  4. I_Don't_Know_Anything

    I_Don't_Know_Anything New Member

    Joined:
    Jan 12, 2017
    Messages:
    8
    Likes Received:
    3
    Yes, thank you so much. I was looking in the owner's manual which mentioned that they could be used as GPIO but did not give the number.
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I still cannot understand why there are 2 manuals.....
    But, who am I :)
     
  6. JDA

    JDA New Member

    Joined:
    Nov 29, 2017
    Messages:
    3
    Likes Received:
    0
    Walter, do you know of or have any kind of example using python to address the braswell pins?
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580

Share This Page