How to Install Klipper on Sidewinder X2: Config and Setup

Originally published at: How To Install Klipper On Sidewinder X2: Config And Setup | 3D Print Beginner

The Sidewinder X2 is quite a capable machine, but it can be even better with Klipper Firmware. In this guide I will show you how to install Klipper on Sidewinder X2 and take advantage of all the benefits it comes with. What is Klipper? Klipper is an open-source firmware for your…

I have been transferring my Genius Pro to Klipper just now. Initially it didnt work, but I got a great hint from someone in Reddit, saying I should issue the ls /dev/serial/by-id/* command after having flashed the firmware and connected the printer with the PI, to find my own ID which had to be inserted in the MCU part of the printer.cfg file (this in case you are using a printer.cfg from soomeone else.)
MAy be some other read here might benefit from this as well.
Thanks for the general isntructions in any case

Hi. Is there a way to enable the runout sensor? I checked the documentation and there is a switch/config but I have no clue what pin I have to add.

If I remember correctly, the filament sensor on the X2 is wired to the TFT screen.
If you change its location, then you should be able to find the pin and enable it in the config.

Just as a heads-up for anyone that uses the printer.cfg file from this tutorial: The PID tuning for the bed heater was clearly done for 120v regions, as the values are wildly incorrect if you run the printer from a 230V plug. I definitely recommend doing PID tuning according to the Klipper documentation if you also have 230V mains

It was actually done on 230V. But as always, PID is different depending on various printers and temperatures.

Fantastic directions on getting Mainsail/Klipper setup on the SWX2. I’m running into an issue, however, trying to get the Ruby v1.2 board in DFU mode. I’ve tried sending the M997 command via Pronterface as well as physically jumping the 3.3v and BOOT jumpers. Nothing seems to be working. No STM device in DFU mode showing up. Any suggestions??? TIA

  1. Windows wasn’t automatically downloading the driver for the printer motherboard, make sure to check Windows update and let it download the printers driver.
  2. I just had to skip the whole Pronterface and use Pi to flash Klipper.
  3. Had to change the MCU serial to this, since the one from the 3dprinterbeginner was incompatible - serial: /dev/serial/by-id/usb-Klipper_stm32f401xc_460078000351383532393535-if00

You copied your PID values from the extruder and just pasted it for the bed heater. Idk if it was an accident, but according to the cfg at least, there was nothing special done for either the bed/hotend. One of them is wrong, they aren’t supposed to be the same value

Trying to get my X2 working with Klipper running on a laptop per ModBot’s tutorial but am unable to get the laptop to connect post-flash. Using the steps below DFU reports successful flash download but upon reboot of the printer the blue light on the touch probe flashes ~once per second and otherwise is unresponsive. I can flash back to default firmware without issue. Any advice greatly appreciated!

make menuconfig

Micro-controller Architecture: STMicroelectronics STM32
Processor model STM32F401
Bootloader Offset No bootloader (also tried 64kib with no joy)
Clock Reference 8 MHz Crystal (also tried 16 with no joy)
Communication interface (USB (on PA11/PA12))
USB ids USB Serial number from CHIPID

make

lsusb
Bus 002 Device 091: ID 0483:df11 STMicroelectronics STM Device in DFU Mode

make flash FLASH_DEVICE=0783:df11

DFU reports a successful flash.
Upon reboot the blue light on the touch probe just flashes and otherwise the unit is unresponsive and unable to be connected to from the web interface of klipper on the laptop.

I figured this out. FYI the I just had to use the X2 config file provided by Artillery which has a different connection string in [mcu] vs. what ModBot used in his. X2 Config Source here:

My process was as follows;

build linuxmint install per ModBot’s excellent tutorial.

Put X2 config found in the Artillery link above in ‘printer.cfg’ and upload to klipper web GUI.

Run “make menuconfig” and select the STM32F401 with “No bootloader” and USB (on PA11/PA12) and not enable extra low-level configuration options.

run “make”

boot your X2 printer with jumper between 3.3V and Boot0 pins.

run “lsusb” and verify ‘us 002 Device 014: ID 0483:df11 STMicroelectronics STM Device in DFU Mode’ is present.

run “make flash FLASH_DEVICE=0483:df11”. Ignore the dfu-util: can’t detach error, it is a non-factor.

Go back to web gui, tell Klipper to Restart, see successful connection.

drink a beer.