radxa rock gpio

Home Forums Hardware Other radxa rock gpio

This topic contains 7 replies, has 0 voices, and was last updated by Profile photo of Eric Eric 2 years, 10 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #135
    Profile photo of rob.1bmf
    rob.1bmf
    Participant

    Eric, is it possible for you to look into using the onboard gpio pins on the radxa rock pro
    along with your arduino control I think it would be similar to using the ones on the UDOO

    #526
    Profile photo of Eric
    Eric
    Keymaster

    A quick look leads me to believe the GPIO pins aren’t accessible from Android, but from Linux using libraries. It’s much the same in the UDOO world. Linux can access the pins, and Arduino can access the pins, but the Android system doesn’t have the nece

    #528
    Profile photo of rob.1bmf
    rob.1bmf
    Participant

    would something like this help

    would something like this help


    public class GPIO {

    public String port;
    public int pin;

    //get direction of gpio
    public String getInOut()
    {
    String command = String.format("cat /sys/class/g
    #527
    Profile photo of Eric
    Eric
    Keymaster

    It may. I can see it needs root, which I’ve not done yet, but shouldn’t be too hard to learn. I don’t know if that’s for the Raxda board or something else though. I can’t seem to find any other info from which project that file came from.

    #529
    Profile photo of rob.1bmf
    rob.1bmf
    Participant

    the rom on the Radxa Rock already has ROOT & Super User

    #530
    Profile photo of Eric
    Eric
    Keymaster

    That helps you not having to root, but I’d still have to program for root which is different than non root in the fact that I’d have to check for root, ask for user permission, etc… I know there are libraries for this I just need to learn them.
    I’m not

    #531
    Profile photo of rob.1bmf
    rob.1bmf
    Participant

    here is the gpio on the Radxa Rock if you need them

    http://radxa.com/mw/images/8/87/Extension_header_funca.png

    #532
    Profile photo of rob.1bmf
    rob.1bmf
    Participant

    i’m not sure if this will be better this is for the Radxa it’s JavaScript (Node.js)

    https://github.com/jdarling/radxa-rock

    Node.js GPIO interface for the Radxa Roc

    #539
    Profile photo of Eric
    Eric
    Keymaster

    Awesome info. I probably won’t be able to do much with them since I don’t have one of those boards. We’ll see maybe in the future.

  • Author
    Posts
  • #135
    Profile photo of rob.1bmf
    rob.1bmf
    Participant
    • Offline

    Eric, is it possible for you to look into using the onboard gpio pins on the radxa rock pro
    along with your arduino control I think it would be similar to using the ones on the UDOO

    #526
    Profile photo of Eric
    Eric
    Keymaster
    • Offline

    A quick look leads me to believe the GPIO pins aren’t accessible from Android, but from Linux using libraries. It’s much the same in the UDOO world. Linux can access the pins, and Arduino can access the pins, but the Android system doesn’t have the nece

    #528
    Profile photo of rob.1bmf
    rob.1bmf
    Participant
    • Offline

    would something like this help

    would something like this help


    public class GPIO {

    public String port;
    public int pin;

    //get direction of gpio
    public String getInOut()
    {
    String command = String.format("cat /sys/class/g
    #527
    Profile photo of Eric
    Eric
    Keymaster
    • Offline

    It may. I can see it needs root, which I’ve not done yet, but shouldn’t be too hard to learn. I don’t know if that’s for the Raxda board or something else though. I can’t seem to find any other info from which project that file came from.

    #529
    Profile photo of rob.1bmf
    rob.1bmf
    Participant
    • Offline

    the rom on the Radxa Rock already has ROOT & Super User

    #530
    Profile photo of Eric
    Eric
    Keymaster
    • Offline

    That helps you not having to root, but I’d still have to program for root which is different than non root in the fact that I’d have to check for root, ask for user permission, etc… I know there are libraries for this I just need to learn them.
    I’m not

    #531
    Profile photo of rob.1bmf
    rob.1bmf
    Participant
    • Offline

    here is the gpio on the Radxa Rock if you need them

    http://radxa.com/mw/images/8/87/Extension_header_funca.png

    #532
    Profile photo of rob.1bmf
    rob.1bmf
    Participant
    • Offline

    i’m not sure if this will be better this is for the Radxa it’s JavaScript (Node.js)

    https://github.com/jdarling/radxa-rock

    Node.js GPIO interface for the Radxa Roc

    #539
    Profile photo of Eric
    Eric
    Keymaster
    • Offline

    Awesome info. I probably won’t be able to do much with them since I don’t have one of those boards. We’ll see maybe in the future.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.