Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Hardware PWM using lightweight rpi_hardware_pwm library#474

Open
shortbloke wants to merge 1 commit intovitormhenrique:masterfrom
shortbloke:hardware_pwm
Open

Hardware PWM using lightweight rpi_hardware_pwm library#474
shortbloke wants to merge 1 commit intovitormhenrique:masterfrom
shortbloke:hardware_pwm

Conversation

@shortbloke
Copy link
Copy Markdown

Lightweight hardware PWM implementation with GUI configuration, allowing 25000 Hz PWM signal suitable for controlling Noctua PWM fans.

Another PR #442 but was criticised for needing pigpio and lacking UI configuration. This PR attempts so address the requirement whilst:

  • Using a lightweight rpi-hardware-pwm library not pigpio
  • Does not require everyone install the library, only if you enable this option in the UI

Fixes: #349

@shortbloke shortbloke mentioned this pull request Jan 30, 2022
@GerhardMassenbichler
Copy link
Copy Markdown

Great Work. I like the small and lightweight rpi_hardware_pwm library instead of pigpio.

Comment thread README.md
@pipersw
Copy link
Copy Markdown

pipersw commented Feb 28, 2023

Could you provide a binary for Raspbian ?

@joh
Copy link
Copy Markdown

joh commented Jul 7, 2023

Hi, what remains for this PR to be merged? :)

@joh
Copy link
Copy Markdown

joh commented Jul 20, 2023

Just tested this and it works great, thank you! Only snag was that installing rpi-hardware-pwm system-wide (as per instructions) didn't work on OctoPi, since OctoPrint runs in a virtual environment and won't see system-wide packages. Instead I had to install it in the virtual environment, like so:

source ~/oprint/bin/activate
pip install rpi-hardware-pwm

Perhaps the docs can be updated, or even better, that the package can be installed on demand by the plugin?

Canabalooza added a commit to Canabalooza/OctoPrint-Enclosure that referenced this pull request Feb 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PWM frequency for Noctua fans

6 participants