Need help installing klipper on ender 3

I have heard great things about klipper so I tried installing it on a Ender 3 pro with a V1.1.4 board using a Raspberry Pi 3 Model B Rev 1.2

I followed the instructions on 3dprintbeginner . com/install-klipper-on-ender-3/#Prerequisites
// remove spaces

Prerequisites

In order to install Klipper, you will need the following:

Updated Raspbian

  1. Raspberrpy Pi with OctoPi installed
    Yes and working
  2. Ender 3 printer with stock motherboard. A bootloader needs to be already installed in order to do this.
    Yes but not sure about the bootloader bit.

Install Klipper on Ender 3

  1. Login via SSH on the server
  2. Run git clone https ://github . com/KevinOConnor/klipper // remove spaces
  3. Start the installation ./klipper/scripts/install-octopi.sh
  4. Navigate to the Klipper Folder cd ~/klipper/
  5. Run make menuconfig You need to select the Atmega AVR micro-controller achitecture, with atmega1284p processor model, 16Mhz speed, then select Exit
  6. Select Yes when you are asked to save the configuration
  7. Run make to compile the firmware for the Ender 3 board.
    • In the SSH connection, run sudo service klipper stop to prepare for flashing
    • Run ls /dev/serial/by-id/* command to list your printer’s USB port, and run the command make flash FLASH_DEVICE= the_id_received_from_the_previous_command

This is where the trouble starts

pi@octopi:~/klipper sudo service klipper stop pi@octopi:~/klipper ls /dev/serial/by-id/*
/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
pi@octopi:~/klipper $ make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
Flashing out/klipper.elf.hex to /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 via avrdude
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x68
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x3a
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x6e
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x6d
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x61
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x69

avrdude done. Thank you.

make: *** [src/avr/Makefile:34: flash] Error 1
pi@octopi:~/klipper $

klippy1.log (1.1 KB)

OK missing printer.cfg. So I copied the printer-creality-ender3-2018.cfg file and edited the MCU. Place it in /home/pi and renamed to printer.cfg.
Retried make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 and again got the same set of errors.

klippy.log (17.4 KB)

Now I am lost. Help will be greatly appreciated.

The board in that printer generally requires a custom flash command. These instructions are at the top of the Ender 3 config file.

# Note, a number of Melzi boards are shipped with a bootloader that
# requires the following command to flash the board:
# avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
# If the above command does not work and "make flash" does not work
# then one may need to flash a bootloader to the board - see the
# Klipper docs/Bootloaders.md file for more information.

One other note, the Ender 3 Pro has a 4.2.2 board which is entirely different. I’m assuming you actually have the regular Ender 3 based on your description.

It was sold to me as a pro. However, I checked the board and it is a 1.1.4 board so I guess not a pro.
I will try that command and report back.

So in the end it was the bootloader. There wasn’t one. After adding it all went smoothly.

May I suggest you follow a completely different install setup. Octoprint has been known to have some major flaws that cancel out a lot of the benefits from Klipper. Instead I strongly recommend using Fluidd web interface. You can install everything in one simple step with FluiddPi which is a Pi image that contains everything pre-installed. All you need to do then is setup your printer.cfg config file and you’re done! GitHub - cadriel/FluiddPI: FluiddPi - A Pi image with Klipper, Moonraker, Fluidd and Web Camera support pre-installed.

Could you please elaborate? I have my octoprint up and running but I’m willing to change to Fluidd if there are sufficient advantages.

IMHO a question of taste:

Fluidd:

  • More modern
  • Faster UI (if you feel you need to do high speed clicking in the UI)

Octoprint:

  • Higher flexibility / customization
  • Should be used with klippers virtual sd card feature

I prefer Octoprint due to the flexibility of customization.

I am trying to install klipper in the same printer as you. Do you mind sharing the menuconfig settings? I think I am having the same issue as you

Please open a new post with your printer details: Exact type, board version, klippy.log