Petrel – Bringing Ender 3 V2 Displays to Klipper: DWIN and DACAI (DACAI Testers Wanted)

Hi everyone,

I’d like to introduce Petrel, an open-source interface that brings the original Ender 3 V2 DWIN T5UIC1 display back to life with Klipper.

Simple. Affordable. Functional. Modern.

Latest version: v5.0.0

GitHub: GitHub - sezgynus/Petrel: Open-source local interface for Klipper using the original Ender 3 V2 DWIN T5UIC1 display, with printer controls, bed leveling and Happy Hare MMU integration. · GitHub

Why Petrel?

After switching my Ender 3 V2 to Klipper, the original display became unusable. I wanted to keep using it for everyday operations without constantly reaching for my phone or opening Mainsail.

Petrel runs on a Raspberry Pi, communicates with Moonraker, and controls the original display through UART and its rotary encoder.

The new v5.0.0 introduces the Graphite theme along with rendering optimizations for smoother navigation and more responsive screen updates.

Features

Printing and live tuning

Browse folders, preview G-code thumbnails and metadata, start prints, and control ongoing jobs.

During printing, adjust speed, flow, temperatures, fan, Z-offset, pressure advance and other supported settings directly from the encoder.

Printing and tuning demonstration

Movement and calibration

Home and move axes, use Live Jog, edit temperature presets and access runtime motion settings.

The Leveling menu includes Bed Mesh calibration and visualization, Screws Tilt Adjust, and Probe Calibration.

Happy Hare MMU and Spoolman

Petrel includes optional Happy Hare and Spoolman integration, with gate colors, filament information, remaining spool percentages and a live filament-path visualization.

Control tool changes, loading/unloading, gates, tool mapping, EndlessSpool, recovery and more.

MMU is completely optional. Unsupported features are automatically hidden based on the printer’s configuration.

Display and power controls

Adjust display brightness, idle dimming, sound settings and supported case lighting.

Petrel also supports printer power control through Moonraker, including a long-press power-off shortcut with confirmation.

Power control demonstration

System information and updates

View network, Raspberry Pi, MCU and software information directly on the LCD.

Petrel also supports built-in updates through Moonraker Update Manager, accessible from the Info menu.

Installation and compatibility

Petrel supports compatible DWIN T5UIC1 displays and requires a Raspberry Pi or Linux SBC with UART/GPIO, Klipper and Moonraker.

Please check your display variant before installing; DWIN, DACAI and TJC hardware are not interchangeable.

Petrel is open-source under GPL v3.0 and includes a DWIN emulator and regression tests for development.

I use it on my own printer, but I’d love to see it tested with other compatible displays and printer configurations.

Feedback, bug reports and contributions are welcome!

GitHub: GitHub - sezgynus/Petrel: Open-source local interface for Klipper using the original Ender 3 V2 DWIN T5UIC1 display, with printer controls, bed leveling and Happy Hare MMU integration. · GitHub

I am in the process of converting my old Ender 3v2 to something else and was having quite some issues getting the old solution on which you have built to work. Yours works like a charm!

With your solution I also had some difficulties but was able to overcome them. For future reference:

Also install the following packages:

  • liblgpio-dev
  • swig

Without these lgpio will not build.

The repository that you refer to for the cable uses other pins than Petrel has set as default, easy to configure using the provided config script. In hindsight I see that you mention this in the repository…

In raspi-config I had to disable both serial connection and hardware for the /dev/ttyAMA0 to be available.

All in all, great stuff! Thanks a bunch!

First of all, thank you so much for testing Petrel and taking the time to share your feedback! I really appreciate it.

You’re absolutely right about the missing dependencies. I’ll add liblgpio-dev and swig to the installation procedure. My development and testing environment already has quite a few packages installed, so this dependency issue slipped through my testing. Would you mind opening an issue in the repository for this? That would be really helpful!

Also, I wanted to give you an early heads-up about something I’m currently working on.

I’m developing a completely new UI theme for Petrel. Unlike the current version, this new theme will permanently replace the icon library stored in the DWIN display’s non-volatile memory.

Since you seem to be an early adopter who enjoys experimenting with new developments, I thought I’d warn you about this in advance.

If you install the new themed version from its development branch, the visual resources stored on your DWIN display will be overwritten. Reverting to the original appearance would require flashing the original DWIN firmware again.

This version hasn’t been merged into master yet, which is why I haven’t included this warning in the README files.

Before merging it into master, I’ll either document this behavior clearly so users know what to expect, or perhaps provide a restoration script in the repository that can restore the original visual resources automatically, without requiring users to manually reflash the original firmware.

