ESP32-P4 welding positioner controller – LVGL 9.6, 800×480 touchscreen and PC simulator

Hi,

I’ve been working on an open-source touchscreen controller for my DIY TIG/MIG welding positioner, built around an ESP32-P4 and LVGL 9.6.

The hardware target is the GUITION JC4880P443C board:

  • ESP32-P4

  • 4.3" capacitive touchscreen

  • 800×480 landscape UI

  • ST7701S display

  • GT911 touch controller

The controller drives a NEMA 23 stepper motor through a PUL/DIR driver and is intended to be used as the main control panel for a single-axis welding rotator.

The LVGL interface currently includes:

  • Main machine control screen

  • Continuous, Jog, Pulse and Step modes

  • RPM and workpiece diameter controls

  • 16 saved programs

  • Setup wizard

  • Guided 360° calibration

  • Motor configuration

  • E-stop and driver-fault states

  • Touch diagnostics

  • Display/settings pages

  • Idle screen saver

  • Status and warning dialogs

One of my main goals was to keep the UI and control logic reusable outside the ESP32 hardware.

Because of that, I also built a Windows x64 simulator that runs the actual LVGL interface and a large part of the production control code with simulated hardware.

This has been particularly useful for UI development because I can test screen layout, dialogs, state transitions and program/settings handling on the PC before flashing the ESP32-P4.

The project currently uses:

  • LVGL 9.6

  • Arduino / ESP-IDF

  • PlatformIO

  • FastAccelStepper

  • ESP32-P4

  • Native/PC simulator

The UI has gone through several redesigns. The current version uses a relatively flat industrial interface because I wanted it to remain readable from a distance and usable with gloves in a workshop environment.

The real machine also has physical controls alongside the touchscreen, including a potentiometer, direction switch and physical E-stop.

There is still work I want to do on the UI, so feedback from people with more LVGL experience would be very useful, particularly around:

  • screen/widget architecture

  • reducing unnecessary redraws

  • memory usage on ESP32-P4

  • reusable component structure

  • navigation/state handling

  • anything in the UI that could be simplified

Source code, screenshots, firmware and documentation:

There is also a prebuilt Windows simulator in the GitHub releases if anyone wants to try the interface without the hardware.

A short hardware demo is linked from the README as well.

Feedback and criticism are very welcome.

Here is the current Continuous Rotation screen.
Still refining the UI, so any feedback on the layout, readability or controls is welcome.

It looks really great! It seems like Clade design. If it really is I wonder what was your experience with it. Usually we hear that it know LVGL very well, but it requires several iterations to get to the good result.

Thanks! It’s not Clade. The design has actually been developed over a long time using several different AI models and a lot of manual iteration.

I’ve used ChatGPT, Claude, GLM and others at different stages, comparing ideas, refining layouts, changing interaction patterns, and then adapting everything specifically for LVGL and the 800×480 ESP32-P4 display.

So the final result is not really from one AI prompt or one model. It has taken many iterations, and in my experience that is the important part: AI can understand LVGL quite well, but getting a result that is both visually good and practical on the actual hardware still takes a lot of back-and-forth and refinement.

A short update: the controller is now at v2.4.1, still on LVGL 9.6.0. These are the changes on the LVGL side since my last post here:

  • Every screen was rebuilt in v2.4.0 for gloved, at-a-glance use. The header is a filled status pill, and on Pulse, Step and Jog one button shows Start while idle and Stop as soon as anything moves.
  • Touch under TIG HF start: a failed GT911 read during a held press used to report RELEASED, so LVGL fired a click and hit-tested again. The read callback now keeps the press for up to 150 ms after the last good read. After that it calls lv_indev_wait_release(), so the jog stops and no click fires.
  • Every button labelled Stop also listens for LV_EVENT_PRESSED, so a stop does not depend on a clean release.
  • Open input panels and the Step keypads close while the control status is stale, so Stop stays visible.

The same screens still run in the Windows SDL simulator, with self-tests and a layout audit in CI. Screenshots below are simulator captures, not photos of the screen.

Main screen
Fault screen

Release: Release v2.4.1 - Welding Positioner Controller · catorendal-a11y/DIY-Welding-Positioner-ESP32-P4 · GitHub
Project website: DIY Welding Positioner

These Stop buttons and the E-STOP act through firmware and the driver ENA input. They do not cut motor power, and I have not measured stop time.

Question: is holding a press for 150 ms after a failed indev read a sound approach, or is there a better hook in the indev API for this?

excellent work! I used AI to help with my screens, Grok, Gemini, Leo and Deepai. Amazing how they spit out the code. but I’ve had to correct them more than once! sometimes they send you in a circle.