r/klippers

Speed control for a stepper?

Hey!

I want to use klipper (or klipper_for_cnc) to control a machine that is part 'printer-like' but also uses multiple conveyors to move objects around.

I found the Octopus board that can control eight steppers which would be enough for me, but I can't figure out how to smoothly move the conveyor. Sending tiny movements in a macro until I stop resulted in a rather choppy movement.

I also tried to configure as an extruder, but there I did not find out how to stop a motion.

My main requirement is a smooth movement and a fast reaction to a stop-macro. The conveyor is only moving with 20mm/s and should stop within 2mm after a distance sensor was triggered.

reddit.com
u/Most-Vehicle-7825 — 15 hours ago
▲ 0 r/klippers+2 crossposts

Infill not working.

I am printing gyoid infill in a xyz calibration cube, the cube comes out pretty good, perfect first laster adhesio. but the infill is always just failed.... i am using klipper and orca slicer. Tried printing infill at 1 mms same result. Idk what is wrong.

u/Shinjiikary12 — 23 hours ago

Klipper issue.

How hard can it be to solve "Must Home Before Probe" problem.

I realy don't know what to do anymore. There is on google no solution what i can use. Anyone a option to solve this???

u/Educational-Bat-2846 — 2 days ago

Issue with toolhead fans not turning on

Hey everyone,

I am working on my mainline SV08 with an XOL toolhead and I was finally able to get it to work without throwing a ton of errors. This being said, I cannot get my part cooling fans or my heat-break fan to work. Double checked the wiring on both and everything is going to the correct headers (to my knowledge) and I am just not sure what is going on. When I try and turn the part fans on in Fluidd, they do not turn on, and when I raise my hotend to above 50C (usually 55C to test) nothing happens. It says 100% fan speed for the heat-break but the pwm says 0 RPM.

I am unfortunately a novice with this stuff, so any help would be greatly appreciated!

I got most of this .cfg from a similar setup off of github and I adjusted everything that was different with mine.

Hardware:

EBB36 Gen2

Dragon Ace w/ PT1000 thermistor

dual 4010 blowers (2-pin)

3010 heat-break fan (3-pin)

https://preview.redd.it/dzefbb6vi2bh1.png?width=1000&format=png&auto=webp&s=9b5190dc65e7302e0eb16638e370d3dacc76f766

[temperature_sensor EBB36_TMC2209]
sensor_type: Generic 3950
sensor_pin: EBB:PA0
pullup_resistor: 2200

[temperature_sensor EBB36]
sensor_type: temperature_mcu
sensor_mcu: EBB

[lis2dw EBB36]
cs_pin: EBB:PB1
spi_bus:spi2_PB2_PB11_PB10
axes_map: x,y,z

[extruder]
step_pin: EBB:PB14
dir_pin: EBB:PA8
enable_pin: !EBB:PB6
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: EBB:PB4
sensor_type: PT1000
pullup_resistor: 2200
sensor_pin: EBB:PA3
control: pid
pid_Kp=28.695
pid_Ki=1.396
pid_Kd=147.421

min_temp: 10
min_extrude_temp: 10
max_temp: 300
max_extrude_only_distance: 1400.0
max_extrude_only_velocity: 75.0
max_extrude_only_accel: 1500
max_extrude_cross_section: 9999
microsteps: 16
full_steps_per_rotation: 200
rotation_distance: 35.8
gear_ratio: 6:1

[tmc2209 extruder]
uart_pin: EBB:PB3
interpolate: false
run_current: 0.6
stealthchop_threshold: 0
sense_resistor: 0.110

[multi_pin ptfans]
pins: EBB:PD3, EBB:PA5

[fan]
pin: multi_pin:ptfans
max_power: 1.0
#fan_speed: 1.0
cycle_time: 0.010
shutdown_speed: 1
kick_start_time: 0.5
off_below: 0.10

[heater_fan hotend_fan]
pin: EBB:PD2
heater: extruder
fan_speed: 1.0
heater_temp: 50.0
tachometer_pin: ^EBB:PA4
tachometer_ppr: 2
tachometer_poll_interval: 0.0009
u/SirLower8781 — 2 days ago

