Want to run Klipper on your Artillery x3 Plus/Pro? And still want to be able to use your Artillery x3 Plus/Pro LCD touch screen?
Take a look at this python service for the Artillery x3 Plus/Pro LCD! Running together with Klipper3d and Moonraker!
https://www.youtube.com/watch?v=IGhVE-ae_BE&t
When wiring your screen, you can either wire it directly to one of your Raspberry Pi / SBC availible UARTs or you can wire it through a USB to UART converter. Both options are described below, pick the option that suits your needs.
Remove the back-cover of the LCD by unscrewing the four screws.
Connect the LCD to the Raspberry Pi UART according to the table below:
| Raspberry Pi | LCD |
|---|---|
| Pin 4 (5V) | 5V (Black wire) |
| Pin 6 (GND) | GND (Red wire) |
| GPIO 14 (TXD) | RX (Green wire) |
| GPIO 15 (RXD) | TX (Yellow wire) |
Quite simple, just remember to cross RX and TX on the LCD and the USB/UART HW. | USB <-> UART HW | LCD | | ————— | —————– | | 5V | 5V (Black wire) | | GND | GND (Red wire) | | TXD | RX (Green wire) | | RXD | TX (Yellow wire) |
Update Successed!Note: You can safely skip this section if you wired the display through a USB to UART converter
Disable Linux serial console
By default, the primary UART is assigned to the Linux console. If you wish to use the primary UART for other purposes, you must reconfigure Raspberry Pi OS. This can be done by using raspi-config:
sudo raspi-config.For full instructions on how to use Device Tree overlays see this page.
In brief, add a line to the /boot/config.txt file to apply a Device Tree overlay.
dtoverlay=disable-bt
Make sure Klipper’s API socket is enabled by reading the Klipper arguments.
Command:
cat ~/printer_data/systemd/klipper.env
Response:
KLIPPER_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/printer_data/config/printer.cfg -I /home/pi/printer_data/comms/klippy.serial -l /home/pi/printer_data/logs/klippy.log -a /home/pi/printer_data/comms/klippy.sock"
The KLIPPER_ARGS should include -a /home/pi/printer_data/comms/klippy.sock. If not add it to the klipper.env file!
The script is designed to use the /home/pi directory and has root privileges.
Therefore, if you have, or do something different, I cannot guarantee that certain features, such as automatic firmware updates, will not fail to run.
cd /home/pi
rm -rf KlipperLCD
git clone https://github.com/Vampiro1/LCD_Artillery_x3 KlipperLCD
cd KlipperLCD
./install.sh
The script is designed to automatically detect UART or USB-to-UART connections.
If you experience any connection problems, please let me know.
The console is enabled by default and can be accessed by clicking center top of the main screen or by clicking in the designated area while printing.
The console enables sending commands and will display all gcode responses and information from Klipper normally found in the console tab in Mainsail or Fluidd.
KlipperLCD also supports thumbnails! set your slicer to 300x300
Follow this guide to enable thumbnails in your slicer: https://klipperscreen.readthedocs.io/en/latest/Thumbnails/
cd /home/pi/KlipperLCD
chmod +x uninstall.sh
sudo ./uninstall.sh && cd