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 problem

Featured Replies

Hello

 

I'm running the NAS on Orange PI 5. I've run Armbian with EDK2 from https://github.com/armbian/build/pull/5900. The system starts from SSD disk connected via PCIE card with 4 SATA ports. I wanted to run simple fan control via GPIO, but setting the value 1 or 0 on GPIO has no effect and the multimeter connected to GPIO always shows 2.85V. How I did it. I installed wiringOP as the manual says. I selected GPIO 0 and entered the commands
gpio mode 0 out
gpio write 0 0
I connected a multimeter to GPIO 0 but it always shows 2.85V
when I did
gpio write 0 1
the multimeter also shows 2.85V
gpio readall
shows 1 in column V when "gpio write 0 1" command is
shows 0 in column V when "gpio write 0 0" command is
Does anyone have an idea what I'm doing wrong?

you can't use GPIO as power supply for fan, this will break the gpio bank.

 

you can use GPIO as ON/OFF switch for fan, you should use "gpio-fan" driver.

 

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/devicetree/bindings/hwmon/gpio-fan.txt?h=v6.7.8

 

by this you can use /sys/class/thermal/cooling_deviceX/state control you fan, but if you want to system automatically enable your fan at certan temperature,

you need register the fan as a cooling device, for cpu/gpu or hard driver.

 

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml

  • Author

Thank you for your answer.

Sorry, I didn't write this, but GPIO is sterring the fan through a transistor. 

I will check it on a newer version of the distribution, the one I have is the beta version. Maybe that's the problem.

 

 

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...

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.