Skip to content

πŸ”₯ A comprehensive Klipper configuration for a variety of 3D printers πŸ”₯

License

Notifications You must be signed in to change notification settings

bassamanator/Sovol-SV06-firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🚨 One-Stop-Shop Klipper Configuration

This branch contains the Klipper configuration and firmware for the Sovol SV06 3D printer.

Printer Branch
${\normalsize{\textcolor{darkturquoise}{\texttt{Sovol SV06}}}}$ ⚑ ${\small{\textcolor{darkturquoise}{\texttt{YOU ARE HERE}}}}$ ⚑
Sovol SV06 Skr-Mini-E3-V3.0 skr-mini-e3-v3
Sovol SV06 Plus sv06-plus
Sovol SV06 Fly-E3-Pro-V3 fly-e3-pro-v3 **
All other printers any-printer

** Maintained by ElPainis

I am creating these files for my personal use and cannot be held responsible for what it might do to your printer. Use at your own risk.

Outline

Features

  • πŸ’₯ This Klipper configuration is an endpoint, meaning that it contains everything that you could possibly need in order to have an excellent Klipper experience! πŸ’₯
  • Filament runout sensor usage implemented.
  • Minimum configuration settings for Mainsail and Fluidd.
  • Pre-configured configuration bundles based on the Ellis SuperSlicer Print Profiles:
    • SuperSlicer
    • PrusaSlicer
    • Printer profiles: SV06/Plus; SV07/Plus
  • Bed model and texture to use in SuperSlicer/PrusaSlicer.
  • Macros:
    • Improved mechanical gantry calibration/G34 macro that provides the user audio feedback, and time to check the calibration.
    • Misc macros: PRINT_START, CANCEL_PRINT, PRINT_END, PAUSE, RESUME.
    • Parking macros (parks the printhead at various locations): PARKFRONT, PARKFRONTLOW, PARKREAR, PARKCENTER, PARKBED.
    • Load/unload filament macros.
    • PURGE_LINE macro.
    • TEST_SPEED macro. Find instructions here.
  • Klipper Adaptive Meshing & Purging (KAMP) integrated. Read about it here.

πŸ”Ό Back to top

Stay Up-to-Date

${\normalsize{\textcolor{goldenrod}{\texttt{Star ⭐ this project.}}}}$

Watch for updates.

github star

πŸ”Ό Back to top

Preface

Although I've made switching over to Klipper as easy as is possible, it can still be a challenge for some, especially considering that most of you have likely never used GNU+Linux. Save yourself the frustration, and fully read this documentation. Also note that Klipper is not a must, and is not for everyone. You can stick with Marlin, and have a fine 3D printing experience.

In many ways, this entire repository can be considered my opinion on the 3D printing experience and this has been my attempt to share that experience. Some factors, such as accuracy and testing, have been at the forefront of my thoughts during this process. I hope you find this repository suitable. Cheers.

πŸ”Ό Back to top

Before You Begin

  • This entire page is a 9 minute read. Save yourself hours of troubleshooting and read this documentation fully.
  • Follow the steps in order. If an error was reported at a step, do no proceed to the next step.
  • It is assumed that you are connected to your host Raspberry Pi (or other host device) via SSH, and that your printer motherboard is connected to the host via a data USB cable.
  • It is also assumed that the username on the host device is pi. If that is not the case, edit moonraker.conf and cfgs/misc-macros.cfg to change any mentions of /home/pi to /home/yourUserName.
  • Klipper must be installed on the host beforehand. Easiest is to use MainsailOS. KIAUH is another option.
  • Klipper must be up to date.
    • In Fluidd, you can do this from Settings > Software Updates.
    • In Mainsail, you can do this from Machine > Update Manager.
  • Robert Redford's performance in Spy Game (2001) was superb!
  • It is assumed that there is one instance of Klipper installed. If that is not the case, the steps in this guide will not work perfectly for you.
  • Your question has probably been answered already, but if it hasn't, please post in the Discussion section.
  • I would recommend searching for the word NOTE in this configuration. There are roughly half a dozen short points amongst the various files that you should be aware of.
  • Consider these printable parts, and also see my Printables page.

