Post #12 that is the service script...to start fan on boot...
So you still using the pwm script from latest post?
No, this script is enough for me, because the fan is quiet and rarely turns on.
Post #12 that is the service script...to start fan on boot...
So you still using the pwm script from latest post?
No, this script is enough for me, because the fan is quiet and rarely turns on.
Drew a diagram for a beginner:
What error you get when you run script manually?..If I remember correctly you should connect pwm transistor base to gpio12 which is pin 18
.i ll double check when home
It worked with the script from post #12.
Thank you.
Make sure
you installed raspberry pi tools addon from libreelec repo
chmod 777 the run-fan.py script
run dos2unix command on script
you can run script from ssh directly to test...fan should start
Hi!
Yes, installed raspberry pi tools addon from libreelec repo
Yes, chmod 777 the run-fan.py script
І am run script from ssh directly to test...but fan does not work
but it gives me again error.
What have I done wrong?
Thank you!
Same curcuit but with no diode or resistance...just transistor
I m using this script run-fan.py.txt
Then place this in system.drun-fan.service.txt
Dear Mario77,
I did everything as written in post # 58, but it gives me this error:
● run-fan.service - to control the fan based on temperature. Loaded: loaded (/storage/.config/system.d/run-fan.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-01-03 20:43:25 UTC; 13s ago Process: 842 ExecStart=/usr/bin/python /storage/.kodi/userdata/fan/run-fan.py (code=exited, status=1/FAILURE) Main PID: 842 (code=exited, status=1/FAILURE)
What have I done wrong?
Thank you!