Printer loses power mid move

Basic Information:

Printer Model: Tronxy X5SA
MCU / Printerboard: BTT Manta M8P
Host / SBC CB1

klippy.log (862.3 KB)
klippy.log

I just upgraded my printer from a Bigtreetech Tango board to this Manta M8P board. I brought my config file over and edited the required pins. Now, when I hit home, The printer will begin to home. But somewhere in the process, it will stop. Sometimes before getting to the x endstop sometime on the way to the Z endstop. No pattern seems to exist. When it stops, all lights on the control board, save for the 5v power led, go off. turning the power off, waiting for a few seconds and turning it back on will fix this. It happens every time I try to home the printer.

What could be going on here?

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

…

Measure your input voltage at your M8P from your PS while moving. Does it drop?

Nope.

stays at 24V right till fail. I thought of that, but I’m using the same power supply from before.

Your .cfg file makes no sense for your listed printer.

How many motors do you have plugged in at the mainboard?

Your have X, X1, Y, Y1, Z, and E defined. From that I assume that the 2 Z motors are connected in parallel to a single plug.

Please verify the number and locations of motors on your machine.

One thing, that i think may be contributing to this is the fact that when I make a firmware.bin file, it does boot from it or change it ot firmware.cur.

7 motors plugged in. I have a motor on each corner. All wheel drive setup. Two Z motors are plugged into 3a and 3B on the board. They are parallel

The rest of the motors have their own driver. This config and setup worked with my previous board. The motors work. It will home normally sometimes. It even went to home Z once but crashed before it got there.

Your MCU is showing OLD klipper:

