Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OrangePI win plus GPIO out not working

Featured Replies

hello Armbians,

 

Since over an year I try to use this useless Board.

 

Now i  want too switch 3 Relays modules with the gpio system, after an udp command.

 

I installed Wiring pi , 

gpio  readall work

gpio write 25 1 , works to  the inputt get the value 1

gpio mode 25 out, does not work

 

 

 

echo 36 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio36/direction

echo 101 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio101/direction

the input is without an error but with gpio readall nothing changes

 

this code I wrote to use the gpio with python

export38= open('/sys/class/gpio/export','w')
export38.write('38') 
export38.close()
	
active_low38= open('/sys/class//gpio/gpio38/active_low','w')
active_low38.write('1') 
active_low38.close()

direction38= open('/sys/class//gpio/gpio38/direction','w')
direction38.write('out') 
direction38.close()


value38= open('/sys/class//gpio/gpio38/value','w')
value38.write('1') 
value38.close()

but also with gpio readall nothing changes.

 

this code work on an rpi3 

export26= open('/sys/class/gpio/export','w')
export26.write('26') 
export26.close()
	
active_low26= open('/sys/class//gpio/gpio26/active_low','w')
active_low26.write('1') 
active_low26.close()

direction26= open('/sys/class//gpio/gpio26/direction','w')
direction26.write('out') 
direction26.close()


value26= open('/sys/class//gpio/gpio26/value','w')
value26.write('1') 
value26.close()

with gpio the pin 37 changes to high.

 

 

on the opiwin the values in the filesystem changes but not with gpio readall

 

 

does somebody else have this problems?

 

does the gpio system not work or wiring pi?

 

 

 

 

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.