Skip to content
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

Update #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update #5

wants to merge 1 commit into from

Conversation

Armaelius
Copy link

Fixing the gcode M141 script for the new klipper

Fixing the gcode M141 script for the new klipper
@medicusdkfz
Copy link

medicusdkfz commented Mar 14, 2023

Is it possible to use it the other way around? I have 2 ambient fans inside my Voron. To get the chamber on temperature while printing with ASA/ABS...), both fans are running at full speed. When the temperature raises over 60 degrees celsius, I want them to switch off.

@burntcoinpurse
Copy link

So mine should be simple. I have my extruder and bed temp changeing my neopixels from blue to red gradient, but for the life of me I can't get the chamber to read.

[verify_heater chamber]
max_error: 100
check_gain_time: 60
hysteresis: 10
heating_gain: 0.5

[heater_generic chamber]
gcode_id: C
heater_pin: PA3
max_power: 1
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PF5
#smooth_time:
control: pid
pid_Kp: 53
pid_Ki: 9.87
pid_Kd: 198.13
pwm_cycle_time: 0.02
min_temp: 0
max_temp: 90

[heater_fan chamber_fan]
pin: PD13
max_power: 1
shutdown_speed: 1
heater: chamber
heater_temp: 50.0
fan_speed: 1.0

[gcode_macro M141]
gcode:
  {% set CHAMBER_TEMP = params.S|default(0)|float %}
  SET_HEATER_TEMPERATURE HEATER=chamber TARGET={CHAMBER_TEMP}

Here is what I got

 [display_template led_extruder_temp_glow]
text:
    {% if printer.extruder.target > 0.0 %}
        {%  set temp = printer.extruder.target %}
    {% else %}
        {% set temp = printer.configfile.settings.extruder.max_temp %}
    {% endif %}
    {% set ratio = printer.extruder.temperature / temp %}
    {ratio}, 0.0, {1-ratio}, 0.0

[display_template led_bed_temp_glow]
text:
    {% if printer.heater_bed.target > 0.0 %}
        {%  set temp = printer.heater_bed.target %}
    {% else %}
        {% set temp = printer.configfile.settings.heater_bed.max_temp %}
    {% endif %}
    {% set ratio = printer.heater_bed.temperature / temp %}
    {ratio}, 0.0, {1-ratio}, 0.0
    
[display_template led_chamber_temp_glow]
text:
    {% if printer.heater_generic.chamber.target > 0.0 %}
        {%  set temp = printer.heater_generic.chamber.target %}
    {% else %}
        {% set temp = printer.configfile.settings.heater_generic.chamber.max_temp %}
    {% endif %}
    {% set ratio = printer.chamber_temp.temperature / temp %}
    {ratio}, 0.0, {1-ratio}, 0.0

I'm pretty sure I just don't have the display template for the chamber correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants