Skip to content

cupsster/FLSUN-SR---Klipper-Config

Repository files navigation

FLSUN Super Racer - Klipper Config

!!! Work in Progress !!!

This repository contains settings for FLSUN Super Racer delta printer along with common macros. Please read through configuration to verify your settings to avoit potential damage and/or death.

Use at your own risk. Ensure you understand it first. I do not take any responsibility for this code!

Repository will be updated with new macros and guides as I gain more knowledge on subject.
For most up to date information you can look in develop branch of this repository. But be warned that code might not work properly. Once master branch is mature enough, Work in Progress warning will be removed.

Hardware

Presented printer configuration pinout is based on MKS Robin Nano V3.0 with tmc2209 stepper drivers. You might need to modify it to match your board and drivers setup. I'm running Klipper on Raspberry PI 3B+.

Upgrades

For mounting control board and RPI inside enclosure I used this mounting bracket by superdave42 (go say thank you to the man!) that actually fit on build plate so wise thing is to print it before you start upgrade. I suggest you do it. It will save you lots of time.
Depending on your setup you might want to expose USB port. I used fixed network cable routed through side opening on top of the base instead more common WiFi setup (can still add it later).

Slicers

My slicer of choice is SuperSlicer by supermill so some of macros might be optimized to use it. I will add relevant instructions for how to set it up later into SuperSlicer.md file. I will try to adjust macros in slicer agnostic way but your mileage may vary.

Klipper Config

In Configuration folder you will find my printer.cfg file that holds values for my printer as well as fluidd.cfg config. Most of config files has descriptions copy pasted from Klipper documentation for easy reference to get you going.

Klipper Macros

A collection of Klipper G-code macros adapted from various sources. Most of code is commented to get better understanding of what it does.

Also, as I progress I will rename macros in a way that they are uniform and adhere to some standard. I will most likely follow practices listed on Klipper website eg.: MY_AWESOME_MACRO is treated in code same as my_awesome_macro but I will adhere to form with capital letters so it can be spotted in code immediately.

For macro editing I'm using VS Code and Klipper Config plugin.

Disclaimer

Before you use any macro here provided please make double sure you understand what it does to avoid damage to your machine or magic smoke! Especially check macros that move toolhead, control temperature or filament extrusion!

Usage

Copy the macros folder alongside your printer configuration file and edit it to add:

[include macros/*.cfg]

Configuration

You can configure some macros using SAVE_VARIABLE in the following way:

[save_variables]
filename: ~/klipper_config/variables.cfg

[delayed_gcode macros_initialize]
initial_duration: 1
gcode:
  INITIALIZE_VARIABLE VARIABLE=park_x VALUE=30
  INITIALIZE_VARIABLE VARIABLE=park_y VALUE=30
  INITIALIZE_VARIABLE VARIABLE=bowden_length VALUE=300

Look into printer.cfg for example how to define this section.

Parameters

Here's the list of parameters you can configure:

Name Default Description
park_x x_min + 30 Default X park position
park_y y_min + 30 Default Y park position
park_z z_min + 30 Default Z park position
bowden_length 300 Bowden tube length
park_z_raise_ammount 30 How much to raise nozzle in relative mode

Macros

Growing list of macros provided in this repository (many more will come):

Macro References

Code in this repository is based on my own work and as well work of others like: Desuuuu, AbomShep, danorder.