# Printer shuts down mid print

**URL:** <https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582>\
**Category:** General Discussion\
**Created:** [March 2, 2024, 2:19am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582 "2024-03-02T02:19:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boztech](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/boztech/32/11018_2.png) [@Boztech](https://klipper.discourse.group/u/Boztech)\
**Post date:** [March 2, 2024, 2:19am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/1 "2024-03-02T02:19:17Z")

</div>

### Basic Information:

Printer Model: Voron Switchwire  
 MCU / Printerboard: BTT SKR Mini E3 V3  
 `klippy.log`

I have just recently experienced this issue. My printer will just shut down after 5-10min into a print. I don’t really know how to read the logs. I did notice there are a ton of “Neo pixels failed”. Attached is 2 klippy logs.

[klippy.log](https://klipper.discourse.group/uploads/short-url/e7M3V6Hh2CpWr3RLU75ImwFTRbj.log) (1.7 MB)  
[klippy2.log](https://klipper.discourse.group/uploads/short-url/vQukPu77pqZI78dl25wrGbwTCZ1.log) (4.0 MB)

---

<div class="post-metadata">

**Author:** ![gaolst](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/gaolst/32/10026_2.png) [@gaolst](https://klipper.discourse.group/u/gaolst)\
**Post date:** [March 2, 2024, 2:40am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/2 "2024-03-02T02:40:50Z")

</div>

from your logs:

> Heater extruder not heating at expected rate  
> Transition to shutdown state: Heater extruder not heating at expected rate  
> See the ‘verify\_heater’ section in docs/Config\_Reference.md  
> for the parameters that control this check.

---

<div class="post-metadata">

**Author:** ![Boztech](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/boztech/32/11018_2.png) [@Boztech](https://klipper.discourse.group/u/Boztech)\
**Post date:** [March 2, 2024, 5:47am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/3 "2024-03-02T05:47:57Z")

</div>

Thanks. I will check it out. Any ideas on the Neo Pixel status?

---

<div class="post-metadata">

**Author:** ![gaolst](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/gaolst/32/10026_2.png) [@gaolst](https://klipper.discourse.group/u/gaolst)\
**Post date:** [March 2, 2024, 1:36pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/4 "2024-03-02T13:36:52Z")

</div>

> [@Boztech](#):
>
> Any ideas on the Neo Pixel status?

Your log did contain some dumped communication log which did contain neopixel calls - as i can see in 99% of time response indicated failure, I did peak at MCU code responsible for that and seems your board is very busy with other tasks and neopixel code can’t form correct timing of impulses to drive them and fail.  
Failure section of code have this comment `"// A hardware irq messed up the transmission - report a failure`"

It seems something is interfering in MCU with neopixel code execution, and as i can see your configuration contains many peripherals like LCD, TMC steppers, etc… - each of it is loading your MCU with tasks.

I can’t suggest some simple solution, but if you wish to play with it and find some answer - you can try to disable some peripherals, reduce number of pixels, do other stuff and check if neopixel starts working properly.

As concrete solution - most probably you need to introduce additional MCU for neopixel (additional hardware MCU) which will be responsible just for neopixel.

---

<div class="post-metadata">

**Author:** ![Boztech](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/boztech/32/11018_2.png) [@Boztech](https://klipper.discourse.group/u/Boztech)\
**Post date:** [March 15, 2024, 1:24pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/5 "2024-03-15T13:24:45Z")

</div>

Thanks for looking into this. Could you please tell me what you found thats eating up my MCU? I was running the Neo Pixels at a pretty high rate. What else?

---

<div class="post-metadata">

**Author:** ![gaolst](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/gaolst/32/10026_2.png) [@gaolst](https://klipper.discourse.group/u/gaolst)\
**Post date:** [March 15, 2024, 1:40pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/6 "2024-03-15T13:40:42Z")

</div>

Well judging by Stats you don’t have huge load on MCU, it’s around 0.15  
That issue with NeoPixels can be from any subsystem which require interrupts, definetly TMC communication also increasing interrupt rate, or firmware implementation for you board really changed in a such way that it’s constantly firing Interrupts and NeoPixels don’t have time.

---

<div class="post-metadata">

**Author:** ![Boztech](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/boztech/32/11018_2.png) [@Boztech](https://klipper.discourse.group/u/Boztech)\
**Post date:** [March 15, 2024, 3:00pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/7 "2024-03-15T15:00:59Z")

</div>

Ok.I would like to move the NeoPixels to the PI. But don’t know how I would control them like I have.

---

<div class="post-metadata">

**Author:** ![gaolst](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/gaolst/32/10026_2.png) [@gaolst](https://klipper.discourse.group/u/gaolst)\
**Post date:** [March 15, 2024, 4:52pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/8 "2024-03-15T16:52:56Z")

</div>

Didn’t understand your statement, if you move them to PI pins you can control them same way as previously.

---

<div class="post-metadata">

**Author:** ![Boztech](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/boztech/32/11018_2.png) [@Boztech](https://klipper.discourse.group/u/Boztech)\
**Post date:** [March 26, 2024, 12:06pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/9 "2024-03-26T12:06:22Z")

</div>

So how do I use my custom Gcode? How do I set the control pin for the Pi?

---

<div class="post-metadata">

**Author:** ![gaolst](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/gaolst/32/10026_2.png) [@gaolst](https://klipper.discourse.group/u/gaolst)\
**Post date:** [March 26, 2024, 3:44pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/10 "2024-03-26T15:44:25Z")

</div>

Same way as you are referencing pins in your config for fan

```auto
[fan_generic Nevermore_Fan]
pin = host: gpio3

```

I don’t know if your RPi will be able to handle the load - but you can try.

When i was writing about additional HW MCU

> [@gaolst](#):
>
> As concrete solution - most probably you need to introduce additional MCU for neopixel (additional hardware MCU) which will be responsible just for neopixel.

I was point to add additional controller like some Arduino, then flash there Klipper firmware and hook it as additional MCU to klipper.

---

<div class="post-metadata">

**Author:** ![Boztech](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/boztech/32/11018_2.png) [@Boztech](https://klipper.discourse.group/u/Boztech)\
**Post date:** [April 27, 2024, 9:01am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/12 "2024-04-27T09:01:40Z")

</div>

Ok. Finally got playing around with it.  
[fan\_generic Nevermore\_Fan]  
pin: host:gpio76 # uses pin 13 on gpiochip0  
##pin: host: pwmchip0/pwm0  
cycle\_time: 0.00004 #0.01  
hardware\_pwm: False  
max\_power: 1.0  
kick\_start\_time: 0.5  
off\_below: 0.10

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [April 27, 2024, 10:08am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/13 "2024-04-27T10:08:43Z")

</div>

Please, when posting code, use the `Preformatted Text` feature of the forum editor.  
 ![Format](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/6/643ab9def96b03089cfb0c194628129fcc96b3f8.png)

Without it, spaces and special characters get lost and the code is of no use.

---

<div class="post-metadata">

**Author:** ![gaolst](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/gaolst/32/10026_2.png) [@gaolst](https://klipper.discourse.group/u/gaolst)\
**Post date:** [April 27, 2024, 11:21am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/14 "2024-04-27T11:21:42Z")

</div>

So as i undestand your `Nevermore_Fan` was pushing too much/low air and your heater couldn’t stabilize - so you tweaked FAN parameters ?

---

<div class="post-metadata">

**Author:** ![Boztech](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/boztech/32/11018_2.png) [@Boztech](https://klipper.discourse.group/u/Boztech)\
**Post date:** [April 30, 2024, 9:59am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/15 "2024-04-30T09:59:33Z")

</div>

No. That was a separate thing. Discovered that one of my thermistor wires came unplugged from the printer board. The nevermore was a test of how I can use the PI for controlling the neopixels.

---

<div class="post-metadata">

**Author:** ![gaolst](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/gaolst/32/10026_2.png) [@gaolst](https://klipper.discourse.group/u/gaolst)\
**Post date:** [April 30, 2024, 11:22am UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/16 "2024-04-30T11:22:55Z")

</div>

Oh, now i understand, so did you succeed to use PI for Neopixels ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [May 30, 2024, 9:23pm UTC](https://klipper.discourse.group/t/printer-shuts-down-mid-print/14582/17 "2024-05-30T21:23:05Z")

</div>

Closed on May 30, 2024, 9:23pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
