Analog GPIO through Braswell

Discussion in 'UDOO X86' started by Frank Applin, Aug 28, 2017.

  1. Frank Applin

    Frank Applin New Member

    Joined:
    May 12, 2017
    Messages:
    10
    Likes Received:
    3
    Can I access any of the Analog Pins via the file system?

    It looks GPIO 499 matches up with A3 on the Arduino, but can I read it via:

    echo 499 > /sys/class/gpio/export
    echo in > /sys/class/gpio/gpio499/direction
    cat < /sys/class/gpio/gpio499/value

    Thanks,

    Frank
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Why do you think GPIO 499 matches up with A3 on the Arduino?

    Normally it should not be possible to read the pin of another CPU unless it is meant to be (for example Pin 9 that is used to switch on/off Braswell from Arduino).
     
  3. Frank Applin

    Frank Applin New Member

    Joined:
    May 12, 2017
    Messages:
    10
    Likes Received:
    3
  4. Markus Laire

    Markus Laire Active Member

    Joined:
    Mar 9, 2017
    Messages:
    225
    Likes Received:
    92
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Those are the pins for the PC part of the Udoo X86 (the outer pins of the headers)

    The Arduino pins are on the inside: https://www.udoo.org/docs-x86/img/x86_pinout_arduino.png

    You cannot read them directly from the file system. You have to send the values (as with an Arduino Uno) to the PC side through the USB bus.

    You have to see the Udoo X86 as an PC with a seperate Arduino on the same board. the connection is a USB bus. See the section USB devices of this page: https://www.udoo.org/docs-x86/Arduino_101_(Intel_Curie)/Getting_Started_with_Arduino_101.html
     
  6. Frank Applin

    Frank Applin New Member

    Joined:
    May 12, 2017
    Messages:
    10
    Likes Received:
    3
    OK, but do I have access to reading any analog pins from the file system (like I can on a Beaglebone Black) and if so which pins are available?
     
  7. Markus Laire

    Markus Laire Active Member

    Joined:
    Mar 9, 2017
    Messages:
    225
    Likes Received:
    92
    It seems that answer is NO - I havn't seen any mention of analog pins for main CPU, only for Arduino side.
     
  8. Frank Applin

    Frank Applin New Member

    Joined:
    May 12, 2017
    Messages:
    10
    Likes Received:
    3
    Well, that's disappointing. Thanks for all of your help, though!
     

Share This Page