Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save silence48/28fecea98e2277cac6b55af71d25d601 to your computer and use it in GitHub Desktop.
Save silence48/28fecea98e2277cac6b55af71d25d601 to your computer and use it in GitHub Desktop.
ender 6 btt octopus board klipper config from reddit
Following on from my post about my BTT SKR 2 and Klipper config, I present to you my BTT Octopus + Klipper config for my Ender 6.
I upgraded from the SKR 2 to Octopus because my SKR 2 was one of the first batch with the defect, and I aso liked the additional connections available on the Octopus.
# This file contains common pin mappings for the BigTreeTech Octopus V1 + Ender 6.
# To use this config, the firmware should be compiled for the
# STM32F446 with a "32KiB bootloader".
# Enable "extra low-level configuration options" and select the "12MHz crystal"
# as clock reference.
# The "make flash" command does not work on the Octopus. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the Octopus
# with that SD card.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
# MOTOR0
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
microsteps: 16
rotation_distance: 40
# DIAG0
endstop_pin: ^PG9
position_endstop: 0
position_max: 260
homing_speed: 50
[stepper_y]
# MOTOR1
step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
microsteps: 16
rotation_distance: 40
# DIAG1
endstop_pin: ^PG6
position_endstop: 0
position_max: 260
homing_speed: 50
[stepper_z]
# MOTOR2
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
microsteps: 16
rotation_distance: 8
# Disable to use BLTouch
# endstop_pin: PG10
# Disable to use BLTouch
# position_endstop: 0.0
# Enable to use BLTouch
endstop_pin: probe:z_virtual_endstop
# Enable to use BLTouch
position_min: -10
position_max: 400
homing_retract_dist: 0
[extruder]
# MOTOR3
step_pin: PG4
dir_pin: PC1
enable_pin: !PA0
# HE0
heater_pin: PA2
# T0
sensor_pin: PF4
microsteps: 16
# Original Creality extruder
# rotation_distance: 22.857
# Redrex extruder, 95mm/step = 0.010526316 steps/mm
# Formula: rotation_distance = <full_steps_per_rotation> * <microsteps> / <steps_per_mm>
# rotation_distance = 200 * 16 / 0.010526316 = 33.68421053
rotation_distance: 33.68421053
nozzle_diameter: 0.400
filament_diameter: 1.750
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_Kp=33.401
pid_Ki=3.479
pid_Kd=80.163
min_temp: 0
max_temp: 295
max_extrude_only_distance: 1000.0
# pressure_advance = <start> + <measured_height> * <factor>
# pressure_advance = 0 + 38.0 * 0.020 = 0.76
# pressure_advance: 0.76
# The amount of raw filament to push into the extruder during
# extruder acceleration. An equal amount of filament is retracted
# during deceleration. It is measured in millimeters per
# millimeter/second. The default is 0, which disables pressure
# advance.
#pressure_advance_smooth_time: 0.040
# A time range (in seconds) to use when calculating the average
# extruder velocity for pressure advance. A larger value results in
# smoother extruder movements. This parameter may not exceed 200ms.
# This setting only applies if pressure_advance is non-zero. The
# default is 0.040 (40 milliseconds).
#[extruder1] # MOTOR4
#step_pin: PF9
#dir_pin: PF10
#enable_pin: !PG2
#heater_pin: PA3 # HE1
#sensor_pin: PF5 #T1
#...
#[extruder2] # MOTOR5
#step_pin: PC13
#dir_pin: PF0
#enable_pin: !PF1
#heater_pin: PB10 # HE2
#sensor_pin: PF6 #T2
#...
#[extruder3] # MOTOR6
#step_pin: PE2
#dir_pin: PE3
#enable_pin: !PD4
#heater_pin: PB11 # HE3
#sensor_pin: PF7 #T3
#...
#[extruder4] # MOTOR7
#step_pin: PE6
#dir_pin: PA14
#enable_pin: !PE0
#...
[filament_switch_sensor filament_sensor]
# DIAG5
switch_pin: PG13
[heater_bed]
# BED_OUT
heater_pin: PA1
# TB
sensor_pin: PF3
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_Kp=67.392
pid_Ki=0.888
pid_Kd=1278.759
min_temp: 0
max_temp: 130
[heater_fan extruder_fan]
# FAN0
pin: PA8
heater: extruder
heater_temp: 50.0
fan_speed: 1.0
# Part cooling fan
[fan]
# FAN1
pin: PE5
[controller_fan motherboard_fan]
# FAN2
pin: PD12
#[fan fan3]
#pin: PD13 # FAN3
#[fan fan4]
#pin: PD14 # FAN4
#[fan fan5]
#pin: PD15 # FAN5
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
[temperature_sensor host_temp]
sensor_type: temperature_host
[mcu]
serial: /dev/ttyUSB0
[printer]
kinematics: corexy
max_velocity: 500
max_accel: 2000
max_z_velocity: 10
max_z_accel: 100
# [adxl345]
# cs_pin: rpi:None
# [resonance_tester]
# accel_chip: adxl345
# probe_points:
# 100,100,20 # an example
[bed_screws]
screw1: 35,35
screw1_name: rear right
screw2: 225,35
screw2_name: rear left
screw3: 225,225
screw3_name: front left
screw4: 35,225
screw4_name: front right
speed: 100.0
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=PE8, EXP1_2=PE7,
EXP1_3=PE9, EXP1_4=PE10,
EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
EXP1_7=PE14, EXP1_8=PE15,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_2=PA5,
EXP2_3=PB1, EXP2_4=PA4,
EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
EXP2_7=PC15, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=<5V>
[output_pin beeper]
pin: EXP1_1
[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
#########################
# TMC2209 configuration #
#########################
[tmc2209 stepper_x]
# DRIVER0
uart_pin: PC4
run_current: 0.800
hold_current: 0.800
#diag_pin: PG6 # DIAG0
stealthchop_threshold: 999999
[tmc2209 stepper_y]
# DRIVER1
uart_pin: PD11
run_current: 0.800
hold_current: 0.800
#diag_pin: PG9 # DIAG1
stealthchop_threshold: 999999
[tmc2209 stepper_z]
# DRIVER2
uart_pin: PC6
run_current: 0.800
hold_current: 0.800
#diag_pin: PG10 # DIAG2
stealthchop_threshold: 999999
[tmc2209 extruder]
# DRIVER
uart_pin: PC7
run_current: 0.800
hold_current: 0.800
#diag_pin: PG11 # DIAG3
stealthchop_threshold: 999999
#[tmc2209 extruder1]
#uart_pin: PF2 # DRIVER4
#run_current: 0.800
#hold_current: 0.800
#diag_pin: PG12 # DIAG4
#stealthchop_threshold: 999999
#[tmc2208 extruder2]
#uart_pin: PE4
#run_current: 0.800
#hold_current: 0.800
#diag_pin: PG13 # DIAG5
#stealthchop_threshold: 999999
#[tmc2208 extruder3]
#uart_pin: PE1
#run_current: 0.800
#hold_current: 0.800
#diag_pin: PG14 # DIAG6
#stealthchop_threshold: 999999
#[tmc2208 extruder4]
#uart_pin: PD3
#run_current: 0.800
#hold_current: 0.800
#diag_pin: PG15 # DIAG7
#stealthchop_threshold: 999999
#########################
# BLTouch configuration #
#########################
[safe_z_home]
home_xy_position: 113.65, 121.25
speed: 100
z_hop: 10
z_hop_speed: 5
[bltouch]
sensor_pin: !PB7
control_pin: PB6
x_offset: -22.7
y_offset: -7.5
# Higher z-offset value is closer to the bed. Lower value further away.
z_offset: 1.7
# pin_move_time: 2.000
speed: 3.0
# pin_up_touch_mode_reports_triggered: False
probe_with_touch_mode: True
stow_on_each_sample: False
[bed_mesh]
speed: 100
mesh_min: 10, 10
mesh_max: 230, 230
algorithm: bicubic
probe_count: 10,10
[firmware_retraction]
retract_length: 3.5
# The length of filament (in mm) to retract when G10 is activated,
# and to unretract when G11 is activated (but see
# unretract_extra_length below). The default is 0 mm.
#retract_speed: 20
# The speed of retraction, in mm/s. The default is 20 mm/s.
#unretract_extra_length: 0
# The length (in mm) of *additional* filament to add when
# unretracting.
#unretract_speed: 10
# The speed of unretraction, in mm/s. The default is 10 mm/s.
[gcode_arcs]
resolution: 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment