Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 1240|Reply: 1

Orange pi 4B GPIO problem

[Copy link]

1

Threads

1

Posts

13

Credits

Novice

Rank: 1

Credits
13
Post time 2020-10-15 19:06:20 | Show all posts |Read mode
Hello.

I have a problem with my Orange pi 4B, I did try to plug a fan using the 4 and 6 pines but it did not worked, when I did check the curret I´d see that it was 0v in all the GPIO, so I have not current there.

Is there any solution for this? Thank you.

2

Threads

7

Posts

30

Credits

Novice

Rank: 1

Credits
30
Post time 2020-11-22 14:38:50 | Show all posts
Hello.
In order to use GPIO you can install OPi.GPIO Libraries. If you are using debian or ubuntu images for the OPi4/4B the instructions are very straightforward:
1.
  1. cd /usr/local/sbin/OPi.GPIO/
Copy the Code

2.
  1. sudo pip install .
Copy the Code

3.
  1. pip3 install .
Copy the Code

4.
  1. sudo python test_gpio.py 11
Copy the Code
(to test pin 11, blinking a led)

Then, you can connect a fan through a transistor for pulling current from power pins, or attatch to 5.0V pin and GND (Pin 4 and 6 respectively)
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2021-4-17 23:06 GMT+8 , Processed in 0.028607 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list