API for controlling GPIO pins from Android apps
#1
Backer Per-Jarle Sæther would like to know:

"Do you have an API for controlling GPIO pins from Android apps? 

I would like to make my own apps for controlling the GPIO pins. Would be awesome if this could be possible from java apps without the need for native coding."

Can anyone offer any help?
#2
(01-26-2016, 07:49 AM)SkairkrohBule Wrote: Backer Per-Jarle Sæther would like to know:

"Do you have an API for controlling GPIO pins from Android apps? 

I would like to make my own apps for controlling the GPIO pins. Would be awesome if this could be possible from java apps without the need for native coding."

Can anyone offer any help?

Not yet, this is work in progress. However, we use similar method to test GPIO pin functionality at production floor in factory.
#3
This is actually why I joined the forum. I want to be able to have Android accept input from a set of GPIO ports and automatically initiate a proper shutdown/startup sequence. I want to build a CarPC with this because it's a lot better than the RPi2 I'm using right now.

I'm using the Mausberry 3A switch (link below) to provide power to everything only when the car is turned on. It send signals to the GPIO pins to initiate the proper shutdown and startup. I'm hoping to be able to incorporate this in Android and the Pine64.

http://www.mausberrycircuits.com/collect...ply-switch

Well, doing a little more research I found that we have an EXP Connector now that's not on the schematic I have printed out. I found the updated pinout on the wiki (https://drive.google.com/file/d/0B0cEs0l...IzTlE/view) that shows hardware pins that allow for a power and reset switch that is integrated into the Android image. Perfect. Looks like this will work flawlessly right out of the box. This is turning out to be one of the best boards on the market as you don't need to waist a GPIO pin for a power switch.
#4
(02-26-2016, 09:36 AM)SpecterXP Wrote: This is actually why I joined the forum. I want to be able to have Android accept input from a set of GPIO ports and automatically initiate a proper shutdown/startup sequence. I want to build a CarPC with this because it's a lot better than the RPi2 I'm using right now.

I'm using the Mausberry 3A switch (link below) to provide power to everything only when the car is turned on. It send signals to the GPIO pins to initiate the proper shutdown and startup. I'm hoping to be able to incorporate this in Android and the Pine64.

http://www.mausberrycircuits.com/collect...ply-switch

Well, doing a little more research I found that we have an EXP Connector now that's not on the schematic I have printed out. I found the updated pinout on the wiki (https://drive.google.com/file/d/0B0cEs0l...IzTlE/view) that shows hardware pins that allow for a power and reset switch that is integrated into the Android image. Perfect. Looks like this will work flawlessly right out of the box. This is turning out to be one of the best boards on the market as you don't need to waist a GPIO pin for a power switch.

EXP circuit is on the schematic.
#5
tllim:
You mean this? Because I can't seem to locate it on that image. However, it is on the other one I posted. That's why I re-posted. I didn't want to make it seem like I couldn't find something for myself, and wanted to make sure others could find it if they searched. Big Grin

http://wiki.pine64.org/images/7/7d/Pine6...nector.png
#6
(02-29-2016, 01:57 PM)SpecterXP Wrote: tllim:
You mean this? Because I can't seem to locate it on that image. However, it is on the other one I posted. That's why I re-posted. I didn't want to make it seem like I couldn't find something for myself, and wanted to make sure others could find it if they searched. Big Grin

http://wiki.pine64.org/images/7/7d/Pine6...nector.png

The EXT pin definition listed on page 3 under Pine64 wiki site

https://drive.google.com/a/pine64.com/fi...sp=sharing


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 381,790 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 29,164 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 16,529 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 6,864 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 6,936 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 5,519 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,291 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 253,801 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 3,495 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 103,793 02-10-2019, 07:44 PM
Last Post: mmmarcus

Forum Jump:


Users browsing this thread: 1 Guest(s)