klipper-led_effect
klipper-led_effect copied to clipboard
HEATER effect only produces a static colour
In principle, this effect is great but it doesn't seem to work. I have it configured like this
[...]
[neopixel chamber] pin: P1.24 chain_count: 144 initial_RED: 0.031 initial_GREEN: 0.031 initial_BLUE: 0.031 color_order: GRB
[...]
[led_effect preheat] leds: neopixel:chamber (106-140) autostart: true frame_rate: 24 heater: heater_bed layers: heater 45 1 top (0,1,0),(1,0,0)
I expected this to start up green, then transition to red as the bed heats up, but it just stays a solid green until it finally goes out when the bed reaches temperature.
Maybe I'm doing it wrong?
The last color of the palette is used for "temperature reached". So easiest fix would be to define the second color twice.
Try this:
[led_effect preheat]
leds:
neopixel:chamber (106-140)
autostart: true
frame_rate: 24
heater: heater_bed
layers:
heater 45 0 top (0,1,0),(1,0,0),(1,1,1)
@NameOfTheDragon Did you get it to work? Can this be closed?
@julianschill Iam also in the state of trying out the heater effect. I also get a Static color only. This is my LED.cfg
[neopixel neo]
pin: P1.24
chain_count: 20
color_order: GRB
initial_RED: 0.0
initial_GREEN: 0.4
initial_BLUE: 0.0
#initial_WHITE: 1.0
[led_effect panel_idle]
autostart: true
frame_rate: 24
leds:
neopixel:neo
layers:
# layer_name Effect Rate Cutoff Blending Color
breathing 10 1 top (.5,.5,1)
[led_effect heater]
autostart: true
frame_rate: 24
leds:
neopixel:neo
heater: heater_bed
layers:
# layer_name Effect Rate Cutoff Blending Color
heater 20 0 add (0,0,1),(1,0,0),(1,1,0)
Steps to reproduce:
- Restart klipper
- Command: STOP_LED_EFFECTS
- Command: SET_LED_EFFECT EFFECT=heater
- First color (0,0,1) is now applied
- Starting to heat the heatbed to 40C
- Color goes instantly to 1,1,0
What can i do about this? Are iam missing something ?
@FloxRoxX Is your bed maybe already hot? It switches to the last color, when the temperature is in the range of 2°C of the target temperature.
@julianschill No, i started with a room temp bed and tried to raise it from 20C to about 40C
I cannot reproduce this. When I try your config it starts blue, turns purple, becomes red while heating up and as soon as it reaches 38°C it turns green.