Bed Mesh Issues

I've recently done some serious mods to my old ender 3 max neo, the latest was linear rails and now when I do the bed mesh, no matter what I do, the right-side edge of the build plate always shows severely out of place. the rest of the bed could be great and as soon as it gets the last points on the right it's like a vertical skyrocket. I've been chasing it for hours and nothing seems to make a difference. Any advice on what the issue could be would be greatly appreciated.

u/Charman90 — 2 days ago

Help getting Klipper to communicate.

​

I accidentally killed my SD card which had my Klipper installed on it. I'm running a BTT Manta m5p with a CB1. I have been able to flash both the Manta and my secondary creality 2.2 board with the CB1 and they both communicated. If I use the premade image from BTT, or install kiauh and then put on the pieces of Klipper it's the same. I can see the boards when I do an LS /dev/serial/by-id. But Klipper will not talk with the boards, either one or both. I'm just baffled why? Thanks for any help you can give. Everything was communicating before I destroyed the SD card.

Solved, I had another MCU line in the printer.cfg. once I removed that both MCU's connected.

Thanks for the help everyone.

reddit.com
u/markh21518 — 4 days ago

First timer setting up

Specs- ender 3 pro, sprite pro extruder, dual z offset motor kit, raspberry pi 4b (powered by buck board @5.2v), 4.2.7 board

Last night I got my printer set up and communicating but am struggling with getting it working well

I verified my new dual z was level, set z offset, bed mesh (got it as flat as I could), attempted my extruder printer configs per people with the same hardware config/adjusted orca slicer accordingly

I did a first layer print as my first attempt, but the lines are not looking good. I was hoping someone could guide me in the right direction.
I’m currently following the “Ellis print extruder calibration” and seeing where that leads me. But after a plate dive (that was my last attempt via marlin before switching/ I changed nozzles too) I’m a little worried about what’s gonna happen next.

Photos attached are how the line started on the print and I’m not sure if this is a flow or z axis issue? Please teach me things

u/grow-n-stuff — 5 days ago

Ender V3 SE Speed

Hi everyone, I’m new to Klipper forgive me if I’m being stupid, I’ve been running it for about a month and a half, and last week I had to reinstall due to a problem with my raspberry pi. Since I’ve reinstalled my printer is way slower than it was before, I’ve put the exact same printer.cfg back and haven’t changed any of my slicer settings, it used to be a few minutes faster than the estimated slicer time but now it’s lagging behind by almost 50 minutes on what should be a 130 minute print, with no increase in quality. Where should I be looking first? I’m not interested in the fastest speeds possible but this is slower than stock now.

u/Mia_Cauliflower — 5 days ago

Mellow alps tips

I haven’t seen many reviews or discussions about the mellow alps besides AMOVFC on YouTube but here’s my tips for the alps. I’m running it as an end stop with a cartographer probe I’m just using the BL touch pins on a shtv3 and I swapped the pins on the config from what mellow had posted and it’s been working great. But some tricks are make sure the printer is off when adjusting trigger values or it will stay in a triggered state and if you manage to do this you need to power on the printer and unplug the alps pcb and plug it back in repeatedly so the alps pcb can reset. It’s been a great project trying to having something that can probe right from the nozzle but also have the speed of the cartographer and other features it comes with so hope this helps. Btw huge shout out to AMOVFC for posting his modded rapid burner that is compatible with the heatcore4 with alps it’s the only tool head I can find compatible with alps.

u/External_Two7382 — 8 days ago
▲ 3 r/klippers+1 crossposts

My cancel and pause button are not working, they just keep loading but nothing happens....

Pause-resume macro

#####################################################################
# Pause / Resume / Cancel / Filament Change
# Anycubic Kobra 2 Neo
# Klipper + Mainsail + Orca + KAMP
#####################################################################

[pause_resume]

#####################################################################
# PAUSE
#####################################################################

