0
pumuckl

OrangePI win plus GPIO out not working

Recommended Posts

Armbianmonitor:

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?

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0