Loaded MCU 'mcu' 107 commands (v0.11.0-267-g01ed8096 /

Your CB1 is also out of date:

Git version: 'v0.12.0-125-gbfb71bc2'
Branch: master

I’d recommend you update your host and make new firmware. Good place to start but unlikely to solve your issues.

My guess that is you have 1 or 2 motors with the direction reversed. The need for (!) on the direction pin can be reversed by motor wiring. I’ve no experience with “4 wheel drive”.

I will update and try again. One motor reversed makes a lot of noise as they fight each other. When it does move, it moves silently and smoothly. I had to reverse one motor because of this when I switched boards.

Nah. No joy. I tried a different SD card, used Kiuah to remove Klipper and reinstall. I updated the system through Kiuah too. Everything’s up to date now. Same results.

I think your host is crashing. There was 1 event in your log where logging just stopped, no error, no traceback, nothing. Any error with the MCU or USB connection should get logged.

X or Y not homed, forcing full G28
Homing X
Homing Y
Homing Z
probe: TRIGGERED
toolhead: max_velocity: 300.000000
max_accel: 1000.000000
minimum_cruise_ratio: 0.500000
square_corner_velocity: 5.000000
SET_KINEMATIC_POSITION pos=0.000,0.000,0.000 set_homed=xyz clear_homed=
Stats 96.4: gcodein=0 mcu: mcu_awake=0.009 mcu_task_avg=0.000009 mcu_task_stddev=0.000086 bytes_write=3365 bytes_read=7273 bytes_retransmit=9 bytes_invalid=0 send_seq=262 receive_seq=262 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0 freq=399994536 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=55.2 print_time=99.022 buffer_time=0.149 print_stall=0 extruder: target=0 temp=22.3 pwm=0.000 sysload=3.35 cputime=7.848 memavail=657824
TMC 'stepper_z' reports GSTAT:      00000001 reset=1(Reset)
TMC 'stepper_z' reports GSTAT:      00000000
Stats 97.4: gcodein=0 mcu: mcu_awake=0.009 mcu_task_avg=0.000009 mcu_task_stddev=0.000086 bytes_write=4070 bytes_read=7864 bytes_retransmit=9 bytes_invalid=0 send_seq=292 receive_seq=292 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=8 upcoming_bytes=0 freq=399994331 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=53.3 print_time=101.250 buffer_time=1.376 print_stall=0 extruder: target=0 temp=22.3 pwm=0.000 sysload=3.35 cputime=7.951 memavail=656408
Stats 98.4: gcodein=0 mcu: mcu_awake=0.000 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=4418 bytes_read=8075 bytes_retransmit=9 bytes_invalid=0 send_seq=301 receive_seq=301 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=23 upcoming_bytes=0 freq=399994410 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=53.8 print_time=101.280 buffer_time=0.405 print_stall=0 extruder: target=0 temp=22.3 pwm=0.000 sysload=3.35 cputime=7.990 memavail=656420
TMC 'stepper_x' reports GSTAT:      00000001 reset=1(Reset)
TMC 'stepper_x1' reports GSTAT:      00000001 reset=1(Reset)
TMC 'stepper_y' reports GSTAT:      00000001 reset=1(Reset)
TMC 'stepper_y1' reports GSTAT:      00000001 reset=1(Reset)
TMC 'stepper_x' reports GSTAT:      00000000
TMC 'stepper_x1' reports GSTAT:      00000000
TMC 'stepper_y' reports GSTAT:      00000000
TMC 'stepper_y1' reports GSTAT:      00000000
Stats 99.4: gcodein=0 mcu: mcu_awake=0.000 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=6866 bytes_read=10298 bytes_retransmit=9 bytes_invalid=0 send_seq=418 receive_seq=418 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=7 upcoming_bytes=0 freq=399994860 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=53.1 print_time=101.280 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.3 pwm=0.000 sysload=3.35 cputime=8.313 memavail=656172
Stats 100.4: gcodein=0 mcu: mcu_awake=0.000 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=7864 bytes_read=10995 bytes_retransmit=9 bytes_invalid=0 send_seq=456 receive_seq=456 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=32 upcoming_bytes=0 freq=399994737 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=54.0 print_time=103.704 buffer_time=0.828 print_stall=0 extruder: target=0 temp=22.3 pwm=0.000 sysload=3.16 cputime=8.414 memavail=691284
Stats 101.4: gcodein=0 mcu: mcu_awake=0.000 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=8853 bytes_read=11473 bytes_retransmit=9 bytes_invalid=0 send_seq=484 receive_seq=484 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=7 upcoming_bytes=0 freq=399995254 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=53.4 print_time=103.734 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.4 pwm=0.000 sysload=3.16 cputime=8.487 memavail=692044
Stats 102.4: gcodein=0 mcu: mcu_awake=0.000 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=10383 bytes_read=12329 bytes_retransmit=9 bytes_invalid=0 send_seq=534 receive_seq=534 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=52 upcoming_bytes=0 freq=399995350 heater_bed: target=0 temp=22.6 pwm=0.000 raspberry_pi_4B: temp=53.9 print_time=105.378 buffer_time=0.501 print_stall=0 extruder: target=0 temp=22.3 pwm=0.000 sysload=3.16 cputime=8.598 memavail=691800
Stats 103.4: gcodein=0 mcu: mcu_awake=0.002 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=11755 bytes_read=12893 bytes_retransmit=9 bytes_invalid=0 send_seq=568 receive_seq=568 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0 freq=399995684 heater_bed: target=0 temp=23.0 pwm=0.000 raspberry_pi_4B: temp=53.1 print_time=105.408 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.1 pwm=0.000 sysload=3.16 cputime=8.668 memavail=691436
Stats 104.4: gcodein=0 mcu: mcu_awake=0.002 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=12647 bytes_read=13521 bytes_retransmit=9 bytes_invalid=0 send_seq=598 receive_seq=598 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0 freq=399995341 heater_bed: target=0 temp=22.8 pwm=0.000 raspberry_pi_4B: temp=51.7 print_time=105.408 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.7 pwm=0.000 sysload=3.16 cputime=8.758 memavail=691456
Stats 105.4: gcodein=0 mcu: mcu_awake=0.002 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=13541 bytes_read=14170 bytes_retransmit=9 bytes_invalid=0 send_seq=630 receive_seq=630 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=7 upcoming_bytes=0 freq=399995278 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=50.8 print_time=105.408 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.4 pwm=0.000 sysload=2.98 cputime=8.878 memavail=692020
Stats 106.4: gcodein=0 mcu: mcu_awake=0.002 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=14445 bytes_read=14788 bytes_retransmit=9 bytes_invalid=0 send_seq=661 receive_seq=661 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0 freq=399995232 heater_bed: target=0 temp=22.7 pwm=0.000 raspberry_pi_4B: temp=49.1 print_time=105.408 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.1 pwm=0.000 sysload=2.98 cputime=8.995 memavail=692052
Stats 107.4: gcodein=0 mcu: mcu_awake=0.002 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=15342 bytes_read=15421 bytes_retransmit=9 bytes_invalid=0 send_seq=692 receive_seq=692 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=0 upcoming_bytes=0 freq=399995186 heater_bed: target=0 temp=23.0 pwm=0.000 raspberry_pi_4B: temp=49.3 print_time=105.408 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.7 pwm=0.000 sysload=2.98 cputime=9.104 memavail=683992
Stats 108.4: gcodein=0 mcu: mcu_awake=0.001 mcu_task_avg=0.000002 mcu_task_stddev=0.000002 bytes_write=16239 bytes_read=16083 bytes_retransmit=9 bytes_invalid=0 send_seq=723 receive_seq=723 retransmit_seq=2 srtt=0.000 rttvar=0.000 rto=0.025 ready_bytes=7 upcoming_bytes=0 freq=399995050 heater_bed: target=0 temp=22.9 pwm=0.000 raspberry_pi_4B: temp=50.8 print_time=105.408 buffer_time=0.000 print_stall=0 extruder: target=0 temp=22.6 pwm=0.000 sysload=2.98 cputime=9.198 memavail=690076
Starting Klippy...

Line 34 - everything is happy
Line 35 - first entry on power up

Upload a new log if you can.

I found the problem. Overnight while I was thinking about it, I went over everything I did that might have caused it. The only thing I changed from the old board to the new one was add an LED to light up when StepperX activates. I have this working on a different printer so I just copied that part of the config and changed the pin as necessary. It worked fine.

The homing process would start. X would home, then the light came on and Y would start to home and about 4-6 seconds later it would shut down. When I unplugged the LED, the problem went away. I have the LED hanging in the air becasue I wasn’t finnished assembling it. Im guessing, as the LED got warmer, it was consuming more and more 5v current till it overwhelmed the system and shut things down.

It was aa bother to diagnose because it didn’t happen right away, but some seconds after the light came on.

Thanks for helping me think through this.

Jonathan

1 Like

How did you wire the LED?

I’m guessing without a current limiting resistor but I would have thought the LED would burn out before causing a printing problem.

Very True. But as I say, I have this exact same LED setup on my other printer wired the same way. Maybe, because I have 3 on my big delta wired in parallel and heat sink paste glued to the Aluminum printer frame, they aren’t giving issues like this one is.

I’m still curious as to how you wired the LED; I’m guessing your “big delta” has a different main controller board/stepper drivers which survives this better.

Regardless, just attaching an LED onto whatever output you’ve put it on is not a good idea.

The Delta has the exact same board and stepper drivers from BigTreeTech. Manta M8P. Yes, I agree with you, LEDs should have resistors. I got these out of a silly dolarama light switch. It had 2AA batteries and two 5cm Bright LED strips. There was no resistor in sight when I opened it up so I figured all good the resistor is built into the chip. I used them on my delta printer and they were fine. For me this confirmed tha these don’t need resistors. Right now, I have that LED with a 21 Ohm reistor. I started with 430 and stepped down to the lowest I could find. It is not as bright as it should be I think. but it is reasonable and the printer stays on with the LED on.

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