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.

GPIO Orange PI WIN PLus

Featured Replies

Hello

Could You advice how to steering my GPIO output

I need set "+" for this 4 canal 31 33 35 37

I already have the connect but can`t fine tutorial on web how to do it.

 

 

Snap72.jpg

Snap73.jpg

1 hour ago, djmcg said:

I need set "+" for this 4 canal 31 33 35 37

You could use gpio sysfs as it is the most easy way.

pin31,33,35,37 are respectively PB5,PB6,PB7 and PD5. In gpio sysfs, they becomes gpio37,gpio38,gpio39 and gpio101.

Here are the command to turn a gpio37 into output and set level output state :

echo 37 > /sys/class/gpio/export
echo "out" > /sys/class/gpio37/direction
echo 1 > /sys/class/gpio37/value

Simply repeat the code for other gpios ...

  • Author
8 minutes ago, martinayotte said:

Simple ...


echo 0 > /sys/class/gpio/gpio37/value

 

Hello I just  tested with parameter "0" not work, but

 

echo 37 > /sys/class/gpio/export 

  - init option to work (on ,off)

 

echo "out" > /sys/class/gpio/gpio37/direction

  - turn On

echo 1 > /sys/class/gpio/gpio37/value

   - turn Off

 

Thank You

 

 

6 minutes ago, djmcg said:

now 0 work correctly

Good !

Simple bash script to toogle every half seconds :

#!/bin/bash

echo 37 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio37/direction

while true; do
	echo 0 > /sys/class/gpio/gpio37/value
	sleep 0.5
	echo 1 > /sys/class/gpio/gpio37/value
	sleep 0.5
done

 

  • Author

Could You help me

When i turn on/off the 37 port in

gpio readall

The port 31 is change

Could You advice what`s happen

see screen

 

Snap83.jpg

2 hours ago, djmcg said:

The port 31 is change

What do you means, there is no such pins for 31, neither than 29,33,35, gpio numbers are the ones in the BCM column ... So that is why sysfs gives errors.

For "gpio readall" outputs, it is reflecting the reality when you change value of 37, the V columns is appearing accordingly...

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.