MCU disconnects mid print

So basically like it will just randomly disconnect from my klipper mid-print, I also noticed a while ago that it would also disconnect if I just left everything idle for a while, however I did do a lot of changes since then.

Here is what I’ve done so far:

Proper PSU *I was previously running a phone charger on pi but I fixed that, still idles out at like 90’ish %*

Different Cables (Specifically for data connection from ender 3 to rpi3)

Different USB ports on pi

Complete reinstallation of Both OS and Printer firmware (But I did keep my same configs)

Technical Specifications

Printer: Ender 3 with 4.2.2 mainboard

Host: Rasperry pi 3 Model b Revision 1.2

UI: KlipperScreen + Fluidd

Printer.cfg

# This file contains pin mappings for the stock 2020 Creality Ender 3

# V2. To use this config, during “make menuconfig” select the

# STM32F103 with a “28KiB bootloader” and serial (on USART1 PA10/PA9)

# communication.

# If you prefer a direct serial connection, in “make menuconfig”

# select “Enable extra low-level configuration options” and select

# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC

# cable used for the LCD module as follows:

# 3: Tx, 4: Rx, 9: GND, 10: VCC

# Flash this firmware by copying “out/klipper.bin” to a SD card and

# turning on the printer with the card inserted. The firmware

# filename must end in “.bin” and must not match the last filename

# that was flashed.

# See docs/Config_Reference.md for a description of parameters.

[include fluidd.cfg]

[include macros.cfg]

#[include Adaptive_Meshing.cfg]

#CR-Touch Config

[stepper_x]

step_pin: PC2

dir_pin: PB9

enable_pin: !PC3

microsteps: 16

rotation_distance: 40

endstop_pin: ^PA5

position_endstop: 0

position_max: 235

homing_speed: 50

second_homing_speed: 5

[temperature_sensor MCU]

sensor_type: temperature_mcu

min_temp: 0

max_temp: 100

[temperature_sensor Pi]

sensor_type: temperature_host

min_temp: 0

max_temp: 80

[stepper_y]

step_pin: PB8

dir_pin: PB7

enable_pin: !PC3

microsteps: 16

rotation_distance: 40

endstop_pin: ^PA6

position_endstop: 0

position_max: 235

homing_speed: 40

second_homing_speed: 5

[stepper_z]

step_pin: PB6

dir_pin: !PB5

enable_pin: !PC3

microsteps: 16

rotation_distance: 8

endstop_pin: probe:z_virtual_endstop

#position_endstop: 0.29

position_min: -3

position_max: 250

homing_speed: 50

[bltouch]

sensor_pin: ^PB1

control_pin: PB0

x_offset: -43

y_offset: -10

samples: 2

speed: 2

#z_offset: 0.0

[safe_z_home]

home_xy_position: 117.5,117.5

speed: 50

z_hop: 10

z_hop_speed: 5

[bed_mesh]

speed: 120

horizontal_move_z: 5

mesh_min: 15, 15

mesh_max: 188, 191 #this may need to be calibrated for your individual printer

probe_count: 5,5 #this is the number of probing points on X then Y axis

algorithm: bicubic

mesh_pps: 5,5

fade_start: 1

fade_end: 10

fade_target: 0

[extruder]

max_extrude_only_distance: 101.9

max_extrude_only_velocity: 120

step_pin: PB4

dir_pin: PB3

enable_pin: !PC3

microsteps: 16

rotation_distance: 34.406

nozzle_diameter: 1

filament_diameter: 1.750

heater_pin: PA1

sensor_type: EPCOS 100K B57560G104F

sensor_pin: PC5

control: pid

# tuned for stock hardware with 200 degree Celsius target

pid_Kp: 21.527

pid_Ki: 1.063

pid_Kd: 108.982

min_temp: 0

max_temp: 250

[heater_bed]

heater_pin: PA2

sensor_type: EPCOS 100K B57560G104F

sensor_pin: PC4

control: pid

# tuned for stock hardware with 50 degree Celsius target

pid_Kp: 54.027

pid_Ki: 0.770

pid_Kd: 948.182

min_temp: 0

max_temp: 130

[fan]

pin: PA0

[mcu]

serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

restart_method: command

[printer]

kinematics: cartesian

max_velocity: 300

max_accel: 3000

max_z_velocity: 5

max_z_accel: 100

