julianschill / klipper-led_effect

LED effects plugin for klipper
GNU General Public License v3.0
647 stars 117 forks source link

Issue: Klipper MCU freezes during progress effect #127

Closed EmanuelStassar closed 1 year ago

EmanuelStassar commented 1 year ago

Led effects config and printer config.zip

As soon as printing progress starts, klipper crashes with an MCU error 326328112_1628809064222658_5557927870006243618_n

A simpel progress effect works fine.

julianschill commented 1 year ago

Ok, I will look into it. If you could also provide a klippy.log, that would help a lot.

EmanuelStassar commented 1 year ago

klippy-3.log

Here is the Slippy log. And the version of led effects is: led_effect v0.0.9-0-g5d16b1c

I hope you can find the issue. BTW I managed to crash the simulator a few times while trying to get this effect right (on MAC OS on M1 MacBook Air)

julianschill commented 1 year ago

As the error says it has "Lost communication with the MCU" I don't think that is error is caused by the effect. Maybe the LEDs draw too much power and your board shuts down? Hard to say. The exact same effect works on my printer.

EmanuelStassar commented 1 year ago

That was it! Silly of me not to think about that. I reduced brightness of the white color and that solved the issue. I now have a nice green dot moving along a white ledstrip during printing. Thanks for looking into this and for the nice piece of coding!