View: 13648|Reply: 5

[FAN] GPIO Pin

[Copy link]

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
Published in 2016-6-9 16:20:48 | Show all floors |Read mode
Hello,

I am new in this world and need some help
I have an Orange PI Plus 2 and bought a CPU fan (2 pins - 5V)

I connected it into 5V pin but it is very scandalous jeje. Also, I connected into 3.3V but still doing some "noise".
My question is... If I connect the fan into GPIO Pin (3V), can I lower it to 1V for example?

https://i.iinfo.cz/images/399/orange-pi-plus-5.png

Which is the correct pin for this?

Thank you in advance .
(I did not find anything... Is so hard find OPI doc.)

2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
Published in 2016-6-9 16:37:28 | Show all floors
Using port You can only switch on/off this fan  
eg. (extra

(could be powered from 3V3 also)

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
 Author| Published in 2016-6-9 16:50:44 | Show all floors
mariuszb replied at 2016-6-9 16:37
Using port You can only switch on/off this fan  
eg. (extra

Wow! Great!
Thank you so much.
This leads to my second question. How can I switch this por on/off ussing armbian? Is the same command line for all distro?

Thank you again ^^

2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
Published in 2016-6-9 19:39:40 | Show all floors

1

threads

3

posts

19

credits

Novice

Rank: 1

credits
19
 Author| Published in 2016-6-10 02:24:22 | Show all floors
mariuszb replied at 2016-6-9 19:39
http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=1539&extra=page%3D1

Hmmm... I can see this: https://github.com/zhaolei/WiringOP
But... how can I do a "simple switch"? Just to turn off/on a Pin. Any special command? For example, if I want turn off GPIO.21, how can I do it?
Sorry for this newbie questions...

2

threads

30

posts

250

credits

Intermediate member

Rank: 3Rank: 3

credits
250
Published in 2016-6-10 15:04:25 | Show all floors
Edited by mariuszb at 2016-6-10 15:05

However, you need to read about ports (  https://github.com/zhaolei/WiringOP  &  http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=1539&extra=page%3D1
You can see also:
http://www.itcooky.com/?p=4023

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list