[display]

lcd_type: st7920

cs_pin: EXP1_7

sclk_pin: EXP1_6

sid_pin: EXP1_8

encoder_pins: ^EXP1_5, ^EXP1_3

click_pin: ^!EXP1_2

[output_pin beeper]

pin: EXP1_1

[board_pins]

aliases:

EXP1_1=PC6,EXP1_3=PB10,EXP1_5=PB14,EXP1_7=PB12,EXP1_9=,

EXP1_2=PB2,EXP1_4=PB11,EXP1_6=PB13,EXP1_8=PB15,EXP1_10=<5V>,

PROBE_IN=PB1,PROBE_OUT=PB0,FIL_RUNOUT=PA4

[display_status]

[exclude_object]

[bed_screws]

screw1: 27,209

screw2: 197,209

screw3: 197,38

screw4: 27,38

#Non-Touch Screen Extensions

# Rename Octoprint to Klipper

[menu __main __octoprint]

type: list

name: Klipper

# Use Klipper commands

[menu __main __octoprint __pause]

type: command

enable: {printer.idle_timeout.state == “Printing”}

name: Pause printing

gcode:

PAUSE

[menu __main __octoprint __resume]

type: command

enable: {not printer.idle_timeout.state == “Printing”}

name: Resume printing

gcode:

RESUME

[menu __main __octoprint __abort]

type: command

enable: {printer.idle_timeout.state == “Printing”}

name: Abort printing

gcode:

CANCEL_PRINT

[include moonraker_obico_macros.cfg]

#*# <---------------------- SAVE_CONFIG ---------------------->

#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.

#*#

#*# [extruder]

#*#

#*# [heater_bed]

#*#

#*# [stepper_z]

#*#

#*# [bed_mesh default]

#*# version = 1

#*# points =

#*# -0.082500, -0.173750, -0.262500, -0.273750, -0.268750

#*# 0.037500, -0.053750, -0.133750, -0.141250, -0.153750

#*# 0.097500, 0.015000, -0.043750, -0.035000, -0.011250

#*# 0.153750, 0.086250, 0.048750, 0.082500, 0.112500

#*# -0.770000, -0.545000, -0.316250, -0.042500, 0.265000

#*# x_count = 5

#*# y_count = 5

#*# mesh_x_pps = 5

#*# mesh_y_pps = 5

#*# algo = bicubic

#*# tension = 0.2

#*# min_x = 15.0

#*# max_x = 188.0

#*# min_y = 15.0

#*# max_y = 191.0

#*#

#*# [bltouch]

#*# z_offset = 1.650

Macros.cfg (Additional not Fluidd included routines)

[gcode_macro Part_Removal]

gcode:

G1 X110 Y200 Z200

[gcode_macro START_PRINT]

description: Sys-USE - Set neccesary preprint values

gcode:

BED_MESH_PROFILE LOAD=default

[gcode_macro END_PRINT]

description: “Print END Routine“

gcode:

# Turn off heaters

M104 S0 ; Turn off extruder

M140 S0 ; Turn off bed

# Retract filament slightly

G91 ; Relative positioning

G1 E-2 F300 ; Retract 2mm filament

G90 ; Back to absolute positioning

# Turn off cooling fan

M107 ; Fan off

# Console notification

RESPOND PREFIX=“end_print” MSG=“Print finished. Cooling down hotend and bed…”

RESPOND PREFIX=“end_print” MSG=“Temperatures safe. Running PART_REMOVAL macro.”

PART_REMOVAL

[gcode_macro Preflight]

description: “A once in a while system upkeep routine”

gcode:

PID_CALIBRATE HEATER=extruder TARGET=200

PID_CALIBRATE HEATER=heater_bed TARGET=60

[gcode_macro Lube_Priming]

description: Moves X-Axis up and down five times to adaquetly spread out Z-rod Lubricant

gcode:

G1 X110 Z200

G28

G1 X110 Z200

G28

G1 X110 Z200

G28

G1 X110 Z200

G28

G1 X110 Z200

G28

(Oh also I did add a glass bed and CR touch) the CR touch does behave just fine so I don’t think it’s the culprit, but then again I am somewhat new so I may be wrong on that end.

Sorry, but 90% of your post is not relevant and does not help to diagnose anything.

Start over, follow the template and How-To Ask for Help

1 Like