If you’d like to try the new theme, or just take a look at how it looks and works without installing it, you can check out the documentation in the feature/graphite-theme branch.

Any feedback or suggestions would be greatly appreciated. Thanks in advance!

And thanks again for your support. It’s great to see Petrel being used and tested by others!

One last thing I’d like to ask: Could you give me a brief overview of your printer setup, including the hardware, software, and features you have configured?

It would be really helpful to know which configurations and features have been tested by another user and are working without issues.

Some UI features in Petrel are automatically detected and displayed based on what’s available in the user’s setup. MMU controls are one example of this.

Knowing a bit more about your setup would help me understand which parts of Petrel have already been successfully tested in a different environment. Thanks again!

I think I have just created a pull request. I am not well versed with github.

I have to say, your theme looks excellent. I think that I will install this at some point in the future :slight_smile:

My current setup is nothing more than a Raspberry Pi, Creality 4.2.2 board, the old screen and of course a power supply. The next steps will be to build a printer around it which will be a core XZ printer without MMU functionality.

Thanks for the PR, I appreciate your contribution!

Just a quick update: the new Graphite theme is now available on the master branch as part of Petrel v5.0.0. This release also includes rendering performance improvements for a smoother and more responsive UI.

If you already have Petrel installed, you can update directly using the Update button in the Info menu.

Good luck with your Core XZ build! Looking forward to hearing your feedback when you get it running.

Hi everyone,

Petrel v6.0.0 is now available!

The biggest addition is a new Maintenance menu, bringing guided hardware checks, diagnostics and maintenance reminders directly to the original Ender 3 V2 display.

The idea is to make checking and maintaining your printer more accessible from the encoder, with preparation instructions, clear results and useful measurements.

The menu has four main sections:

  • Care schedule: Create maintenance reminders for supported components, set your own service intervals and record completed maintenance.
  • Check printer: Run guided checks for cooling, heating, movement, probes, filament handling, vibration and supported outputs.
  • Diagnostics: Read system and hardware information, review recorded usage and check history, and export diagnostic reports.
  • Recommendations: Review findings grouped by device, with explanations and relevant follow-up checks.

A few examples of what you can do:

  • Check fan operation and speed response, including an iterative fan startup PWM test.
  • Measure heater warmup, heating rate, temperature overshoot, stability and cooling response.
  • Check endstops, motor movement and measured axis travel.
  • Test probe response and repeatability.
  • Access supported PID, endstop phase and Input Shaper calibration workflows.
  • Check filament sensors, extrusion, LEDs, the buzzer, encoder and display.

Heating checks, for example, collect several measurements from one heating/cooling cycle and present the results with explanations and optional details.

Available entries depend on the printer’s configuration and supported hardware, so different printers will show different options. These checks are not tied to my printer’s component names.

Checks run while the printer is idle and require explicit confirmation before operating hardware. Preparation, measurements and user observations are presented as separate steps. Everyday probe-offset, screw-adjustment and bed-mesh tools remain in Leveling.

The diagnostics screens present readings as reports, with labeled values, units and pages for longer results.

These screenshots illustrate the interface with example data; available checks and readings depend on your setup.

The Maintenance interface follows the Graphite theme, with scrolling care plans and updates focused on the screen regions that change.

I’ve been testing these workflows on my own printer, and feedback from other configurations would be especially helpful. If you try them, please share your setup, which checks are available and anything that behaves unexpectedly.

Existing installations can update through Info → Update.

GitHub · Maintenance guide · More screenshots

Thanks again to everyone testing and contributing!

Hi everyone,

Petrel v6.1.0 is now available!

This release builds on the Maintenance menu introduced in v6.0.0. The biggest improvement is usage-based maintenance tracking, allowing reminders to follow recorded printer activity instead of relying only on calendar intervals.

The idea is simple: different components have different maintenance needs, and their usage can be more meaningful than just the number of days since their last service.

What’s new?

Component usage tracking

Petrel can now record and display several types of component usage:

  • X/Y/Z axis travel: Cumulative Cartesian movement distance.
  • Sensor activations: Event-based counters for supported endstops, probes and filament sensors.
  • Component ON time: Sampled operating hours for supported fans, heaters, LEDs and digital outputs.
  • Printing time: Recorded printing hours for maintenance scheduling.
  • Filament consumption: Moonraker’s native recorded filament usage.

Axis travel and sensor event counting use an optional Klipper extra. Sensor events are captured through callbacks rather than periodic polling.

More flexible maintenance reminders

Care schedule now supports different interval types depending on the selected component.

