Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2633|Reply: 2

Using GPIO with Domoticz

[Copy link]

1

Threads

1

Posts

7

Credits

Novice

Rank: 1

Credits
7
Post time 2017-5-20 06:44:05 From the mobile phone | Show all posts |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.

56

Threads

660

Posts

3696

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
3696
Post time 2017-5-27 16:50:37 | Show all posts
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
Post time 2018-4-13 03:22:24 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-22 03:09 GMT+8 , Processed in 0.028555 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list