1 1

GPIO not working on OrangePi Win Plus with Python

Recommended Posts

Hello every one I'm new to this site and I have recently purchased an Orange Pi Win Plus but got a lot of issues in configuring it.
I'm now able to blink LED through Shell and C with WiringPi but I couldn't find any working Python 3 based Library for GPIO.

I installed WiringPi from : https://github.com/OrangePiLibra/WiringPi

This actually helped me to access GPIO through C/C++ and Shell but I couldn't find any thing for Python that's working.

I came accross a new Python Library : "pyA64" but its not working. Also, the library "OPi.GPIO" doesn't supports my Board.
I also tried this : https://github.com/lanefu/WiringPi-Python-OP
but that's makes my "gpio" command to stop functioning.

I need help!!
Does anyone knows how to access GPIO on Orange Pi Win Plus through Python ?

Share this post

Link to post
Share on other sites

I never tried to use directly the GPIO with c/c++ but I skipped the whole hassle to find a working overlay using an 8 way i2c GPIO port expander.  If you have electronic skills you can buy this chip:


and make a board for it or you can go with a plug&play alternative like this:



You can manage the the i2c bus enabling it's overlay (add in /boot/armbianEnv.txt overlays=i2c0), install i2ctools (apt-get install i2c-tools) and smbus2 library for python (pip install...)

good luck!


Share this post

Link to post
Share on other sites
On 02/07/2018 at 02:22, Igor said:

O Python é instalado por padrão ... enquanto as bibliotecas de E / S do Python não são.


I need tips to use GPIO on orange pi Win plus. All my attempts were flawed :(

Share this post

Link to post
Share on other sites

There are many ways to use GPIO. You can use classic sysfs, ie : /sys/class/gpio

You can also take the python Pine64 library : https://github.com/swkim01/RPi.GPIO-PineA64

You can even use that one since it has been ported for H5 with proper 64bits pointers : https://github.com/herzig/orangepi_PC_gpio_pyH5


EDIT : There is also this one coming from A64-OlinuXino : https://files.pythonhosted.org/packages/29/a8/e9ce35c362e6340713bbbffcf260c4ffca87b404d9811e5d400f33e6c5c8/pyA64-0.1.0.tar.gz


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1 1