please choosego to mobile | Continue to access the PC version
View: 4848|Reply: 1

Orange pi 4B GPIO problem

[Copy link]

1

threads

1

posts

13

credits

Novice

Rank: 1

credits
13
Published in 2020-10-15 19:06:20 | Show all floors |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
Published in 2020-11-22 14:38:50 | Show all floors
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 code

2.
  1. sudo pip install .
Copy code

3.
  1. pip3 install .
Copy code

4.
  1. sudo python test_gpio.py 11
Copy 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 need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list