is here easy way to control output relay in android?

Post Reply
Jumbo
Posts: 10
Joined: Sun Oct 20, 2019 5:32 pm
languages_spoken: english
ODROIDs: odroid-N2
Has thanked: 0
Been thanked: 0
Contact:

is here easy way to control output relay in android?

Unread post by Jumbo » Thu Oct 24, 2019 2:27 pm

Hello

I want control some lights in car by odroid-n2.
is here some easy way to turn on/off switch/relay external hardware?

or someone know device with app for android to control relays?

User avatar
mad_ady
Posts: 7139
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 313 times
Been thanked: 220 times
Contact:

Re: is here easy way to control output relay in android?

Unread post by mad_ady » Thu Oct 24, 2019 6:42 pm

You should be able to control gpios via sysfs, as described here: https://wiki.odroid.com/odroid-n2/appli ... ent_40pins

Luke.go
Posts: 398
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 11 times
Been thanked: 30 times
Contact:

Re: is here easy way to control output relay in android?

Unread post by Luke.go » Fri Oct 25, 2019 5:08 pm

You also can use wiringPi to control gpio.
but you will face some permission problem.

Luke.go
Posts: 398
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 11 times
Been thanked: 30 times
Contact:

Re: is here easy way to control output relay in android?

Unread post by Luke.go » Mon Oct 28, 2019 5:19 pm

You can also create app based on android things api.
Here is the example project.
github - https://github.com/xiane/thingsGpioExample
you can build and test it with android studio for the n2 32bit android (next 64bit android can be worked). :)

you can get more infromation about gpio pins on the Expansion connectors from wiki. :)
https://wiki.odroid.com/odroid-n2/hardw ... connectors
These users thanked the author Luke.go for the post:
rooted (Tue Oct 29, 2019 7:25 am)

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 0 guests