aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Config_Reference.md
diff options
context:
space:
mode:
authorAdrian Keet <arkeet@gmail.com>2021-02-06 15:11:29 -0800
committerKevinOConnor <kevin@koconnor.net>2021-03-01 14:53:13 -0500
commit16d85d1a78bbd29d0177c98754b9a8ccb9f10b42 (patch)
tree68f4fd163dccf3233ada50f2806717d26b99cd5f /docs/Config_Reference.md
parentf8b0ea53dcf2a04ca847aa6cbf4683eed98a3321 (diff)
downloadkutter-16d85d1a78bbd29d0177c98754b9a8ccb9f10b42.tar.gz
kutter-16d85d1a78bbd29d0177c98754b9a8ccb9f10b42.tar.xz
kutter-16d85d1a78bbd29d0177c98754b9a8ccb9f10b42.zip
fan: Add tachometer support
This adds new config options for fans: 'tachometer_pin' to specify the GPIO pin, and 'tachometer_ppr' (default 2) to specify the number of signal pulses per revolution. The rpm is also exposed by get_status for command templates and the API server. For fast fans (at least 10000 RPM), the polling interval can be shortened using the 'tachometer_poll_interval' option. There is a new mcu object for a generic edge counter, which repeatedly polls a GPIO pin and periodically reports the count to the host. Signed-off-by: Adrian Keet <arkeet@gmail.com>
Diffstat (limited to 'docs/Config_Reference.md')
-rw-r--r--docs/Config_Reference.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md
index 60f344d4..48ba7d32 100644
--- a/docs/Config_Reference.md
+++ b/docs/Config_Reference.md
@@ -2226,6 +2226,19 @@ pin:
# input speed which reliably drives the fan without stalls. Set
# off_below to the duty cycle corresponding to this value (for
# example, 12% -> 0.12) or slightly higher.
+#tachometer_pin:
+# Tachometer input pin for monitoring fan speed. A pullup is generally
+# required. This parameter is optional.
+#tachometer_ppr: 2
+# When tachometer_pin is specified, this is the number of pulses per
+# revolution of the tachometer signal. For a BLDC fan this is
+# normally half the number of poles. The default is 2.
+#tachometer_poll_interval: 0.0015
+# When tachometer_pin is specified, this is the polling period of the
+# tachometer pin, in seconds. The default is 0.0015, which is fast
+# enough for fans below 10000 RPM at 2 PPR. This must be smaller than
+# 30/(tachometer_ppr*rpm), with some margin, where rpm is the
+# maximum speed (in RPM) of the fan.
```
## [heater_fan]
@@ -2244,6 +2257,9 @@ a shutdown_speed equal to max_power.
#hardware_pwm:
#kick_start_time:
#off_below:
+#tachometer_pin:
+#tachometer_ppr:
+#tachometer_poll_interval:
# See the "fan" section for a description of the above parameters.
#heater: extruder
# Name of the config section defining the heater that this fan is
@@ -2277,6 +2293,9 @@ watched component.
#hardware_pwm:
#kick_start_time:
#off_below:
+#tachometer_pin:
+#tachometer_ppr:
+#tachometer_poll_interval:
# See the "fan" section for a description of the above parameters.
#fan_speed: 1.0
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan
@@ -2317,6 +2336,9 @@ additional information.
#hardware_pwm:
#kick_start_time:
#off_below:
+#tachometer_pin:
+#tachometer_ppr:
+#tachometer_poll_interval:
# See the "fan" section for a description of the above parameters.
#sensor_type:
#sensor_pin:
@@ -2362,6 +2384,9 @@ with the SET_FAN_SPEED
#hardware_pwm:
#kick_start_time:
#off_below:
+#tachometer_pin:
+#tachometer_ppr:
+#tachometer_poll_interval:
# See the "fan" section for a description of the above parameters.
```