-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU usage, and which PWM_FREQ? #3
Comments
I have set the PWM_FREQ to 25, and CPU usage has lowered to ~2%, and temps and fan noise seem to be ok. |
As pointed to me elsewere, a hardware PWM solution wouldn't use much of the CPU, so this PWM solution is software-based right? Are there any hardware solution alternatives? |
I connected a 5v mini fan to the 3v output. |
Update: i commit a new version with hardware PWM. @josejsarmento the changes to enable hardware PWM are minimal. Just use https://github.com/Pioreactor/rpi_hardware_pwm library and follow the steps to enable PWM in config.txt. Changes to apply:
line 127-129:
line 76:
On my Raspberry PI 4 the cpu load dropped after one minute to 0.1% |
Thanks @mariusmotea for the suggestion! I only had to change
to |
Hello! Thank you very much for this, it's been very handy. I just wanted to ask two questions:
htop
also shows the same CPU usage, but the cores above don't seem to be working that much (around 3%)This is a Raspberry Pi 4B 8GB with a 64-bit Ubuntu server
The text was updated successfully, but these errors were encountered: