Files
3d-printers/artillery-sidewinder-x2

Artillery SideWinder X2

  1. Klipper Configuration
  2. Octoprint backup archive
  3. Ultimaker Cura configuration
  4. Octoprint specific configuration
  5. Filament set up
  6. Klipper firmware update (Printer & ADXL345 accelorometer)
  7. Auto-reconnect printer to Octoprint afer power on
  8. Resources / Links

Octoprint backup archive

[2024-02-08] ASWX2-backup-20240208-181211.zip

Klipper Configuration

Ultimaker Cura configuration

Cura Printer configuration

Printer Extruder
printer profile extruder profile

Start G-code

; Octolapse Plugin required parameters
; Script based on an original created by tjjfvi (https://github.com/tjjfvi)
; An up-to-date version of the tjjfvi's original script can be found
; here:  https://csi.t6.fyi/
; Note - This script will only work in Cura V4.2 and above!
; --- Global Settings
; layer_height = {layer_height}
; smooth_spiralized_contours = {smooth_spiralized_contours}
; magic_mesh_surface_mode = {magic_mesh_surface_mode}
; machine_extruder_count = {machine_extruder_count}
; --- Single Extruder Settings
; speed_z_hop = {speed_z_hop}
; retraction_amount = {retraction_amount}
; retraction_hop = {retraction_hop}
; retraction_hop_enabled = {retraction_hop_enabled}
; retraction_enable = {retraction_enable}
; retraction_speed = {retraction_speed}
; retraction_retract_speed = {retraction_retract_speed}
; retraction_prime_speed = {retraction_prime_speed}
; speed_travel = {speed_travel}

START_PRINT BED_TEMP={material_bed_temperature_layer_0} EXTRUDER_TEMP={material_print_temperature_layer_0}

End G-code

END_PRINT

Print profiles

Octoprint specific configuration

Bed Visualizer plugin configuration

Bed Visualizer plugin configuration

G28
BED_MESH_CALIBRATE
@BEDLEVELVISUALIZER
BED_MESH_OUTPUT

Filament set up

PLA

Brand Filament desc Printing temp Build Plate temp Retractation Distance
Geeetech Black 200°C 60°C 0.75mm
Geeetech White 200°C 60°C 0.75mm
Geeetech Silk Silver 205°C 60°C 0.75mm

PETG

Brand Filament desc Printing temp Build Plate temp Retractation Distance
Geeetech -- -- -- --

Klipper firmware update

Printer

Printer preparation

  1. Power off the printer

  2. Unplug the electrical wall socket

  3. Unplug the USB cable labelled OPERATION from printer

  4. Set the top switch to UPDATE position
    Switch in UPDATE position

  5. Plug the USB cable labelled UPDATE to the printer

Firmware build and update

  1. SSH to the ASWX2 Raspberry

  2. Stop Klipper service

sudo service klipper stop
  1. Browse to Klipper directory:
cd ~/klipper
  1. Pull the last version of the Klipper firmware from Github:
git pull
  1. Clean up working directory before building firmware
make clean
  1. Check the firmware build configuration
make menuconfig

Klipper firmaware build configuration

  1. Build the firmaware:
make
  1. Check printer's Ruby board is in DFU mode and can be updated
lsusb

Ruby board in DFU mode

  1. Note the Ruby board device ID. In example above: ID: 0483:df11

  2. Flash the new firmware to the printer's Ruby board using the above device ID:

make flash FLASH_DEVICE=0483:df11

Klipper firmware flash outputs

  1. Restart Klipper service
sudo service klipper start
  1. Check Klipper service is properly restarted
sudo service klipper status

Klipper service status check

Switch back printer to operation mode

  1. Unplug the USB cable labelled UPDATE from printer

  2. Set the top switch to OPERATION position
    Switch in OPERATION position

  3. Plug the USB cable labelled OPERATION to the printer

  4. Plug the electrical wall socket

ADXL345 accelorometer

Software prereqiusites

Note that resonance measurements and shaper auto-calibration require additional software dependencies not installed by default. First, run on your Raspberry Pi the following commands:

sudo apt update
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev libopenblas-base

Details on Klipper documentation

Firmware configuration and build

  1. Configure the firmaware:
cd ~/klipper
make clean
make menuconfig

ADXL345 Firmare config

  1. Build the firmware:
make

Firmware flash

  1. Set the ADXL345 board in DFU mode by plugin it to the USB cable while maintaining the switch down

  2. Check that the board is actually in DFU mode

lsusb

ADXL345 board in DFU mode

  1. Flash the firmware
make flash FLASH_DEVICE=2e8a:0003

Once flashed, the board will automatically reboot and goes back in operation mode.

OctoKlipper: Auto-reconnect printer after power-on

Source by Arnav Jain.

Start off by accessing Octopi using ssh.
Then create the 98-klipper.rules file in the /etc/udev/rules.d/ folder:

ssh octoprint
sudo touch /etc/udev/rules.d/98-klipper.rules

Retreive idVendor and idProduct for the Klipper MCU:

  1. Retrieve Klipper MCU ID
lusb

Find Klipper MCU ID

  1. Retrieve idVendor and idProduct using the Klipper MCU ID
lsusb -v -d 1d50:614e | grep id

idVendor and idProduct

Then add the following text into the 98-klipper.rules file just created:

  1. Edit the 98-klipper.rules file
sudo nano /etc/udev/rules.d/98-klipper.rules
  1. Add text (remove the 0x at the begining of the IDs)
## rule to restart klipper when the printer is connected via usb
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="614e", ACTION=="add", RUN+="/usr/bin/sudo -u pi /bin/sh -c '/bin/echo RESTART > /tmp/printer'"

Finally, re-load the udev rules:

sudo udevadm control --reload-rules

Resources / Links