-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDO Nitehawk MCU template and tachometer proper integration
- Loading branch information
Showing
15 changed files
with
191 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[gcode_macro _USER_VARIABLES] | ||
variable_hotend_fan_tach_enabled: True | ||
gcode: | ||
|
||
[heater_fan hotend_fan] | ||
pin: E_FAN | ||
max_power: 1.0 | ||
kick_start_time: 0.100 | ||
heater: extruder | ||
heater_temp: 50.0 | ||
tachometer_pin: E_FAN_TACHO | ||
|
||
# And we also include the tachometer check macros from here | ||
[include ../../../macros/helpers/tachometer_check.cfg] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[gcode_macro _USER_VARIABLES] | ||
variable_part_fan_tach_enabled: True | ||
gcode: | ||
|
||
[fan] | ||
pin: PART_FAN | ||
kick_start_time: 0.100 | ||
cycle_time: 0.010 | ||
tachometer_pin: PART_FAN_TACHO | ||
|
||
# And we also include the tachometer check macros from here | ||
[include ../../../macros/helpers/tachometer_check.cfg] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## This config file contains macros that are used in conjuction with tacho-enabled hotend and part fans | ||
|
||
# Monitoring loop for hotend fan safety check | ||
[delayed_gcode _BACKGROUND_HOTEND_TACHO_CHECK] | ||
gcode: | ||
_HOTEND_FAN_CHECK | ||
UPDATE_DELAYED_GCODE ID=_BACKGROUND_HOTEND_TACHO_CHECK DURATION=3 | ||
|
||
[gcode_macro _HOTEND_FAN_CHECK] | ||
description: Check the hotend fan tachometer to verify that it is running effectively | ||
variable_he_stop_count: 0 | ||
gcode: | ||
{% set min_rpm = 1000|float %} # This is a relatively low value adapted to all fans to check that they are effectively running | ||
{% set max_consecutive_stops = 3 %} | ||
{% set rpm = printer['heater_fan hotend_fan'].rpm|float %} | ||
{% set he_target = printer[printer.toolhead.extruder].target|float %} | ||
{% set he_temp = printer[printer.toolhead.extruder].temperature|float %} | ||
{% set fan_on_temp = printer.configfile.settings['heater_fan hotend_fan'].heater_temp|float %} | ||
{% set he_stop_count = printer["gcode_macro _HOTEND_FAN_CHECK"].he_stop_count|int %} | ||
|
||
{% if (he_target >= fan_on_temp) and (rpm < min_rpm) and (he_temp >= fan_on_temp) %} | ||
SET_GCODE_VARIABLE MACRO=_HOTEND_FAN_CHECK VARIABLE=he_stop_count VALUE={he_stop_count + 1} | ||
RESPOND MSG="Hotend fan stoppage detected for {(he_stop_count+1)*3}sec (max {max_consecutive_stops*3}sec allowed)" | ||
M400 | ||
{% if printer["gcode_macro _HOTEND_FAN_CHECK"].he_stop_count|int >= max_consecutive_stops-1 %} | ||
CANCEL_PRINT | ||
{% endif %} | ||
{% else %} | ||
SET_GCODE_VARIABLE MACRO=_HOTEND_FAN_CHECK VARIABLE=he_stop_count VALUE=0 | ||
{% endif %} | ||
|
||
|
||
[gcode_macro _PART_FAN_CHECK] | ||
description: Check the part fan tachometer to verify that it is running effectively | ||
gcode: | ||
{% if printer.fan.rpm is not none %} | ||
{% if printer.fan.rpm > 1000 %} # This is a relatively low value adapted to all fans to check that they are effectively running | ||
{action_respond_info("Part fan OK!")} | ||
{% else %} | ||
M400 | ||
CANCEL_PRINT | ||
{action_raise_error("Hotend fan stoppage detected, print was canceled!")} | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
#-------------------------------------# | ||
#### BTT SKR3 definition #### | ||
#-------------------------------------# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
152 changes: 0 additions & 152 deletions
152
user_templates/mcu_defaults/toolhead/LDO_Nighthawk-SB_v1.0.cfg
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.