How to Install Klipper on Ender 3 2018 with KIAU

In this guide, you’ll learn how to Install Klipper on Ender 3 2018 with KIAU using a Raspberry Pi (or similar device).


Hardware You’ll Need

  • Raspberry Pi or Orange Pi
  • Micro USB Cable

Software You’ll Need

  • PuTTY (SSH client)
  • FileZilla (for file transfers)

Disclaimer:

CAUTION: If you still have the stock firwmare you are unable to flash Klipper via USB. You need to flash a bootloader first. Discover How To Install Bootloader on Ender 3 2018 using Orange Pi Zero LTS

If you mount Marlin then you are good to go.


3. Access the Raspberry Pi / Orange Pi via SSH

  1. Find the Raspberry Pi’s IP Address:
    • You can find it via your router’s admin panel or use a network scanner like Angry IP Scanner.
  2. Connect to the Raspberry Pi via SSH:
  3. Update the Raspberry Pi:
    • Run the following commands:
sudo apt update && sudo apt upgrade -y

4. Install KIAUH

  1. Clone the KIAUH Repository (non-root user):
cd ~/
git clone https://github.com/th33xitus/kiauh.git ~/kiauh
  1. Navigate to the KIAUH Directory:
cd ~/kiauh
  1. Start KIAUH:
./kiauh.sh

5. Install Klipper, Moonraker, and a Web Interface

In the KIAUH menu:

  1. Install Klipper to install the Klipper firmware.
  2. Install Moonraker to set up the Klipper API server.
  3. Install a Web Interface: Choose either Mainsail or Fluidd for a user-friendly web interface.

After installation, reboot the device:

sudo reboot

6. Compile Klipper Firmware

  1. After rebooting, reconnect to the device via SSH.
  2. Open the KIAUH menu:
cd ~/klipper/
make menuconfig
  1. Select the following configurations:
    • Microcontroller Architecture: Atmel AVR
    • Processor Model: ATmega1284p
    • Communication Interface: Serial (on USART0)
  2. Press Q to exit and Save
  3. Compile the firmware:
make

The compiled firmware will be saved as klipper.elf.hex in the /out directory.


7. Flash Klipper Firmware

Determine the serial port to the printer board. Run:

ls /dev/serial/by-id/*

It should show something like:

/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

Flash the firmware in your board:

sudo service klipper stop
make flash FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
sudo service klipper start

Awesome! Now your Ender 3 runs klipper!


8. Configure Klipper

  1. Create the printer.cfg file:
  2. Save and Restart:
    • Save the file and restart the Klipper service.
  3. Test the Connection:
    • Run basic commands like G28 (homing) to ensure everything works.

9. Calibration and Optimization

  1. PID Tuning for Hotend:bashCopiaModificaPID_CALIBRATE HEATER=extruder TARGET=200 SAVE_CONFIG
  2. Pressure Advance Calibration:
    • Improves extrusion consistency:bashCopiaModificaTUNE_PRESSURE_ADVANCE
  3. Input Shaping:
    • Reduces vibrations and improves print speed:bashCopiaModificaSHAPER_CALIBRATE

10. Start Printing!

  • Upload a test G-code file through the web interface.
  • Monitor the print and enjoy the improved performance of your Ender 3 with Klipper!

Conclusion

Using KIAUH, installing Klipper on the Ender 3 becomes a straightforward process. You now have a faster, more precise printer with advanced features like Pressure Advance and Input Shaping.