You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I have the red pin connected to pin number 25.
The fan does not turn on when the temperature gets high. But not only that it seems that a call to "GPIO.output(GPIOfan, True)" in general does not turn on the fan. Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Thank you for catching this. I apologize for wasting your time. I made a
mistake.
Red Fan pin goes to GPIO 3.3v. <<< My mistake (I wrote ground. It should be
either pins 01 or 17)
Black Fan pin goes to GPIO GPIO_PIN defined in the script, which is 26. So,
this is correct.
This steps below should allow you to see it turn on:
$ sudo python
>> import RPi.GPIO as GPIO
>> GPIOfan = 26
>> GPIO.setmode(GPIO.BCM)
>> GPIO.setup(GPIOfan, GPIO.OUT)
>> GPIO.output(GPIOfan, False)
On Mon, Jul 15, 2019 at 3:19 PM ktb92677 ***@***.***> wrote:
Hi! I can't for the life of me get the simple-fan.py to work...
I have the black pin connected to pin number 26 per this diagram:
https://www.google.com/search?q=raspberry+pi+3+b%2B+gpio+pinout&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiihcqXzrfjAhXVHM0KHeyEBhwQ_AUIECgB&biw=2560&bih=979#imgrc=D2ujNT7TNKinJM
:.
And I have the red pin connected to pin number 25.
The fan does not turn on when the temperature gets high. But not only that
it seems that a call to "GPIO.output(GPIOfan, True)" in general does not
turn on the fan. Any help would be greatly appreciated!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=ADAZSC3LQ3XCISRHQ3O4NR3P7TLUDA5CNFSM4ID2NUVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7J6CKQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADAZSC45LFUG6QEQUAVVSLTP7TLUDANCNFSM4ID2NUVA>
.
Hi! I can't for the life of me get the simple-fan.py to work...
I have the black pin connected to pin number 26 per this diagram: https://www.google.com/search?q=raspberry+pi+3+b%2B+gpio+pinout&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiihcqXzrfjAhXVHM0KHeyEBhwQ_AUIECgB&biw=2560&bih=979#imgrc=D2ujNT7TNKinJM:.
And I have the red pin connected to pin number 25.
The fan does not turn on when the temperature gets high. But not only that it seems that a call to "GPIO.output(GPIOfan, True)" in general does not turn on the fan. Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: