Klipper pt4: Configuration

 

Configuring Klipper

The easiest way is to use one of the provided config examples if you have a board that fits, otherwise just use the example.cfg and work from there.

Again the easiest way is to manipulate the config file with your pc, log into the pi using WinSCP navigate to  /home/pi, download the printer.cfg from there, edit it using notepad++ and after finishing reupload it to the pi overwriting the existing file.

If you got a preexisting Marlin / Repetier configuration just locate the pins in configuration.h / pins.h file for your breakout board you need.

To get an idea of how Klipper is configured, read through Kevins annotations in both example.cfg and example-extras.cfg

Ill just mention a few important sections here:

Pins:

Pins are configured a bit different from the common Marlin / Repetier scheme:

ar6 f.e. is pin d6

^ar6 is pin6 with pullup if available

!ar6 is active low / high ( can be used to reverse steppers f.e. if you change the dir pin )

Steps per mm:

Klipper uses the distance per step value to set steps per mm, just calculate your steps per mm with reprap calculator like you usually do and divide 1 by them to get the step distance.

Example: 80 steps per mm has been calculated from a typical 200 steps 1.8° Stepper with a 20 tooth gt2 pulley, now we divide 1 by 80 to get a step distance of 0,0125.

Nozzle homing offsets:

If your printer has a bed that offsets from your endstop positions ( Like an Anet A8 f.e. ) configure it as following:

[stepper_x]

position_endstop: -20

position_max: 220

position_min: -20

[stepper_y]

position_endstop: -8

position_max: 208

position_min: -8

This offsets the print area to -20 / -8 and brings the nozzle right to the front edge of the bed at 0 / 0

Bed heat control:

The bed heater can either be PID or bang bang controlled, i found that PID works a lot better, especially on bigger build surfaces.

In my case it looks like this:

[heater_bed]
heater_pin: ar6
sensor_type: NTC 100K beta 3950
sensor_pin: analog11
control: pid
pid_Kp: 65.952
pid_Ki: 1.432
pid_Kd: 759.276
min_temp: 0
max_temp: 110

Leave a Reply

Your email address will not be published. Required fields are marked *