{"id":617,"date":"2023-09-05T09:15:01","date_gmt":"2023-09-05T09:15:01","guid":{"rendered":"https:\/\/function3d.xyz\/?p=617"},"modified":"2024-04-27T10:10:19","modified_gmt":"2024-04-27T10:10:19","slug":"how-to-install-klipper-on-anycubic-kobra-2","status":"publish","type":"post","link":"https:\/\/shop.function3d.xyz\/en\/how-to-install-klipper-on-anycubic-kobra-2\/","title":{"rendered":"How to install Klipper on Anycubic Kobra 2"},"content":{"rendered":"<p><strong>Here are my steps to install Klipper on a Raspberry Pi:<\/strong><\/p>\n\n\n\n<!--more-->\n\n\n\n<ul class=\"wp-block-list\">\n<li>Follow these instructions <strong>https:\/\/github.com\/dw-0\/kiauh<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From the KIAUH main menu, <strong>install klipper, moonraker and mainsail<\/strong> (even if you do not need 3 instances of klipper to manage 3 printers from a single raspberry pi respond \u201c3\u201d when the installation requests it).<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>check that mailsail loads by browsing to the IP address of the raspberry pi.<\/li>\n<\/ul>\n\n\n\n<p><strong>Next steps are specific to Kobra 2<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Compile firmware or <a href=\"https:\/\/drive.google.com\/file\/d\/1Rf6Zca216SqTuVORAmYveNiPfufnIuPO\/view?usp=drive_link\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1Rf6Zca216SqTuVORAmYveNiPfufnIuPO\/view?usp=drive_link\" target=\"_blank\" rel=\"noopener\">download it<\/a> and ignore this point<\/li>\n<\/ul>\n\n\n\n<p>Connect to the raspberry pi by SSH using an ssh client such as Putty.<br>IP address of your raspberry pi<br>user: <code>pi<\/code>, password: <code>raspbian<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd klipper<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make menuconfig<\/code><\/pre>\n\n\n\n<p>set up the menu as in the picture and exit and save with Q<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1177\" height=\"656\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-3.png\" alt=\"\" class=\"wp-image-621\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p>Download the resulting firmware from <code>klipper\/out\/klipper.bin<\/code> with WinSCP (connect to the Raspberry Pi using the same login and password that we used to connect via SSH)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Rename klipper.bin to firmware.bin<\/strong> and copy it to the root of an SD card, with the printer turned off, insert the SD card and turn it on, in a few seconds the klipper firmware will be loaded. From this moment on, the printer screen will be unusable.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add udev rules:<\/li>\n<\/ul>\n\n\n\n<p>Edit the <strong>\/etc\/udev\/rules.d\/10-usb-serial.rules<\/strong> file<\/p>\n\n\n\n<p>with <code>sudo nano \/etc\/udev\/rules.d\/10-usb-serial.rules<\/code> to contain:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SUBSYSTEM==\"tty\", ATTRS{idProduct}==\"7523\", ATTRS{idVendor}==\"1a86\",  SYMLINK+=\"ttyUSB_KOBRA2\"<\/code><\/pre>\n\n\n\n<p>Ctrl+X to exit and save<\/p>\n\n\n\n<p>Edit the <strong>\/etc\/udev\/rules.d\/98-klipper.rules<\/strong> file<\/p>\n\n\n\n<p>with <code>sudo nano \/etc\/udev\/rules.d\/98-klipper.rules<\/code> to contain:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"1a86\", ATTRS{idProduct}==\"7523\", ACTION==\"add\", RUN+=\"\/bin\/sh -c '\/bin\/echo RESTART &gt; \/home\/pi\/printer_1_data\/comms\/klippy.serial'\"<\/code><\/pre>\n\n\n\n<p>Ctrl+X to exit and save<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Restart the operating system: <code>sudo reboot<\/code><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1b9xOY9zppay2TfVpMH0pkc6hTFPuR4Y5\/view?usp=drive_link\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1b9xOY9zppay2TfVpMH0pkc6hTFPuR4Y5\/view?usp=drive_link\" target=\"_blank\" rel=\"noopener\">Download<\/a>, extract and drag and drop the four <code>cfg<\/code> files into the <strong>MACHINE<\/strong> section of the mainsail<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click on &#8220;<strong>FIRMWARE RESTART<\/strong>&#8221; in mailsail.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Bed Leveling and setting Nozzle Offset<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"546\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-1.png\" alt=\"\" class=\"wp-image-619\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-1.png 683w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-1-300x240.png 300w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-1-600x480.png 600w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/figure>\n\n\n\n<p><strong>Do Home and move Z to 0<\/strong>, use Z-Offset to raise or lower the nozzle, use a paper as usual. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"533\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image.png\" alt=\"\" class=\"wp-image-618\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image.png 666w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-300x240.png 300w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-600x480.png 600w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<p><s><strong>Once Z-Offset is calibrate<\/strong>, click on <code>SAVE &gt; TO PROBE<\/code> and <code>SAVE_CONFIG<\/code><\/s><br>With the new configuration  (02-01-2024) the z offset value is stored between sessions so it is not necessary to save it, if you save it when restarting it would be applying double, so if you save it the z offset value after restarting you should set it to zero for the session.<\/p>\n\n\n\n<div class=\"wp-block-cover\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"579\" class=\"wp-block-cover__image-background wp-image-620\" alt=\"\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-2.png\" data-object-fit=\"cover\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-2.png 724w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-2-300x240.png 300w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-2-600x480.png 600w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<p class=\"has-text-align-center has-large-font-size\">this step is no longer necessary<\/p>\n<\/div><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remove the SD card from the printer, to prevent the firmware from loading every time you turn it on.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>That&#8217;s all! Your printer is set up and ready to print.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Bonus<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1CjfUV30SpRE2vx3uouXRjo3yje7ap4b2\/view?usp=drive_link\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1dTc0CBOtaGi_aqGgppwB1ZrGpbqRqRfD\/view?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">Orca profile I use<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1dTc0CBOtaGi_aqGgppwB1ZrGpbqRqRfD\/view?usp=drive_link\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1dTc0CBOtaGi_aqGgppwB1ZrGpbqRqRfD\/view?usp=drive_link\" rel=\"noreferrer noopener\">Cura profile I use<\/a> (I no longer use Cura)<\/p>\n\n\n\n<p><strong>Start gcode cura:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>START_PRINT EXTRUDER_TEMP={material_print_temperature_layer_0} BED_TEMP={material_bed_temperature_layer_0}<\/code><\/pre>\n\n\n\n<p><strong>Start gcode prusa slicer:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>START_PRINT EXTRUDER_TEMP=&#91;first_layer_temperature] BED_TEMP=&#91;first_layer_bed_temperature]<\/code><\/pre>\n\n\n\n<p><strong>end gcode:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>END_PRINT<\/code><\/pre>\n\n\n\n<p><strong>Excluding objects<\/strong> <\/p>\n\n\n\n<p>Add these lines in the <code>moonraker.conf<\/code> file in the mainsail machines section to allow <strong>excluding objects<\/strong> while a print is in progress.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;file_manager]<br>queue_gcode_uploads: False<br>enable_object_processing: True<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Send prints from Cura<\/strong><\/p>\n\n\n\n<p>Install the plugin <strong>Moonraker connection<\/strong> from the <a href=\"https:\/\/marketplace.ultimaker.com\/app\/cura\/plugins\/emtrax\/MoonrakerConnection\" target=\"_blank\" rel=\"noreferrer noopener\">Marketplace<\/a> in Cura<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"860\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-4.png\" alt=\"\" class=\"wp-image-624\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"565\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-5.png\" alt=\"\" class=\"wp-image-625\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-5.png 720w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-5-300x235.png 300w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-5-600x471.png 600w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Firmware retraction<\/strong><br>Install the plugin <strong>Printer Settings<\/strong> from the <a href=\"https:\/\/marketplace.ultimaker.com\/app\/cura\/plugins\/emtrax\/MoonrakerConnection\" target=\"_blank\" rel=\"noreferrer noopener\">Marketplace<\/a> in Cura<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"735\" src=\"https:\/\/function3d.xyz\/wp-content\/uploads\/2023\/09\/image-6.png\" alt=\"\" class=\"wp-image-626\" srcset=\"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-6.png 726w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-6-100x100.png 100w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-6-296x300.png 296w, https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/image-6-600x607.png 600w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n<p>If you have any questions or comments you can leave them in the comments section of this video <strong><a href=\"https:\/\/www.tiktok.com\/@function.3d\/video\/7268267451220036897\" data-type=\"link\" data-id=\"https:\/\/www.tiktok.com\/@function.3d\/video\/7268267451220036897\" target=\"_blank\" rel=\"noopener\">Klipper firmware on the Kobra 2<\/a><\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Here are my steps to install Klipper on a Raspberry Pi:<\/p>\n","protected":false},"author":1,"featured_media":628,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[49],"tags":[],"class_list":["post-617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial"],"jetpack_featured_media_url":"https:\/\/shop.function3d.xyz\/wp-content\/uploads\/2023\/09\/klipper-kobra-2.gif","jetpack_shortlink":"https:\/\/wp.me\/pe3sSh-9X","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/posts\/617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/comments?post=617"}],"version-history":[{"count":23,"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/posts\/617\/revisions"}],"predecessor-version":[{"id":817,"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/posts\/617\/revisions\/817"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/media\/628"}],"wp:attachment":[{"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/media?parent=617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/categories?post=617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shop.function3d.xyz\/en\/wp-json\/wp\/v2\/tags?post=617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}