Tip

Most of the micro USB cables that you find at home are unlikely to be data cables, and it is not possible to tell just by looking.

Caution

Make sure your printer is in good physical condition, because print and travel speeds will be a lot faster. Beginners would be wise to run through these steps.

Caution

Disable the USB cable's 5V pin.

πŸ”Ό Back to top

Klipper Installation

Flash Firmware

πŸ’‘ If you flashed Klipper onto your motherboard in the past, you can skip this step.

Please note:

  • For the sake of simplicity, I will refer to the firmware file as klipper.bin even though the actual filename is something along the lines of klipper-v0.11.0-148-g52f4e20c.bin.
  • The firmware file is located in the misc folder.
  • Flashing will only work if current firmware filename is different from previous flashing procedure. The .bin is also important.
  • You may find this video useful.

Warning

Many users have reported having issues flashing Klipper using the Sovol microSD card.

1. Prepare the microSD Card for Flashing with These Parameters

  • Size: 16GB maximum.
  • File system: FAT32.
  • Allocation unit size: 4096 bytes.
  • Must not contain any files except the firmware file.

2. Flashing Procedure

  1. Disconnect any USB cables that might be connected to the motherboard.
  2. Copy klipper.bin to the microSD card.
  3. Make sure the printer is off.
  4. Insert the microSD card into printer.
  5. Turn on the printer and wait a minute (usually takes 10 seconds).
  6. Turn off the printer and remove the microSD.

Important

⏲️ At this point, it's not possible to tell with certainty whether your flash was successful, continue on with the guide.

πŸ”Ό Back to top

Download OSS Klipper Configuration

Method 1: Clone the Repository

πŸ’‘ Make sure git is installed (sudo apt update && sudo apt install git).

  1. cd ~/printer_data/config
  2. Empty entire ~/printer_data/config folder.
    • In linux, you can delete files via rm fileName and directories via rmdir directoryName.
    • In linux, you can list files and folders via ls -lah.
  3. git clone -b master --single-branch https://github.com/bassamanator/Sovol-SV06-firmware.git . ⚠️ Don't miss the period!

Method 2: Download the ZIP

  1. Download the ZIP file containing the Klipper configuration.
  2. See Step 2 in Method 1.
  3. The parent folder in the ZIP is Sovol-SV06-firmware-master. This is relevant in the next step.
  4. Extract only the contents of the parent folder into ~/printer_data/config.

πŸ”Ό Back to top

Initial Steps

Adjust Configuration with MCU Path