For example, you can:

  • Schedule X/Y axis maintenance after a specified travel distance.
  • Inspect an endstop after a certain number of recorded activations.
  • Schedule fan maintenance based on operating hours.
  • Create nozzle, hotend and filament-feed reminders based on recorded filament consumption.

Filament-based reminders use Moonraker’s print history and are currently offered for single-extruder configurations.

Petrel also provides editable suggested inspection intervals for different component classes. These are starting points, not manufacturer-certified component lifetimes.

New usage and sensor diagnostics

The Usage and history screens now display recorded component activity, including axis travel, operating hours and sensor events.

Sensor diagnostics have also been expanded with individual status reports for supported configured sensors.

A look at the new screens

Maintenance reminder options

Recorded component usage

Other improvements

This release also includes several UI refinements, improved numeric display handling, more detailed maintenance documentation and additional regression coverage.

As before, available features depend on your printer’s configuration. Unsupported measurements aren’t invented, and unavailable tracking sources pause existing reminders rather than reporting misleading zero values.

Recorded usage starts when tracking becomes available. It is not a measurement of physical wear or the component’s entire lifetime.

Updating

Existing installations can update through Info → Update while the printer is idle.

To enable the optional Klipper-side axis travel and sensor event counters, run ./configure.sh and select the axis travel counters option. Existing installations are not automatically reconfigured. Restart Klipper while idle after enabling the extra.

GitHub: GitHub - sezgynus/Petrel: Open-source local interface for Klipper using the original Ender 3 V2 DWIN T5UIC1 display, with printer controls, bed leveling and Happy Hare MMU integration. · GitHub

v6.1.0: GitHub - sezgynus/Petrel at v6.1.0 · GitHub

Component usage guide: Petrel/docs/maintenance-usage.md at v6.1.0 · sezgynus/Petrel · GitHub

More screenshots: Petrel/docs/screenshots.md at v6.1.0 · sezgynus/Petrel · GitHub

I’ve been testing these features on my own printer, but I’d be especially interested in feedback from other setups, particularly different motion systems, sensors and extruder configurations.

If you’re using Petrel, please let me know how the new usage tracking and maintenance reminders work for you.

Thanks again to everyone testing and contributing!

Hi everyone,

Petrel v7.0.0 is now available!

The biggest addition is NFC support, bringing Spoolman tag assignment, Happy Hare gate selection and a dedicated emergency-stop card directly to the original Ender 3 V2 display.

The idea is to make everyday spool management easier at the printer: scan a card, choose a gate with the encoder, and confirm.

What’s new?

NFC and Spoolman spool management

You can now browse your Spoolman inventory from Petrel, inspect a spool’s manufacturer, filament name, material and color, and link an NFC card or tag to it.

If a tag already belongs to another spool, Petrel shows the existing and proposed assignments and asks for confirmation before moving it.

Spool details and tag enrollment

Scan a spool to assign an MMU gate

Scanning a linked tag opens a visual gate selector. The scanned spool appears in its filament color, accompanied by its manufacturer, name and material.

Turn the encoder to move the spool between gates, then press to assign it through Happy Hare. The spool lands in the selected gate only after the assignment has been confirmed.

This assigns the spool ID; it does not load filament or start motor movement.

Emergency-stop card and phone sharing

You can register a dedicated emergency-stop card. Presenting it sends Klipper an emergency-stop request without waiting for another confirmation and plays a distinctive audible alert.

Compatible readers can also share the project URL with a phone through NFC. Reader configuration and connection testing are available from the display.

NFC remains optional and experimental. My physical testing has focused on the PN532.

An extra serial port from the DWIN display

The panel’s auxiliary UART can now be exposed as /dev/ttyDWIN0, allowing applications to access connected serial devices through standard Linux interfaces.

This is how the NFC reader can connect through the display’s auxiliary port. The feature is optional, uses a native C transport broker, and remains available when the Petrel UI is stopped.

The auxiliary port shares the display’s physical communication link, so throughput is limited by that shared connection.

Independent hardware PWM buzzer

Petrel now drives the buzzer directly through Raspberry Pi hardware PWM. Display feedback no longer depends on Klipper, and the emergency-card alarm can continue sounding after Klipper enters shutdown.

An optional Klipper extra preserves existing SET_PIN PIN=Buzzer commands, so macros and Petrel notifications can share the same buzzer.

Other improvements

Back navigation now sits consistently in the title bar, freeing up a content row. Menus open with Back selected, making it easier to enter and leave menus quickly.

Installation options are now organized in a Kconfig menu through ./configure.sh. This release also includes NFC animations, a refined connection indicator, rendering and icon-library optimizations, and more reliable settings persistence.

