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 pins missing from gpio readall

Featured Replies

hello, 

 

i was trying to set up a 2 pin fan on my orangepi 5b and i connected it to pin 25 and 26 (GND and PWM1). When i first started this task, the output from 

gpio readall

would show me all 26 pins on the board.

 

As i was digging through some forums to try and get the PWM pin to operate as on/off, i came across wiringOP and when i installed it, the output of `gpio readall` changed to only show 8pins.

 

I am unsure of what went wrong and why it only shows 8 pins. I tried removing wiringOP and it still has not made a difference. 

 

Thanks

gpio no wiringop.png

gpio wiringop.png

@mamasaur1 It might be that it tries to read the layout of Orange Pi 5 instead of 5b, on the 5-plus I had to enter: echo "BOARD=orangepi5plus" | sudo tee /etc/orangepi-release

So probably for yours it should be: echo "BOARD=orangepi5b" | sudo tee /etc/orangepi-release

 

By the way,  it's not a good idea to connect a 2-pins fan directly to a gpio pin, too much current. Search for a pwm fan instead that's compatible for a raspberry pi.

Edited by royk

you want to add a 2 pin fan to opi5, unfortunitly, PWM port is IO port, it doesn't have enough power to driver your fan, thus would break the GPIO bank, and make whole bank unfunction.

 

thus suggest to directly use 5V power pin.

 

if you have 3 pin fan, you can use a PWM pin to control it speed. in this case, you need write dts code to enable it.

 

I have the same thing i am only seeing the first 8 pins.  i did the "sudo su -" to change to root then the  "echo "BOARD=orangepi5b" | sudo tee /etc/orangepi-release" 

 

where you able to figure anything out 

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.