UDOO NEO (Android)

Discussion in 'UDOO NEO' started by Ravikumar, May 18, 2017.

  1. Ravikumar

    Ravikumar New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
    Hi,
    I'm recently bought Udoo Neo. And I have following doubt.
    1. How to control and access gpio pins from android app. For Example i want to blink a led from android. Is there any library and source code available. Please send me.
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    There is a beta version where this should be possible. Please read through completly the following topic. But it is all beta (someone please correct me if I am wrong)
    https://www.udoo.org/forum/threads/programming-arduino-sketch-android-app.5026/

    Furthermore as video output of the Neo is limited do not expect a lot of the performance of android UI when you plan to do animations or that kind of stuff. Keep it simple!
     
  3. Ravikumar

    Ravikumar New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
    Sorry, Still i can't find any resource.
     
  4. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    The simplest way from Andriod is to export the gpio (same for linux) see this link and as along your application has permissions to the file device it can do the same thing. This article can also provide some guidance.
     
    Last edited: May 19, 2017
  5. Ravikumar

    Ravikumar New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
  6. Ravikumar

    Ravikumar New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
    Is there any source code available for control the gpio pin from either android app or android terminal.
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Ravikumar likes this.
  8. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    That class should work, however before that you need to export the gpio pin as device as per this link from a root shell in android. If /sys/class/gpio isn't present then the kernel isn't configured for gipo support. You may need to set the permission on /sys/class/gpio see Harsha Herur post in this thread.
     
  9. Laura

    Laura UDOOer

    Joined:
    Apr 22, 2016
    Messages:
    374
    Likes Received:
    156
    I have sent a message to the Lead Developer at UDOO to ask about this particular repository.
     
    Ravikumar likes this.
  10. ekirei

    ekirei Administrator

    Joined:
    Jun 14, 2013
    Messages:
    78
    Likes Received:
    3
    Hi, this library is quite mature. The Library works good writing and reading json messages through the serial port to and from the Arduino side running this sketch.
    The library and the sketch work in the same beheaviour as the famous library "Firmata": once you have uploaded the sketch on the Arduino side of the UDOO you don't need to think to the Arduino programming anymore, you can interact with the Arduino GPIO directly by Android programming.
    Inside the UDOOAndroidSerial library you can find a complete example App that let you see how to use the Arduino features (Digital/Analog Pins, Servo, Bricks etc).

    This Library is not fully documented yet but you can start using it and pointing out if there something doesn't work. What you need is program the Arduino side with the sketch linked before, from an external PC. You need to use the proper libraries for the UDOO NEO contained in the libraries folder of the repo.


    If instead you don't want to use the Arduino side you can follow the right inputs of @jas-mx
     
    Ravikumar, waltervl and Laura like this.

Share This Page