please choosego to mobile | Continue to access the PC version
View: 6061|Reply: 2

Using GPIO with Domoticz

[Copy link]

1

threads

1

posts

7

credits

Novice

Rank: 1

credits
7
Published in 2017-5-20 06:44:05 from mobile | Show all floors |Read mode
Hi there,

Currently I own a Orange Pi 2 and Orange Pi Win Plus and I would like to use the GPIO's on the board(s) to work with Domoticz. When running Debian 8.8 on the Orange Pi 2 and WiringOP installed I wasn't able to run "gpio export BCM# in" to define an input. I haven't found any WiringOP port for the Orange Pi Win Plus (yet). Has anyone got their GPIO's working with Domoticz?
I hope to get this working otherwise running ESP Easy on a NodeMCU to receive a notification through Domoticz when someone has pressed my doorbell is my next best option.

62

threads

653

posts

5194

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
5194
Published in 2017-5-27 16:50:37 | Show all floors
Hi friend, i am so sorry there is no support for you. Does the problem you have is on the board of OrangePi2 or OrangePi pc2? If it is Pi 2, then you could refer to H3, if it is PC2 then you could refer to H5:
H3 WiringPi GPIO: 
git clone https://github.com/kazukioishi/WiringOP.git -b h3
H5(PC2) WiringPi GPIO:  
git clone https://github.com/kazukioishi/WiringOP.git -b h5
For A64, it still on the stage of transplant, if you want to use GPIO, you could try the following:
1.cd /sys/class/gpio
2.echo 36 > export(Hypothetical use PB4,PB4=32+4=36)
3.cd gpio36
4.echo out > direction
5.echo 1 > value
Hope could help you solve your problem!

1

threads

5

posts

34

credits

Novice

Rank: 1

credits
34
Published in 2018-4-13 03:22:24 | Show all floors
Hello buddy

I too have same problem as I have an Orange Pi Win Plus and till today I haven't found any working Python Library to support it !
WiringPi support is now available go to : https://github.com/OrangePiLibra/WiringPi

the above library will support Shell and C/C++ by default but for Python there is a library in Alpha stage called "pyA64" but its still NOT WORKING at all.

I too am looking for a Python library to work with on my board.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list