[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
description: Pause the current print
gcode:
    {% if printer.pause_resume.is_paused %}
        RESPOND MSG="Printer already paused."
    {% else %}
        M400
        SAVE_GCODE_STATE NAME=PAUSE_STATE

        BASE_PAUSE

        {% if printer.extruder.can_extrude %}
            M83
            G1 E-2 F1800
        {% endif %}

        {% if "xyz" in printer.toolhead.homed_axes %}

            {% set z_safe = [printer.toolhead.position.z + 10,
                             printer.toolhead.axis_maximum.z]|min %}

            G90
            G1 Z{z_safe} F600
            G1 X20 Y{printer.toolhead.axis_maximum.y} F6000

        {% endif %}
    {% endif %}

#####################################################################
# RESUME
#####################################################################

[gcode_macro RESUME]
rename_existing: BASE_RESUME
description: Resume the paused print
gcode:
    {% if printer.pause_resume.is_paused %}

        {% if printer.extruder.can_extrude %}
            M83
            G1 E2 F1800
        {% endif %}

        RESTORE_GCODE_STATE NAME=PAUSE_STATE MOVE=1

        BASE_RESUME

    {% endif %}

#####################################################################
# PRINT END
#####################################################################

[gcode_macro PRINT_END]
description: End of print
gcode:
    M400

    {% if printer.extruder.can_extrude %}
        M83
        G1 E-2 F1800
    {% endif %}

    {% if "xyz" in printer.toolhead.homed_axes %}

        {% set z_safe = [printer.toolhead.position.z + 60,
                         printer.toolhead.axis_maximum.z]|min %}

        G90
        G1 Z{z_safe} F600
        G1 X20 Y{printer.toolhead.axis_maximum.y} F6000

    {% endif %}

    M106 S0
    TURN_OFF_HEATERS

    BED_MESH_CLEAR

    M84 X Y E

#####################################################################
# CANCEL PRINT
#####################################################################

[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
description: Cancel the current print
gcode:
    M400

    PRINT_END

    CLEAR_PAUSE
    SDCARD_RESET_FILE

    BASE_CANCEL_PRINT

#####################################################################
# FILAMENT CHANGE
#####################################################################

[gcode_macro M600]
description: Filament Change
gcode:
    PAUSE

    {% if printer.extruder.can_extrude %}
        M83
        G1 E-50 F1200
    {% endif %}

    RESPOND MSG="Insert new filament then press RESUME."

#####################################################################
# Marlin Compatibility
#####################################################################

[gcode_macro M601]
gcode:
    PAUSE

[gcode_macro M602]
gcode:
    RESUME

Printer.cfg

#Configuration file for the Anycubic Kobra 2 neo. (Trigorilla 4.0.1 Board)

#please read every comment before changing and using this config to ensure you dont break anything.


#DISCLAIMER
#This Printer config was written and optimized by and with the help of the Klipper forum group.
#THIS IS NO LONGER AS EXPERIMENTAL but still nobody will give you any warranty in case your printer blows up. (which it probably wont)
#version 2.0.1
#tested on 3 printers - fixed errors - generalized file paths - works now.
#please excuse any spelling or grammatical errors in my comments as english is not my native.
#comments by xenyonmedia and mysterious cable (reddit only)


#Included files
[include mainsail.cfg]
[include macro.cfg]
[include pause_resume.cfg]
[include KAMP_Settings.cfg]
[exclude_object]
#[include adxl.cfg] #uncomment this if you want to connect an adxl sensor and have this config file


#mcu config (i would advise against changing this besides from the serial)
[mcu]
serial:/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 #set this to your serial connection after running ls /dev/serial/by-id/*
baud: 250000
restart_method: command


#printer config
[printer]
kinematics: cartesian
max_velocity: 250 #you can increase this, but stealthchop will vibrate the belts violently if moving faster!!!
max_accel: 10000 #yes it does 10k atlease at 250mm/s
max_z_velocity: 8 #dont change this
max_z_accel: 800


#this is my input shaper result, change or disable this only if you know what it does and at best have an adxl sensor
[input_shaper]
shaper_freq_x: 54.8
shaper_type_x: ei
shaper_freq_y: 34.0
shaper_type_y: mzv


#virtual SD
[virtual_sdcard]
path: ~/printer_data/gcodes
on_error_gcode: CANCEL_PRINT


#x stepper
[stepper_x]
step_pin: PA12
dir_pin: PA11
enable_pin: !PA15
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PB11
position_endstop: -10
position_min: -14
position_max: 220
homing_speed: 80 #this sets the homing speed.


#y stepper
[stepper_y]
step_pin: PA9
dir_pin: !PA8
enable_pin: !PA15
microsteps: 16
rotation_distance: 40
endstop_pin: ^!PC13
position_endstop: -2
position_min: -3
position_max: 230
homing_speed: 80 #this sets the homing speed.

#z stepper
[stepper_z]
step_pin: PB0
dir_pin: !PB1
enable_pin: !PA15
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_min: -2
position_max: 250
homing_speed: 11
second_homing_speed: 2


#extruder config
[extruder]
max_extrude_cross_section: 5.0 #change if you change nozzle diameter to something large
step_pin: PB15
dir_pin: PB14
enable_pin: !PA15
microsteps: 16
max_extrude_only_distance: 200
max_extrude_only_velocity: 80
max_extrude_only_accel: 5000
rotation_distance: 7.084
nozzle_diameter: 0.400
filament_diameter: 1.750
pressure_advance: 0.06 #if you see bulges or underextrusion on corners, tune this with the documentation (https://www.klipper3d.org/Pressure_Advance.html)
heater_pin: PB8
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC3
min_extrude_temp: 190
min_temp: 0
max_temp: 250
#control: pid
#pid_ki: 0.88
#pid_kd: 59.12
#pressure advance
#pid_kp: 14.42 #tune this with this guide (https://www.obico.io/blog/klipper-pid-tuning/)


#hotbed
[heater_bed]
heater_pin: PB9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC1
min_temp: 0
max_temp: 120
#control: pid
#pid_kp: 97.1 #tune this with this guide (https://www.obico.io/blog/klipper-pid-tuning/)
#pid_ki: 1.41
#pid_kd: 1675.16


#inductive probe settings
[probe]
pin: PA1
x_offset : 24.0
y_offset : 13.35
#z_offset: 0
samples: 3
samples_result: average
samples_tolerance_retries: 1
sample_retract_dist: 2
speed: 15
lift_speed: 8
samples_tolerance : 0.1
samples_tolerance_retries : 3


[screws_tilt_adjust]
screw1: 4.50, 30.50
screw1_name: front left screw
screw2: 165.70, 30.50
screw2_name: front right screw
screw3: 165.70, 171.90
screw3_name: rear right screw
screw4: 4.50, 171.90
screw4_name: rear left screw
horizontal_move_z: 10
speed: 100
screw_thread: CW-M4



#auto bed level settings
[bed_mesh]
speed: 150
horizontal_move_z: 4
mesh_min: 14, 11
mesh_max: 210, 215
probe_count: 7,7 #change this if you want more or less probe points
mesh_pps: 4,4 
algorithm: bicubic
bicubic_tension: 0.2


#zhome probing. Probably dont change this
[safe_z_home]
home_xy_position: 110, 110
speed: 100
z_hop: 10
z_hop_speed: 15

[controller_fan controller_fan]
pin: PB12

[heater_fan extruder_fan]
pin: PB13

[fan]
pin: PB5
cycle_time: 0.00005 #20kHz

#This pin enables the bed, hotend, extruder fan, part fan.
[output_pin enable_pin]
pin: PB6
value: 1

Macro.cfg

[gcode_macro PULL_FILAMENT_OUT]
gcode:
  G91
  G1 E20 F500
  G1 E-100 F500
  G90
  M84 #motors off

[gcode_macro FILAMENT_INSERT]
gcode:
  G91
  G1 E40 F500 #extrude 40mm of filament
  G90
  M84 #motors off

[gcode_macro DRY_FILAMENT]
gcode:
  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=60
  G4 P10800000 #3 hours (3*60*60*1000)
  SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=0

[gcode_macro PRINT_END]
gcode:
    M400
    M106 S0

    {% if printer.extruder.temperature >= printer.configfile.settings.extruder.min_extrude_temp %}
        G91
        G1 E-2 F1800
        G1 Z5 F600
        G90
    {% endif %}

    {% if "xyz" in printer.toolhead.homed_axes %}
        G90
        G1 X20 F6000
        G91
        G1 Z55 F600
        G90
        G1 Y200 F3000
    {% endif %}

    M104 S0
    M140 S0
    M107

    M84 X Y E

[gcode_macro PRINT_START]
description: Full print start sequence with KAMP
gcode:
    {% set BED = params.BED_TEMP|default(60)|int %}
    {% set EXTRUDER = params.EXTRUDER_TEMP|default(200)|int %}

    ; --- Heat bed first ---
    M140 S{BED}                  ; Start heating bed
    M190 S{BED}                  ; Wait for bed temp

    ; --- Home and mesh with KAMP ---
    G28                          ; Home all axes
    BED_MESH_CLEAR
    BED_MESH_CALIBRATE  ; KAMP adaptive mesh

    ; --- Smart Park before nozzle heat ---
    SMART_PARK                   ; Move nozzle to safe location

    ; --- Now heat nozzle ---
    M104 S{EXTRUDER}             ; Start heating nozzle
    M109 S{EXTRUDER}             ; Wait for nozzle temp

    ; --- Prime line / purge with KAMP ---
    G92 E0
    SET_PRESSURE_ADVANCE ADVANCE=0
    LINE_PURGE                   ; KAMP adaptive purge macro
    SET_PRESSURE_ADVANCE ADVANCE=0.225
u/Resident_Cranberry_6 — 8 days ago
▲ 2 r/klippers+1 crossposts

SKR 1.4 Turbo's USB port stopped working

I recently started using klipper to print faster and more efficiently, and after a while it started disconnecting randomly, then it was unable to connect with this error:

mcu 'mcu': Unable to connect

Once the underlying issue is corrected, use the

"FIRMWARE_RESTART" command to reset the firmware, reload the

config, and restart the host software.

Error configuring printer

Before anyone mentions changing the "mcu" it is like this:

[mcu]

serial: /dev/serial/by-id/usb-Klipper_lpc1769_11C0000C0019D895EAF47262C12000F5-if00

lsusb does not show any 3d printer on the USB ports neither does ls /dev/serial/by-id/*

Tried testing it with marlin and it also did not fix the problem.

I think the USB port is dead, but I posted this in case it's a rare issue that looks like a hardware problem.

Hardware:

SKR 1.4 Turbo on Ender 3 Pro

RPI4 with Raspbian Lite (Debian)

USB communication

reddit.com
u/waterdragon_23176 — 8 days ago

Trying to tune my prints i have pressure advance and input shaper does this look like the speeds are to high and under extruding?

u/OkPeach762 — 9 days ago

Post your klipper stats

I wanna see what everyone has on their klipper stats

My printer is a creality k1 max with 543hrs and 91hrs done on klipper

u/jessieblack98 — 9 days ago
▲ 21 r/klippers+1 crossposts

Does the new Flashforge Creator 5 PRO run a locked-down Klipper? Looking for early adopters and technical info

Hey everyone,

​We finally have confirmation. For those wondering if Flashforge was hiding Klipper on the new Creator 5 PRO and locking it down to force us into their ecosystem—the answer is YES.

​The amazing modding community (the same folks behind the ZMOD for the Adventurer 5M) has already managed to gain root access to the machine, and they have confirmed that it is indeed running Klipper under the hood. You can see the confirmation directly in the ZMOD GitHub discussions here: https://github.com/ghzserg/zmod/discussions/554#discussioncomment-17375046

​The Refusal (My interaction with Support):

Since I print functional parts with technical filaments, having full Klipper access is a must for me. I reached out to Flashforge Support (support@flashforge.com) to ask when they plan to release the source code.

​Here is how the conversation went:

​Me: "...Knowing the background of your recent open-source compliance with the Adventurer 5M series, I would like to know when the community can expect the release of the source code for the Creator 5 PRO's firmware."

​Flashforge Support (Henry Wu): "Sorry, but we currently do not have any publicly available information regarding this. If such things come about in the future, we will share them on the official WIKI. Please keep following our official updates."

​I replied, politely reminding them that this isn't a feature request, but a legal obligation:

​Me: "...I must point out that if the Creator 5 PRO operates on a modified version of Klipper, this is not merely a matter of internal company roadmaps or future feature releases, but a strict legal obligation under the GNU General Public License v3 (GPLv3). Under this license, any commercial distribution of Klipper-based firmware must be accompanied by the public release of its modified source code... Given the nature of this request, could you please escalate this ticket to the software development or legal compliance team?"

​Their final response to a direct, legally-backed request for GPL compliance?

​Flashforge Support (Henry Wu): "Thank you for your reply, Have a nice day!"

​Why this matters & Call to Action:

They are blatantly ignoring open-source licenses to keep their "Pro" machines locked down. Last time, it took massive community pressure for Flashforge to finally release the Klipper source code for the AD5M. We need to do it again for the Creator 5 PRO so the modding community can do their magic.

​Please take 2 minutes to:

​Email their support support@flashforge.com. ​Politely but firmly demand the release of the Creator 5 PRO Klipper source code, reminding them of their GPLv3 obligations.

​Let’s get the source code released!

Edited after confirmation of Klipper software inside Creator 5.

u/RodrigoTomeES — 12 days ago

Is my board bad or something wrong with klipper? stepper rough vibration

my printer (E3 V2 Neo) was working wonderfully with klipper, suddenly i start to get horrible vibration on Y axis, like dragging a chair on wooden floor.

i though it was maybe some bearing, so i changed everithing: rollers, stepper, pulley, belts, etc (as it has 2 years with no problems, so maybe a few new parts are in order). the printer is properly fixed and sturdy, no rattling on the frame whatsoever.

the problem persisted. redid input shaping, same thing. then i realized with lower speeds (200mm/s), the problem goes out like 95%, i still feel a underling vibration on the axys, like fork on a plate. withour the stepper, the bed move butter smooth on the rails. no mechanical problem there.

then, removed the stepper and even without belt, the problem persist. tested another stepper, same thing.

the thing is, i did update klipper and all components a few days prior, and can't say for sure the problem started after the update, but seems so.

i can only test a new board now, but not sure if problem is HW or SW

video example: https://imgur.com/a/uHLghK5

bed at 200mm/2 vs 400mm/s: https://imgur.com/a/6Njkavu

was working super smooth at 400mm/s 3600acc. until the problem showed up.

u/Malow — 9 days ago

Media error detected, the storage device may be damaged or counterfeit. Please try different device.

so I got a pi 3B second hand, it came with a micro sd card, I cleared the card and put in on usb adapter into my pc. The Pi imager keeps giving the error in the title, the sd card doesn't show up anymore in windows 11, but still does in the imager. I don't want to test this with a differen sd card for fear of the same result. Is there a different fix? The sd card got pretty hot and for some reason if the speed very low when writing.

reddit.com
u/Previous-Layer2940 — 10 days ago

Ringing issues while using input shaper

I am running a modded Ender 6. For the input shaper calibration, I used a nozzle mount with an ADXL345. After I applied the recorded shapers, I still got ringing when running the ringing tower with the shaper on. I'm not sure how good input shaping is and how much it should be compensating. Are my speed and acceleration too high? Is this something unusual I should look closer at on the graph? The Ender 6 is running on V-wheels, so could they be the issue? Are my shaping graphs good? I'm new to input shaping so could really use some help.

u/math27c9 — 12 days ago