πŸ’‘ Make sure the host and printer are connected via USB.

  1. Find what port the mcu (printer motherboard) is connected to via one of the following commands:

    • ls /dev/serial/by-id/*
    • ls /dev/serial/by-path/*
    1. The output will be something along the lines of
      • /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
  2. Adjust the [mcu] section in printer.cfg accordingly.

    # πŸ“ This is just an example
    [mcu]
    serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
    restart_method: command
  3. Do a FIRMWARE_RESTART.

If the Klipper flash that you did earlier was successful, and you've done everything else correctly, you should see no errors or warnings in the Mainsail/Fluidd dashboard. πŸŽ‰ Your printer has been Klipperized! πŸŽ‰

πŸ”Ό Back to top

Configure Your Printer

β—β˜ οΈ Your finger should be on the power switch for most of these steps β˜ οΈβ—

β—β˜ οΈ Power off if there is a collision/problem β˜ οΈβ—

πŸ’‘ The ${\small{\textcolor{red}{\texttt{EMERGENCY STOP}}}}$ button in your dashboard works faster than hitting the power switch.

πŸ’‘ Do a practice emergency stop.

πŸ’‘ I recommend no filament be loaded for any of these steps.

Note

You will be pasting/typing these commands into the Mainsail/Fluidd console.

  1. Check to see if X and Y max positions can be reached, and adjust position_max, if necessary. You might be able to go further, which is great, but I recommend leaving a 2mm gap for safety.
    1. G28
    2. G90
    3. G1 X223 F3000
    4. G1 Y223 F3000
  2. Do a mechanical gantry calibration; G34. After the controlled collision against the beam at the top, there will be a 10 second pause for you to verify that both sides of the gantry are pressed up against the stoppers at the top. You will hear a succession of beeps.
    1. Figure out your Z position_max by baby stepping your way up to the beam, and adjust position_max, if necessary.
  3. PID tune the bed. Ideally, all PID tuning should occur at the temperatures that you print most at.
    1. PID_TEST_BED TEMP=70
    2. SAVE_CONFIG (once completed)
  4. PID tune the extruder while part cooling fan runs at 25%.
    1. PID_TEST_HOTEND TEMP=245
    2. SAVE_CONFIG (once completed)
  5. Adjust z_offset. Make sure your nozzle if very clean. Do the Paper test.
    1. DO_PROBE_CALIBRATE
    2. Follow z_offset setup in Mainsail/Fluidd.
    3. SAVE_CONFIG (once completed)
  6. Create a bed mesh.
    1. DO_CREATE_MESH
    2. SAVE_CONFIG (once completed)

🏁 If you've made it here, then your Klipperized printer is ready to print! 🏁

But first, adjust your slicer.

πŸ”Ό Back to top

Adjust Your Slicer

Note

If you are using the slicer bundles found on this repo, you can skip this section.

Start G-Code

It varies depending on your slicer. Find instructions here.

End G-Code

PRINT_END

Line Purge

If you would like to print a purge line before your print starts, at the end of your start gcode, on a new line, add one of the following:

  • PURGE_LINE; prints a standard purge line.
  • LINE_PURGE; prints KAMP's purge line.

Warning

Do not attempt to use LINE_PURGE without reading this section.

# πŸ“ This is just an example Start G-Code
PRINT_START ...
PURGE_LINE

πŸ”Ό Back to top

Support Me

Please ⭐ star this repository!

Support open source, and buy me a Ko-fi.

πŸ”Ό Back to top

Directory Structure

This repository contains many files and folders. Some are necessary for this Klipper configuration to work, others are not.

  • Necessary items are marked with a βœ….
  • Items that can optionally be deleted are marked with a πŸ’ .
/home/pi/printer_data/config
β”œβ”€β”€ cfgs/ βœ…
β”œβ”€β”€ CODE_OF_CONDUCT.md πŸ’ 
β”œβ”€β”€ CONTRIBUTING.md πŸ’ 
β”œβ”€β”€ .git/ βœ…β”
β”œβ”€β”€ .github/ πŸ’ 
β”œβ”€β”€ .gitignore βœ…β”
β”œβ”€β”€ LICENSE πŸ’ 
β”œβ”€β”€ misc/ πŸ’ 
β”œβ”€β”€ moonraker.conf βœ…
β”œβ”€β”€ osskc.cfg βœ…
β”œβ”€β”€ printer.cfg βœ…
β”œβ”€β”€ README.md πŸ’ 
β”œβ”€β”€ SECURITY.md πŸ’ 
└── .vscode/ πŸ’ 

πŸ”Ό Back to top

Special Considerations

Sequential printing

If enabled, cancelling, or resuming a print from pause, could lead to collisions with previously printed objects. In order to prevent collisions, in your slicer, ensure that objects are printed from the back of the build plate to the front.

In PrusaSlicer, please see Printer Settings > Notes, for extruder clearances.

Renamed GCODE Commands

BED_MESH_CALIBRATE

Renamed to _BED_MESH_CALIBRATE.

πŸ”Ό Back to top

FAQ

What are some settings that I can change?

Edit the relevant file according to your needs.

File Section
cfgs/misc-macros.cfg [gcode_macro _globals]
Variable Disable Enable Notes
variable_beeping_enabled 0 1 (default)
variable_filament_sensor_enabled 0 (default) 1
variable_kamp_enable 0 (default) 1 See here

How do I import a configuration bundle into SuperSlicer/PrusaSlicer?

Please see this discussion.

How do I print using SuperSlicer/PrusaSlicer?

Please see this discussion.

When does beeping occur?

The printer will beep upon:

  • Filament runout.
  • Filament change/M600.
  • Upon PRINT_END.
  • MECHANICAL_GANTRY_CALIBRATION/G34.

I want to use a filament sensor. How do I set it up?

You can find information about the physical setup here.

You can test the sensor via QUERY_FILAMENT_SENSOR SENSOR=filament_sensor.

My filament runout sensor works, but I just started a print without any filament loaded. What gives?

A simple runout sensor can only detect a change in state. So, if you start a print without filament loaded, the printer will not know that there is no filament loaded. You should test your sensor by having filament loaded, starting a print, then cutting the filament. The expected behaviour is that the print will pause, and as long as you have beeping enabled, you will hear 3 annoying beeps.

What happens when I put in M600/colour change at a certain layer?

  1. The printer will beep 3 times (not annoyingly).
  2. Printing will stop.
  3. The printhead will park itself front center.
  4. The hotend will turn off, but the bed will remain hot.

What happens when I pause a print?

Same behaviour as M600/colour change except there won't be any beeping.

What happens when filament runs out?

If you have a working filament sensor, the same behaviour as M600/colour change will occur except the beeps will be fairly annoying.

How do I resume a print after a colour change or filament runout?

Warning

Do not disable the stepper motors during this process!

The printhead is now parked front center waiting for you to insert filament. You will:

  1. Heat up the hotend to the desired temperature.
    • Use your Klipper dashboard.
  2. Purge (push) some filament through the nozzle.
    • Use your Klipper dashboard, and extrude maybe 50mm (for a colour change you probably want to extrude more).
    • OR, you can push some filament by hand making sure to first disengage the extruder's spring loaded arm.
  3. Hit resume in your Klipper dashboard.

What do I need to know about KAMP?

Warning

No KAMP functionality can be used on low-powered devices such as the Raspberry Pi Zero.

Warning

If KAMP is disabled, and there is no default mesh, PRINT_START will crash.

Important

The Label objects setting in your slicer must be enabled for KAMP to work.

Note

LINE_PURGE is useable on appropriate devices even if KAMP is disabled.

This repo contains all the code from the KAMP repository, however, only the adaptive meshing and LINE_PURGE functionality of KAMP has been configured and tested for use. To enable other functionality, adjust /cfgs/kamp/KAMP_Settings.cfg.

Read KAMP official docs to learn more.

How do I use the TEST_SPEED macro?

Warning

This is for advanced users only, with well oiled machines. You can cause serious damage to your printer if you're not careful.

Find full instructions here.

Some tips:

  • Before running with ITERATIONS=40 with an untested speed/accel value, run with ITERATIONS=1.
  • Pay close attention throughout the run, so that you can click ${\small{\textcolor{red}{\texttt{EMERGENCY STOP}}}}$ at a moment's notice.
  • This macro will simply help you determine the maximum speed your printhead and bed can reliably move at, not necessarily print at. The bottleneck for my SV06, for example, is the 15mm/s^2 that the hotend maxes out at (well under 200mm/s actual print speed).

How do I compile my own firmware?

Please see this discussion.

πŸ”Ό Back to top

Useful Resources

πŸ”Ό Back to top

Sovol Official Links

πŸ”Ό Back to top

Sources

ko-fi

πŸ”Ό Back to top