# Sanity Check\*\* I need HELP!

**URL:** https://klipper.discourse.group/t/sanity-check-i-need-help/3094
**Category:** General Discussion
**Created:** [June 7, 2022, 4:53pm UTC](https://klipper.discourse.group/t/sanity-check-i-need-help/3094 "2022-06-07T16:53:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cabinfourus](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cabinfourus](https://klipper.discourse.group/u/cabinfourus)
#### Post date: [June 7, 2022, 4:53pm UTC](https://klipper.discourse.group/t/sanity-check-i-need-help/3094/1 "2022-06-07T16:53:48Z")

</div>

I am very new to Klipper and really want to give it a try. I just finished building a Cartesian style printer with an Octopus Pro board and want to run the Klipper firmware on it. I have always been hardcore Marlin when it comes to firmware but only because I understand it well. I have been able to flash the Octopus Pro with the Klipper firmware without issue. I am using Mainsail with Klipper and have everything installed onto my Pi. I can access the Pi through SSH and Mainsail is working fine.  
My problem is the lack of confidence in my own work. I’d love for someone to help me Sanity check my printer.cfg file. I used the example configuration from Klipper but I have a lot of extras I need help with.

I have an MKS PWC power module connected to the Octopus Pro in the power detect connector. I also have a BigTreeTech 24 volt UPS module. Would I need to define the pins for these two?  
I am also having trouble with setting up the Z tilt. I have been over the Klipper information 20 times and still don’t get it. Do I need to define the voltage in Klipper?  
I will include my printer.cfg info below if anyone here can take a look and see if they spot anything I may have missed or got wrong.

My setup:  
Cartesian style printer  
Octopus Pro main board  
24 volt power supply  
Nema 17 motors  
TMC2209 (BTT) drivers in UART mode  
Dual Z drivers  
300 by 300 mm heated bed  
MKS PWC power module  
24 volt UPS (BTT)  
TFT35 v3.0 (BTT)  
Dragon hot end  
dual part cooling fans  
separate cooling fan on the TMC drivers

Firmware  
Klipper with Mainsail

# This file contains common pin mappings for the BigTreeTech Octopus.

# To use this config, the firmware should be compiled for the

# STM32F446 with a “32KiB bootloader” and a “12MHz crystal” clock reference.

# See docs/Config\_Reference.md for a description of parameters.

# Driver0

[stepper\_x]  
step\_pin: PF13  
dir\_pin: PF12  
enable\_pin: !PF14  
microsteps: 16  
rotation\_distance: 40  
full\_steps\_per\_rotation: 200  
step\_pulse\_duration: 0.000000100  
endstop\_pin: tmc2209\_stepper\_x:virtual\_endstop  
position\_endstop: 0  
position\_max: 290  
homing\_speed: 20

# Driver1

[stepper\_y]  
step\_pin: PG0  
dir\_pin: PG1  
enable\_pin: !PF15  
microsteps: 16  
rotation\_distance: 40  
full\_steps\_per\_rotation: 200  
step\_pulse\_duration: 0.000000100  
endstop\_pin: tmc2209\_stepper\_y:virtual\_endstop  
position\_endstop: 0  
position\_max: 290  
homing\_speed: 20

# Driver2

[stepper\_z]  
step\_pin: PF11  
dir\_pin: PG3  
enable\_pin: !PG5  
microsteps: 16  
rotation\_distance: 8  
full\_steps\_per\_rotation: 200  
step\_pulse\_duration: 0.000000100  
endstop\_pin: PG10  
position\_endstop: 0  
position\_max: 280  
homing\_speed: 12

# Driver3

# The Octopus only has 4 heater outputs which leaves an extra stepper

# This can be used for a second Z stepper, dual\_carriage, extruder co-stepper,

# or other accesory such as an MMU

[stepper\_z1]  
step\_pin: PG4  
dir\_pin: PC1  
enable\_pin: !PA0  
microsteps: 16  
rotation\_distance: 8  
full\_steps\_per\_rotation: 200  
step\_pulse\_duration: 0.000000100  
endstop\_pin: PG11

# Driver4

[extruder]  
step\_pin: PF9  
dir\_pin: PF10  
enable\_pin: !PG2  
heater\_pin: PA2 # HE0  
sensor\_pin: PF4 #T0  
microsteps: 16  
rotation\_distance: 33.500  
full\_steps\_per\_rotation: 200  
step\_pulse\_duration: 0.000000100  
nozzle\_diameter: 0.400  
filament\_diameter: 1.750  
sensor\_type: EPCOS 100K B57560G104F  
max\_extrude\_only\_distance: 400.0  
pressure\_advance: 0.1  
smooth\_time: 2.0  
min\_extrude\_temp: 170  
pressure\_advance\_smooth\_time: 0.080  
control: pid  
pid\_Kp: 22.2  
pid\_Ki: 1.08  
pid\_Kd: 114  
min\_temp: 0  
max\_temp: 290

[filament\_switch\_sensor material\_0]  
switch\_pin: PG12

# Driver5

#[extruder1]  
#step\_pin: PC13  
#dir\_pin: PF0  
#enable\_pin: !PF1  
#heater\_pin: PA3 # HE1  
#sensor\_pin: PF5 # T1  
#…

#[filament\_switch\_sensor material\_1]  
#switch\_pin: PG13

# Driver6

#[extruder2]  
#step\_pin: PE2  
#dir\_pin: PE3  
#enable\_pin: !PD4  
#heater\_pin: PB10 # HE2  
#sensor\_pin: PF6 # T2  
#…

#[filament\_switch\_sensor material\_2]  
#switch\_pin: PG14

# Driver7

#[extruder3]  
#step\_pin: PE6  
#dir\_pin: PA14  
#enable\_pin: !PE0  
#heater\_pin: PB11 # HE3  
#sensor\_pin: PF7 # T3  
#…

#[filament\_switch\_sensor material\_3]  
#switch\_pin: PG15

[heater\_bed]  
heater\_pin: PA1  
sensor\_pin: PF3  
sensor\_type: EPCOS 100K B57560G104F  
control: watermark  
min\_temp: 0  
max\_temp: 100

[fan]  
pin: PA8 # FAN0

[heater\_fan fan1]  
pin: PE5 # FAN1

[heater\_fan fan2]  
pin: PD12 # FAN2

[heater\_fan fan3]  
pin: PD13 # FAN3

#[heater\_fan fan4]  
#pin: PD14 # FAN4

#[heater\_fan fan5]  
#pin: PD15 # FAN5

[temperature\_sensor mcu\_temp]  
sensor\_type: temperature\_mcu

[mcu]  
serial: /dev/serial/by-id/usb-Klipper\_stm32f446xx\_0E002B00135053424E363620-if00  
#restart\_method: command

# setup for PA9, PA10 USART1\_tx / rx directly connected to the RPI GPIO TX / RX pins

# These are the pins the OctoPus uses for its built in RPI 40 pin connector

# only connect GND, TX, RX - supply 5v power to the RPI separately

# do not cross over TX/RX - it is done internally on the OctoPus PCB.

# Use “sudo raspi-config” to disable the serial terminal - but enable the serial port.

# When running “make menuconfig” you must un-select the USB Serial check box

[printer]  
kinematics: cartesian  
max\_velocity: 500  
max\_accel: 1000  
max\_z\_velocity: 12  
max\_z\_accel: 5

########################################

# TMC2209 configuration

########################################

[tmc2209 stepper\_x]  
uart\_pin: PC4  
diag\_pin: PG6  
run\_current: 0.620  
hold\_current: 0.500  
stealthchop\_threshold: 999999  
driver\_SGTHRS: 85

[tmc2209 stepper\_y]  
uart\_pin: PD11  
diag\_pin: PG9  
run\_current: 0.620  
hold\_current: 0.500  
stealthchop\_threshold: 999999  
driver\_SGTHRS: 85

[tmc2209 stepper\_z]  
uart\_pin: PC6  
diag\_pin: PG10  
run\_current: 0.620  
hold\_current: 0.500  
stealthchop\_threshold: 999999

[tmc2209 stepper\_z1]  
uart\_pin: PC7  
diag\_pin: PG11  
run\_current: 0.620  
hold\_current: 0.500  
stealthchop\_threshold: 999999

[tmc2209 extruder]  
uart\_pin: PF2  
run\_current: 0.620  
hold\_current: 0.500  
stealthchop\_threshold: 999999

#[tmc2209 extruder1]  
#uart\_pin: PE4  
#run\_current: 0.800  
#stealthchop\_threshold: 999999

#[tmc2209 extruder2]  
#uart\_pin: PE1  
#run\_current: 0.800  
#stealthchop\_threshold: 999999

#[tmc2209 extruder3]  
#uart\_pin: PD3  
#run\_current: 0.800  
#stealthchop\_threshold: 999999

[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=, 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=PC5

```

[safe\_z\_home]  
home\_xy\_position: 145, 145  
speed: 50.0  
z\_hop: 10  
z\_hop\_speed: 15.0  
#move\_to\_previous: False

[save\_variables]  
filename: ~/variables.cfg

[idle\_timeout]  
gcode: M84  
timeout: 300

[pause\_resume]  
recover\_velocity: 50.0

[firmware\_retraction]  
retract\_length: 6  
retract\_speed: 20  
unretract\_extra\_length: 1  
unretract\_speed: 10

[adxl345]  
cs\_pin:  
#spi\_speed: 5000000  
#spi\_bus:  
#spi\_software\_sclk\_pin:  
#spi\_software\_mosi\_pin:  
#spi\_software\_miso\_pin:  
#axes\_map: x, y, z  
#rate: 3200

[bltouch]  
sensor\_pin: PB7  
control\_pin: PB6  
pin\_move\_time: 0.680  
stow\_on\_each\_sample: True  
probe\_with\_touch\_mode: False  
#pin\_up\_reports\_not\_triggered: True  
#pin\_up\_touch\_mode\_reports\_triggered: True  
#set\_output\_mode:  
x\_offset: -54  
y\_offset: 10  
z\_offset: 0  
speed: 20  
lift\_speed: 15  
samples: 2  
sample\_retract\_dist: 2.0  
samples\_result: average  
samples\_tolerance: 0.100  
samples\_tolerance\_retries: 2

[homing\_heaters]  
steppers: Z  
heaters: extruder, heater\_bed

[bed\_mesh]  
speed: 50  
horizontal\_move\_z: 5  
mesh\_min: 35, 6  
mesh\_max: 280, 280  
fade\_start: 1.0  
fade\_end: 5.0  
probe\_count: 6, 6

#[z\_tilt]  
#z\_positions:  
#-25,280  
#370,175  
#points: 55,175 330,175  
#speed: 150  
#horizontal\_move\_z: 5  
#retries: 3  
#retry\_tolerance: 0

# See the sample-lcd.cfg file for definitions of common LCD displays.

######################################################################

# BigTreeTtech TFT TouchSCreen emulated 12864 mode

######################################################################

[display]  
lcd\_type: emulated\_st7920  
spi\_software\_miso\_pin: PA6  
spi\_software\_mosi\_pin: EXP1\_3  
spi\_software\_sclk\_pin: EXP1\_5  
en\_pin: EXP1\_4  
encoder\_pins: ^EXP2\_5, ^EXP2\_3  
click\_pin: ^!EXP1\_2

[output\_pin beeper]  
pin: EXP1\_1

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [June 7, 2022, 5:53pm UTC](https://klipper.discourse.group/t/sanity-check-i-need-help/3094/2 "2022-06-07T17:53:51Z")

</div>

Hello @cabinfourus !

Can you please put your file inside the code markers you find in the editor tool bar. So it’s more easy to read and characters don’t get lost.

![grafik](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/6/64c0a0d2f50062eb41e5f52a0a865564f9cdcd15.png)

---

<div class="post-metadata">

### Author: ![cabinfourus](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cabinfourus](https://klipper.discourse.group/u/cabinfourus)
#### Post date: [June 9, 2022, 1:07am UTC](https://klipper.discourse.group/t/sanity-check-i-need-help/3094/3 "2022-06-09T01:07:47Z")

</div>

Sorry, I am not sure how. I will see if I can figure it out though.

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [April 28, 2024, 1:20pm UTC](https://klipper.discourse.group/t/sanity-check-i-need-help/3094/4 "2024-04-28T13:20:52Z")

</div>


