Skip to content

Conversation

@benjie
Copy link

@benjie benjie commented Nov 22, 2025

This is my full make menuconfig:

(Top)
                                                         Klipper Firmware Configuration
[*] Enable extra low-level configuration options
    Micro-controller Architecture (STMicroelectronics STM32)  --->
    Processor model (STM32F103)  --->
[ ] Only 10KiB of RAM (for rare stm32f103x6 variant)
[ ] Disable SWD at startup (for GigaDevice stm32f103 clones)
    Bootloader offset (28KiB bootloader)  --->
    Clock Reference (8 MHz crystal)  --->
    Communication interface (Serial (on USART1 PA10/PA9))  --->
(250000) Baud rate for serial port
[*] Optimize stepper code for 'step on both edges'
()  GPIO pins to set at micro-controller startup

Copy link
Collaborator

@JamesH1978 JamesH1978 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, not sure why that config has not got the exact comms settings like most of the 4.2.x configs..

You will need to sign off your PR as per point 3 in https://github.com/Klipper3d/klipper/blob/master/docs/CONTRIBUTING.md#what-to-expect-in-a-review

Thanks
James

@benjie
Copy link
Author

benjie commented Dec 5, 2025

Added the signed-off-by line.

Copy link
Collaborator

@JamesH1978 JamesH1978 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, not sure why that config has not got the exact comms settings like most of the 4.2.x configs..

You will need to sign off your PR as per:

@benjie
Copy link
Author

benjie commented Dec 8, 2025

Not sure if it helps at all, but here's my full config which is printing very well for me currently. Klipper is an amazing upgrade from the onboard software the printer comes with! Took a full weekend to get everything up and running, but now it is, it's glorious!

[include mainsail.cfg]

[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_endstop: 220
position_max: 220
homing_speed: 50

[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA6
position_endstop: 220
position_max: 220
homing_speed: 50

[bltouch]
sensor_pin: ^PB1
control_pin: PB0
x_offset: -43
y_offset: -5
z_offset = 2.430
speed: 3.0
sample_retract_dist: 3.0
samples: 2
samples_tolerance: 0.100
    
[stepper_z]
step_pin: PB6
dir_pin: PB5
enable_pin: !PC3
microsteps: 16
rotation_distance: 4
endstop_pin: probe:z_virtual_endstop
position_max: 300
position_min: -4

[safe_z_home]
home_xy_position: 110, 110
speed: 50
z_hop: 10
z_hop_speed: 5

[bed_mesh]
speed: 120
horizontal_move_z: 5
mesh_min: 10, 10      # -> nozzle ≈ (53, 15)
mesh_max: 177, 210    # -> nozzle ≈ (220, 215)
probe_count: 5, 5     # 5x5 grid
algorithm: bicubic
fade_start: 1.0
fade_end: 10.0

[screws_tilt_adjust]
screw1: 65, 31
screw1_name: front left screw
screw2: 220, 31
screw2_name: front right screw
screw3: 220, 200
screw3_name: rear right screw
screw4: 65, 200
screw4_name: rear left screw
horizontal_move_z: 10
speed: 50
screw_thread: CW-M4

# I've replaced my extruder, so the inputs here may be wrong for others.
# IIRC it runs in the opposite direction and requires more esteps.
[extruder]
max_extrude_only_distance: 100.0
step_pin: PB4
dir_pin: !PB3 # (Maybe opposite for others?)
enable_pin: !PC3
microsteps: 16
rotation_distance: 23.0404408 # Standard extruder: 32.342
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC5
control: pid
pid_kp: 24.831
pid_ki: 1.346
pid_kd: 114.532
min_temp: 0
max_temp: 260
pressure_advance: 0.6 # I've moved my extruder; original position probably needs higher value

[heater_bed]
heater_pin: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC4
control: pid
pid_kp: 66.429
pid_ki: 1.197
pid_kd: 921.707
min_temp: 0
max_temp: 135

[fan]
pin: PA0

[exclude_object]

[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: PB12
sclk_pin: PB13
sid_pin: PB15
encoder_pins: ^PB14, ^PB10
click_pin: ^!PB2

# For accelerometer:
#[include adxl.cfg]

[gcode_macro START_PRINT]
gcode:
    {% set BED_TEMP = params.BED_TEMP|default(50)|float %}
    {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
    # Use absolute coordinates
    G90
    # Reset the G-Code Z offset (adjust Z offset if needed)
    SET_GCODE_OFFSET Z=0.0
    # Disable heaters before probing
    M140 0
    M104 0
    # Home the printer
    G28
    # Start bed heating
    M140 S{BED_TEMP}
    BED_MESH_PROFILE LOAD=default
    # Move the nozzle near the bed
    G1 Z5 F3000
    # Move the nozzle very close to the bed
    #G1 Z0.15 F300
    # Wait for bed to reach temperature
    M190 S{BED_TEMP}
    # Set and wait for nozzle to reach temperature
    M109 S{EXTRUDER_TEMP}
    # These are the line drawing lines from Cura
    G92 E0 ;Reset Extruder
    G1 Z2.0 F3000 ;Move Z Axis up
    G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
    G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
    G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
    G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
    G92 E0 ;Reset Extruder
    G1 Z2.0 F3000 ;Move Z Axis up

[gcode_macro END_PRINT]
gcode:
    # Turn off bed, extruder, and fan
    M140 S0
    M104 S0
    M106 S0
    # Move nozzle away from print while retracting
    G91
    G1 X-2 Y-2 E-3 F300
    # Raise nozzle by 10mm
    G1 Z10 F3000
    G90
    G28 X0 Y0 ;Present print
    # Disable steppers
    M84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants