2024-01-17 09:25:57 +01:00
# Artillery SideWinder X2
2024-01-23 18:55:49 +01:00
1. [Klipper Configuration ](#klipper-configuration )
2024-02-08 21:24:18 +01:00
2. [Octoprint backup archive ](#octoprint-backup-archive )
3. [Ultimaker Cura configuration ](#ultimaker-cura-configuration )
4. [Octoprint specific configuration ](#octoprint-specific-configuration )
5. [Filament set up ](#filament-set-up )
2024-03-01 19:03:57 +01:00
6. [Klipper firmware update ](#klipper-firmware-update ) (Printer & ADXL345 accelorometer)
2024-03-30 03:46:46 +01:00
7. [OctoKlipper: Auto-reconnect printer after power on ](#octoklipper-auto-reconnect-printer-after-power-on )
8. [Resources / Links ](#resources--links )
2024-01-23 18:55:49 +01:00
2024-02-08 20:42:34 +01:00
# Octoprint backup archive
[2024-02-08] [ASWX2-backup-20240208-181211.zip ](octoprint-cfg-bkp/ASWX2-backup-20240208-181211.zip )
2024-01-23 18:55:49 +01:00
# Klipper Configuration
2024-01-17 09:25:57 +01:00
2024-01-17 18:46:04 +01:00
* Klipper [installation ](https://www.klipper3d.org/Installation.html ) documentation
2024-01-17 18:06:55 +01:00
* Klipper [printer.cfg ](klipper-cfg-files/printer.cfg ) file
* Klipper [macros.cfg ](klipper-cfg-files/macros.cfg ) file
2024-01-16 23:31:17 +01:00
2024-01-23 18:55:49 +01:00
# Ultimaker Cura configuration
2024-01-16 23:31:17 +01:00
2024-01-23 18:55:49 +01:00
## Cura Printer configuration
2024-01-16 23:47:16 +01:00
| Printer | Extruder |
|---------|----------|
2024-01-17 18:06:55 +01:00
|  |  |
2024-01-16 23:47:16 +01:00
2024-01-23 18:55:49 +01:00
## Start G-code
2024-01-16 23:31:17 +01:00
```
; 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}
```
2024-01-23 18:55:49 +01:00
## End G-code
2024-01-16 23:31:17 +01:00
```
END_PRINT
2024-01-17 00:12:15 +01:00
```
2024-01-23 18:55:49 +01:00
## Print profiles
2024-01-17 10:22:55 +01:00
* [Standard Quality ](cura-profile/ASWX2%20-%20Standard%20Quality.curaprofile )
* [Dynamic Quality ](cura-profile/ASWX2%20-%20Dynamic%20Quality.curaprofile )
* [Low Quality ](cura-profile/ASWX2%20-%20Low%20Quality.curaprofile )
* [Super Quality ](cura-profile/ASWX2%20-%20Super%20Quality.curaprofile )
2024-01-23 18:55:49 +01:00
# Octoprint specific configuration
## Bed Visualizer plugin configuration
2024-01-17 22:17:19 +01:00

2024-01-17 22:13:55 +01:00
```
G28
BED_MESH_CALIBRATE
@BEDLEVELVISUALIZER
BED_MESH_OUTPUT
```
2024-01-23 18:55:49 +01:00
# Filament set up
## PLA
2024-01-17 00:12:15 +01:00
2024-01-17 09:22:11 +01:00
| Brand | Filament desc | Printing temp | Build Plate temp | Retractation Distance |
|-----------|---------------|---------------|------------------|-----------------------|
2024-03-30 03:40:26 +01:00
| Geeetech | Black | 200°C | 60°C | 0.75mm |
| Geeetech | White | 200°C | 60°C | 0.75mm |
2024-01-17 18:23:06 +01:00
| Geeetech | Silk Silver | 205°C | 60°C | 0.75mm |
2024-01-17 09:22:11 +01:00
2024-01-23 18:55:49 +01:00
## PETG
2024-01-17 09:22:11 +01:00
| Brand | Filament desc | Printing temp | Build Plate temp | Retractation Distance |
|-----------|---------------|---------------|------------------|-----------------------|
2024-01-17 09:41:07 +01:00
| Geeetech | -- | -- | -- | -- |
2024-01-23 18:55:49 +01:00
# Klipper firmware update
2024-09-04 14:51:55 +02:00
## Last update
Last update done: 2024-09-04 \
Installed version: commit 08a1c9f12760ee6d89db2b82e76c7d93453212db
2024-03-01 19:03:57 +01:00
## Printer
### Printer preparation
2024-01-23 18:55:49 +01:00
1. Power off the printer
2024-01-23 18:43:24 +01:00
2. Unplug the electrical wall socket
3. Unplug the USB cable labelled `OPERATION` from printer
4. Set the top switch to `UPDATE` position \

5. Plug the USB cable labelled `UPDATE` to the printer
2024-03-01 19:03:57 +01:00
### Firmware build and update
2024-01-23 18:43:24 +01:00
1. SSH to the ASWX2 Raspberry
2024-01-23 20:19:24 +01:00
2. Stop Klipper service
```
2024-03-01 19:03:57 +01:00
sudo service klipper stop
2024-01-23 20:19:24 +01:00
```
3. Browse to Klipper directory:
2024-01-23 18:43:24 +01:00
```
2024-03-01 19:03:57 +01:00
cd ~/klipper
2024-01-23 18:43:24 +01:00
```
2024-01-23 20:19:24 +01:00
4. Pull the last version of the Klipper firmware from Github:
2024-01-23 18:43:24 +01:00
```
2024-03-01 19:03:57 +01:00
git pull
2024-01-23 18:43:24 +01:00
```
2024-01-23 20:19:24 +01:00
5. Clean up working directory before building firmware
```
2024-03-01 19:03:57 +01:00
make clean
2024-01-23 20:19:24 +01:00
```
6. Check the firmware build configuration
2024-01-23 18:43:24 +01:00
```
2024-03-01 19:03:57 +01:00
make menuconfig
2024-01-23 18:43:24 +01:00
```

2024-01-23 20:19:24 +01:00
7. Build the firmaware:
2024-01-23 18:43:24 +01:00
```
2024-03-01 19:03:57 +01:00
make
2024-01-23 18:43:24 +01:00
```
2024-01-23 20:19:24 +01:00
8. Check printer's Ruby board is in DFU mode and can be updated
2024-01-23 18:43:24 +01:00
```
2024-03-01 19:03:57 +01:00
lsusb
2024-01-23 18:43:24 +01:00
```

2024-01-23 20:19:24 +01:00
9. Note the Ruby board device ID. In example above: `ID: 0483:df11`
2024-01-23 18:43:24 +01:00
2024-01-23 20:19:24 +01:00
10. Flash the new firmware to the printer's Ruby board using the above device ID:
2024-01-23 18:43:24 +01:00
```
2024-03-01 19:03:57 +01:00
make flash FLASH_DEVICE=0483:df11
2024-01-23 18:43:24 +01:00
```

2024-01-23 20:19:24 +01:00
11. Restart Klipper service
```
2024-03-01 19:03:57 +01:00
sudo service klipper start
2024-01-23 20:19:24 +01:00
```
12. Check Klipper service is properly restarted
```
2024-03-01 19:03:57 +01:00
sudo service klipper status
2024-01-23 20:19:24 +01:00
```

2024-03-01 19:03:57 +01:00
### Switch back printer to operation mode
2024-01-23 18:43:24 +01:00
1. Unplug the USB cable labelled `UPDATE` from printer
2. Set the top switch to `OPERATION` position \

3. Plug the USB cable labelled `OPERATION` to the printer
2024-01-23 18:55:49 +01:00
4. Plug the electrical wall socket
2024-01-23 18:43:24 +01:00
2024-03-01 19:03:57 +01:00
## 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 ](https://www.klipper3d.org/Measuring_Resonances.html#software-installation )
### Firmware configuration and build
1. Configure the firmaware:
```
cd ~/klipper
make clean
make menuconfig
```

2. 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
```

3. Flash the firmware
```
make flash FLASH_DEVICE=2e8a:0003
```
Once flashed, the board will automatically reboot and goes back in operation mode.
2024-03-30 03:40:26 +01:00
# OctoKlipper: Auto-reconnect printer after power-on
[Source ](https://arnav.jain.se/2020/auto-restart-klipper-when-ender3-connected-to-pi/ ) 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
```

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

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
```
2. 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
```
2024-01-23 18:55:49 +01:00
# Resources / Links
2024-01-17 09:41:07 +01:00
* [Runout sensor bracket SIDEWINDER X2 by LeLudoLAb - Thingiverse ](https://www.thingiverse.com/thing:5027268 )
2024-03-30 04:01:48 +01:00
* [Schéma pinout Artillery Ruby v1.2 (Genius Pro, Sidewinder X2, Hornet) ](ruby-board-pinout-schema.md )
2024-01-17 09:41:07 +01:00
* [How to install Klipper on ASWX2 - List of links (Shaarli) ](https://shaarli.igox.org/shaare/y5m3Bg )
* [[SW X2] Renforts axe Z - Tutoriels et améliorations pour Artillery - Forum pour les imprimantes 3D et l'impression 3D](https://www.lesimprimantes3d.fr/forum/topic/44553-sw-x2-renforts-axe-z/)
* [[Tuto] Remplacer 3DTouch Artillery par un vrai BLTouch - Tutoriels et améliorations pour Artillery - Forum pour les imprimantes 3D et l'impression 3D](https://www.lesimprimantes3d.fr/forum/topic/46506-tuto-remplacer-3dtouch-artillery-par-un-vrai-bltouch/#comment -484959)
* [Améliorations Sidewinder à imprimer ](https://www.abrège.fr/post/ameliorations-sidewinder-x2-a-imprimer )
* [Aide et ressources en français pour imprimantes 3D Artillery ](https://docarti.fr/ )