![]() GPIO=18 # GPIO pin number 18 is hardware PWMįreq=25000 # This is the frequency of the PWM signal increase if you hear a whineĭebug "setting PWM on GPIO $GPIO at $". ThresholdF=135 # Turn the fan on when we're above this temp ![]() Be careful not to set this too low, or your fan may not spin! 9.99 Add to Cart Inflatality : Lords of Derp - OUT NOW ON STEAM Inflatality - LORDS OF DERP, our epic single player campaign is now live - 100 free Embark on an epic quest to face the Lords of Derp - six brutal opponents spanning the breadth of the Inflatality universe. Use and make changes at your own risk! #!/bin/bashįanSpeed=65 # run the fan at 65% speed mine was too noisy at 100%. If these settings or any settings you use burn up your fan or cause harm to your Raspberry Pi, I cannot be held responsible. This script assumes you have python installed.ĭisclaimer: I have been running my RPi3 with this script for 17+ months as of Jan 2019. I wouldn't leave this on once you've confirmed that it's all working though as this would perform unnecessary writes to your SD card. If you want to see what is happening, set DEBUG=1 and information will be written to /tmp/debug. Modify the variables at the beginning of the script to your liking. You can create a new bash script with the following content. Now we have the program we'll use to control the fan via PWM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |