Klipper install Anycubic kobra 2

Hey, I attempted to Print something test wise and it Crashes and the Consol sais
9:50 PM Unknown command:"M205" 9:50 PM Unknown command:"M205" 9:50 PM Unknown command:"M203" 9:50 PM Unknown command:"M201"

Do you know what the Issue is with that?

It means that M205 command is unknown for Klipper. Check your slicer settings (if the printer is configured properly) and start G-code.
What slicer you use?

Disable the acceleration and jerk control settings in your slicer and use the ones set in your printer.cfg.
If you want to use it in the slicer you have to create Klipper macros dealing with those gcodes (M201 - M205.)

I am Using the Prusa Slicer.

I found the Problem with that it was still on the koble 2 config and not configured for clipper.

My Other Problem I got is that my Printer won’t Heat up when I want to Print I Used your configuration but when I want to Print I also got this Error Message

Heater extruder not heating at expected rate
See the 'verify_heater' section in docs/Config_Reference.md
for the parameters that control this check.

Once the underlying issue is corrected, use the
"FIRMWARE_RESTART" command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown

On Kobra2 you have a separate mosfets for extruder and bed heaters (as usual)and one more to switch the power for those mosfets - like a master switch
On the dashboard screen on the bottom you can find a “power control” switch for this. Just add a macro or insert in a start g-code control for this switch. Or just wait until 6pm gmt time, I’ll update a published printer config :slight_smile:

printer.config updated

You can use M80 in your start G-cone to power up the bed/extruder “master switch” and M81 to switch it off.

Next week I am going to receive my new Anycubic kobra 2 and I have doubts about installing the klipper firmware or not.

One question, with the klipper firmware you lose the bed leveling LeviQ 2.0 (with the new button) and you must use the klipper bed leveling, right? Or is it possible to use the new button with klipper?

Did you update here?

Or where do I find the latest file?

This is my last config

@Crororo after following the steps and adding printer.cfg from the tutorial, I now get this error

Option ‘control’ in section ‘heater_bed’ must be specified

This is the section in printer.cfg
image

@Function3D If I use the 4 config files you posted in your video, I get an error about a missing variables.cfg file

image

Probably because I use kiauh script to install three instances of klipper to control 3 printers with a raspberry pi, that’s why that path has a 1 for the first instance in “printer_1_data”, try to remove the 1 leaving it in “printer_data”. @Immaculato

Printer config updated.

Yep, it might be the issue - I use with one printer for now and Trident is ongoing maybe in a month - too many modifications…

@Function3D
That got me further - now I get this error and waiting doesnt resolve it
image

This may be because you did not load the klipper firmware in the printer or because the firmware you loaded in the printer is not correctly compiled, also can be because the serial port configured in the mcu section of printer.cfg is not correct for your system

I do have the compiled version installed. Are there directions for configuring the serial port?

Included is a file showing exactly what I have done
Klipper Install on Kobra2.pdf (674.1 KB)

Full instructions here

Here are my steps to install klipper on a raspberry pi (brief instructions):

  1. Follow these instructions GitHub - dw-0/kiauh: Klipper Installation And Update Helper

  2. From the KIAUH main menu, install klipper, moonraker and mainsail (even if you do not need 3 instances of klipper to manage three printers from a single raspberry pi respond “3” when the installation requests it).

  3. check that mailsail loads by browsing to the IP address of the raspberry pi.

Next steps are specific to Kobra 2

  1. Add udev rules:

Edit the /etc/udev/rules.d/10-usb-serial.rules file
with sudo nano /etc/udev/rules.d/10-usb-serial.rules to contain:

## rule to bind Kobra 2 USB serial to the static name ttyUSB_KOBRA2 SUBSYSTEM=="tty", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", SYMLINK+="ttyUSB_KOBRA2"

Ctrl+X to exit and save

Edit the /etc/udev/rules.d/98-klipper.rules file
with sudo nano /etc/udev/rules.d/98-klipper.rules to contain:

## rule to restart klipper when the printer is connected via usb SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ACTION=="add", RUN+="/bin/sh -c '/bin/echo RESTART > /home/pi/printer_1_data/comms/klippy.serial'"

Ctrl+X to exit and save

  1. Restart the operating system with sudo reboot

  2. drag and drop the four configuration files into the “machine” section of the mainsail,

  3. click on “FIRMWARE RESTART” in mailsail.

@Immaculato you need do the 4 and 5 steps, in your case for the purpose of step 4 to work it may need a different path to klippy.serial

1 Like

@Function3D I followed your guide and now am at a MCU error. I am attaching a pdf of my exact steps. I also redid the printer firmware from the updated pi. I appreciate any help you can give here. Once I have mine running, I will update the doc file so other people can use it as a roadmap.
Function3D - Install on Kobra2.pdf (822.9 KB)

Run this command:
ls /dev/serial/by-id/

output example:
ls /dev/serial/by-id/
usb-1a86_USB_Serial-if00-port0
use this path /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
for the parameter serial in the [mcu] section:

[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0


@Function3D