The screenshots above illustrate the interface with example data. Available features depend on your reader, printer configuration and installed integrations.

Updating

Existing installations can update through Info → Update while the printer is idle.

Run ./configure.sh to configure optional NFC, auxiliary UART and buzzer features. If migrating from a Klipper-controlled buzzer, follow the configuration changes in the installation guide before restarting Klipper.

GitHub · v7.0.0 · User guide · More screenshots

I’ve been testing these features on my own printer, and I’d be especially interested in feedback from other NFC readers and MMU configurations.

Thanks again to everyone testing and contributing!

I have just updated mine to the latest version and I must say, it looks great!

Also being able to update directly from the display is awesome!

DACAI support is now on Petrel’s master branch

Hi everyone,

DACAI display support is now available on Petrel’s master branch. If you installed the DACAI test branch, follow the one-time migration steps below while the printer is idle. Feedback from more panels and firmware versions is welcome.

A big thank you to xCollxn, who developed the support, tested it on their own Ender 3 Max Neo, and worked through the review feedback with me. I don’t have a DACAI panel myself, so these contributions and your feedback are especially valuable.

You don’t need to be a developer to help. Trying the menus and telling us what works—or sharing a photo of something that looks wrong—is useful!

Before you start

You need a working Klipper/Moonraker setup and a correctly connected DACAI display. Similar-looking Creality displays can use different hardware; check the DACAI identification and firmware guide if you are unsure. Testing so far has focused on a Max Neo DACAI panel, revision 1.5, with official Creality display firmware.

For wiring and Raspberry Pi serial setup, use the installation guide, then use the commands below to install or update Petrel.

Install while the printer is idle. Petrel writes its artwork to the display’s storage on first startup. Do not install DWIN_SET files or DWIN fonts on a DACAI display. Use the DACAI guide for any display firmware questions.

1. Install or update Petrel

Open an SSH terminal to your Raspberry Pi or Klipper computer, for example using PuTTY. Run these commands there, not in the Mainsail/Fluidd G-code console. Copy each line and press Enter. If a command reports an error, stop and share the message here.

If Petrel is not installed yet:

cd ~
git clone https://github.com/sezgynus/Petrel.git
cd ~/Petrel
./install.sh

If Petrel is already installed in ~/Petrel, including on the former DACAI test branch: back up your settings first, then run:

cd ~/Petrel &&
git fetch origin &&
git switch master &&
git pull --ff-only origin master &&
./install.sh &&
sudo systemctl restart Petrel.service

If Git reports local changes or an existing folder, don’t delete anything—ask here and we can help.

2. Select your display

On a new installation, the settings menu opens during installation. On an existing installation, run cd ~/Petrel and ./configure.sh to check or change the panel type. If you already configured DACAI on the test branch, your saved settings carry over.

  • Open Display panel, highlight Panel type, and press Enter.
  • Use the arrow keys to choose DACAI for a DACAI display or DWIN T5UIC1 for a DWIN display. Press Enter to confirm. DWIN is the default.
  • For DACAI, leave DACAI host UART speed at 115200 for your first test.
  • Check that the serial port and encoder pins match your wiring. Press S to save, Q to exit, and confirm Apply saved configuration.

The first startup uploads the artwork automatically and may take around a minute. Let it finish. A microSD card is not needed for this artwork upload; some older panel firmware may still need updating as explained in the DACAI guide.

Future updates: Moonraker’s Update Manager in Mainsail/Fluidd and the Info menu on the Petrel display now follow master for both DACAI and DWIN. See the installation guide’s update section for manual updates and rollback.

The DWIN display’s extra serial-port feature is not supported on DACAI. NFC readers connected directly to the Raspberry Pi can still be used.

What should I test?

Start with the basics: startup, turning and pressing the knob, menus, icons, temperatures, brightness, the file list and print previews. Tell us if anything is missing, looks wrong, feels slow, or stops responding. Reports that everything works are welcome too!

How to report a problem

Reply here, or open a GitHub issue. Please include:

  • Your printer model and display type/revision, if known.
  • What you were doing, what you expected, and what happened instead.
  • A photo or short video for display problems.
  • Any error message shown during installation.

If possible, run these two commands in the same SSH terminal and include the output. The first identifies your Petrel version; the second shows recent Petrel messages:

git -C ~/Petrel rev-parse --short HEAD
journalctl -u Petrel.service -n 100 --no-pager

Remove passwords or API keys before sharing logs. If you don’t know how to get these details, just describe the problem and we’ll help you from there.

Thanks to everyone willing to try it! Your feedback will help us make DACAI support reliable across more panels and firmware versions.