First Time Software Setup¶
This guide will walk you through installing the Klipper firmware on your Raspberry Pi and controller board (MCU).
Step 1: Flash the Raspberry Pi SD Card¶
The easiest way to get started is by using an operating system image that comes pre-packaged with Klipper and a web interface.
- Download and install the Raspberry Pi Imager on your computer.
- Insert your microSD card into your computer.
- Run the imager and select an appropriate OS. MainsailOS or FluiddPi are excellent choices.
- Before writing the image, use the advanced options (cogwheel icon) to pre-configure your WiFi network details and enable SSH.
- Write the image to the SD card. Once complete, insert the card into your Raspberry Pi and power it on.
Step 2: Build the MCU Firmware¶
Now we need to build the firmware file that will be installed on your printer's main controller board.
- Connect via SSH: Find your printer's IP address and connect to it via SSH (e.g.,
ssh pi@your_printer_ip). The default password is oftenraspberry. - Navigate to the Klipper directory:
cd ~/klipper - Run the configuration utility:
make menuconfig - In the menu, configure the settings to match your specific controller board (e.g., for a BTT Octopus, set the microcontroller architecture, processor model, and communication interface).
- Save and exit, then run
maketo build the firmware.
Step 3: Flash the MCU Firmware¶
- Enter DFU Mode: Follow your controller board's documentation to put it into DFU (bootloader) mode. This might involve a jumper or holding a button while powering it on.
- Find Device ID: From your SSH session, find the serial ID of your board with the command
ls /dev/serial/by-id/*. Copy this ID. - Flash: Run the command
make flash FLASH_DEVICE=your_copied_serial_idto flash the firmware.
Step 4: Configure Klipper¶
- In the web interface, navigate to the "Machine" or "Configuration" tab and open the
printer.cfgfile. - You will need to use a sample configuration file as a base.
- Find the
[mcu]section at the top of the file. - Paste the serial ID you copied in the previous step as the value for the
serial:parameter. - Click "Save & Restart". If all goes well, Klipper will now be able to communicate with your printer's controller board.