Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
8.98k stars 5.17k forks source link

controller_fan: add ability to watch temperature_sensors too #6479

Open slaesh opened 4 months ago

slaesh commented 4 months ago

I searched a way to have a fan controller that just watches one or more temperature sensors.. like host-temperature. since the enclosure fans of my voron are pretty loud.. and I noticed that most of the stuff is not getting hot at all.. so.. having this fan-controller work without the heater/extruder.. and just watch actual temperatures would be awesome! for my ears.. for the fans.. and hopefully for other guys out there ;)

I found this pretty old PR from @mnigbur, which did not make it back then..

just pinging some of the guys who where active in the past in this thread.. @Ramalama2, @theopensourcerer, @meteyou, @edddeduck, @KevinOConnor

question: any chance to test it without running an actual machine? (in general, not for this one =))

To-Do:

Signed-off-by: Sascha Ehlers sascha@ehle.rs

Ramalama2 commented 4 months ago

Hey @slaesh Im sorry, but i have to pass, im not active anymore in the 3d printing world xD Gaved my Voron away, using only Bambu atm if i need to print something rarely at all. Cheers :-)

JamesH1978 commented 4 months ago

Thank you for submitting a PR, pleas refer to point 3 in "What to expect in a review" in https://github.com/Klipper3d/klipper/blob/master/docs/CONTRIBUTING.md and provide a signed off by line.

Thanks James

slaesh commented 4 months ago

Thank you for submitting a PR, pleas refer to point 3 in "What to expect in a review" in https://github.com/Klipper3d/klipper/blob/master/docs/CONTRIBUTING.md and provide a signed off by line.

Thanks James

Hey James, I am happy to do that. But I am not sure exactly what to do 🙈 Where do I need to upload that "signed" file? :)

BR Sascha ✌️

slaesh commented 4 months ago

do I need to add another commit with --signoff option?

slaesh commented 4 months ago

oh I see, the link was not working on my github app this morning. so.. we add this sign-off thingy at the squashed commit or how do I add this kind of stuff for the already done commits? Oo

Signed-off-by: Sascha Ehlers <sascha@ehle.rs>

slaesh commented 4 months ago

@JamesH1978 done. Just saw another PR which had it in the description text. Hope this does the job ;)

pedrolamas commented 4 months ago

Just a thought, but would the combined temperature sensor and a regular temperature_fan help to achieve a similar result?

github-actions[bot] commented 3 months ago

Thank you for your contribution to Klipper. Unfortunately, a reviewer has not assigned themselves to this GitHub Pull Request. All Pull Requests are reviewed before merging, and a reviewer will need to volunteer. Further information is available at: https://www.klipper3d.org/CONTRIBUTING.html

There are some steps that you can take now:

  1. Perform a self-review of your Pull Request by following the steps at: https://www.klipper3d.org/CONTRIBUTING.html#what-to-expect-in-a-review If you have completed a self-review, be sure to state the results of that self-review explicitly in the Pull Request comments. A reviewer is more likely to participate if the bulk of a review has already been completed.
  2. Consider opening a topic on the Klipper Discourse server to discuss this work. The Discourse server is a good place to discuss development ideas and to engage users interested in testing. Reviewers are more likely to prioritize Pull Requests with an active community of users.
  3. Consider helping out reviewers by reviewing other Klipper Pull Requests. Taking the time to perform a careful and detailed review of others work is appreciated. Regular contributors are more likely to prioritize the contributions of other regular contributors.

Unfortunately, if a reviewer does not assign themselves to this GitHub Pull Request then it will be automatically closed. If this happens, then it is a good idea to move further discussion to the Klipper Discourse server. Reviewers can reach out on that forum to let you know if they are interested and when they are available.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

TheFuzzyGiggler commented 2 months ago

Is this not what's already covered with temperature_fan?

You can set a temperature_fan to check an mcu temp.

Example:

[temperature_fan SB2040_Fan] pin: sb2040:gpio15 sensor_mcu: sb2040 sensor_type: temperature_mcu cycle_time: 0.010 hardware_pwm: False min_temp: 0 max_temp: 100 control = pid pid_kp = 59.385 pid_ki = 0.153 pid_kd = 5758.870 min_speed: 0.1 target_temp: 45

Ignore my PID settings, they're horrible. I was messing around.

gabevenberg commented 1 day ago

Is this not what's already covered with temperature_fan?

You can set a temperature_fan to check an mcu temp.

Seems to me the reason is that you cant have a single fan be both a controller_fan and a temperature_fan.