<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cato Rendal</title>
    <description>The latest articles on DEV Community by Cato Rendal (@cato_rendal_ce185d1604cd5).</description>
    <link>https://dev.to/cato_rendal_ce185d1604cd5</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4174077%2Fe9af6555-ab89-4e6f-a72d-bcde2577112e.png</url>
      <title>DEV Community: Cato Rendal</title>
      <link>https://dev.to/cato_rendal_ce185d1604cd5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cato_rendal_ce185d1604cd5"/>
    <language>en</language>
    <item>
      <title>Design notes for a touch UI that controls a motor next to TIG high-frequency start</title>
      <dc:creator>Cato Rendal</dc:creator>
      <pubDate>Sun, 15 Nov 2026 20:03:37 +0000</pubDate>
      <link>https://dev.to/cato_rendal_ce185d1604cd5/design-notes-for-a-touch-ui-that-controls-a-motor-next-to-tig-high-frequency-start-ld8</link>
      <guid>https://dev.to/cato_rendal_ce185d1604cd5/design-notes-for-a-touch-ui-that-controls-a-motor-next-to-tig-high-frequency-start-ld8</guid>
      <description>&lt;p&gt;I built a welding positioner (a motorized rotator for pipe and round work) and wrote its controller: an ESP32-P4 touchscreen board, LVGL 9.6, a NEMA 23 stepper and a PUL/DIR driver.&lt;/p&gt;

&lt;p&gt;A TIG welder with high-frequency (HF) start throws a lot of RF noise. It can glitch an I2C touch controller right next to a motor that is turning a workpiece. These are six decisions in the firmware that came from that problem. Each one was checked against the code of release v2.4.1.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The cover image is a banner with an LVGL simulator capture of the main screen. It is not a photo of my machine.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbecpd0ddo69elh3flkwv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbecpd0ddo69elh3flkwv.png" alt="Main screen of the controller" width="800" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The Continuous screen. This is an LVGL simulator capture at 800 x 480, not a photo of the screen.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  1. STOP acts on touch-down
&lt;/h2&gt;

&lt;p&gt;A normal LVGL button fires on click, which means on release. With HF noise, the release may never arrive as a clean event. So every button labelled Stop also listens for the press itself. This is in &lt;code&gt;src/ui/screens.cpp&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="nf"&gt;lv_obj_add_event_cb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;btn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;LV_EVENT_CLICKED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user_data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// STOP also fires on touch-down: a held press that is lost to touch read errors (HF) must still stop.&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;strcmp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;UI_LABEL_STOP&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;lv_obj_add_event_cb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;btn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;LV_EVENT_PRESSED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user_data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This came in v2.4.1. The release notes give a second reason: the lift can no longer land on a START button that replaced STOP.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A touch read error is not a release
&lt;/h2&gt;

&lt;p&gt;The GT911 touch controller sits on I2C. A failed read during HF is a missing sample. It does not tell you the finger lifted. If the read callback reports RELEASED, LVGL fires a click on the held button, and the next good read can press whatever now sits under the finger.&lt;/p&gt;

&lt;p&gt;The callback in &lt;code&gt;src/ui/lvgl_hal.cpp&lt;/code&gt; keeps the press for a short time after the last good read. The rule is in &lt;code&gt;src/ui/test_hal_logic.h&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kd"&gt;constexpr&lt;/span&gt; &lt;span class="kt"&gt;uint32_t&lt;/span&gt; &lt;span class="no"&gt;TOUCH_FAIL_HOLD_MS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;150u&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;inline&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="nf"&gt;touch_hold_press_on_failed_read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="n"&gt;lastPressed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;uint32_t&lt;/span&gt; &lt;span class="n"&gt;nowMs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;uint32_t&lt;/span&gt; &lt;span class="n"&gt;lastGoodMs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;lastPressed&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;uint32_t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nowMs&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;lastGoodMs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="no"&gt;TOUCH_FAIL_HOLD_MS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After 150 ms the press is cancelled with &lt;code&gt;lv_indev_wait_release()&lt;/code&gt;. The jog stops and no click fires. A flag then blocks new presses until a good read shows no finger. Without it, a finger still on the glass could become a new press on the button that replaced the old one.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Fault reset never starts rotation
&lt;/h2&gt;

&lt;p&gt;In &lt;code&gt;src/control/control.cpp&lt;/code&gt;, a successful reset ends with a transition of the state machine to IDLE. Rotation needs a new start command after that.&lt;/p&gt;

&lt;p&gt;The reset has a race to handle too. A fault can latch while the reset is being processed. &lt;code&gt;safety_check_ui_reset()&lt;/code&gt; in &lt;code&gt;src/safety/safety.cpp&lt;/code&gt; reads a fault generation counter first and checks it again before and after clearing. If the counter moved, the reset returns false and the new fault stays latched. That fix is also from v2.4.1.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Heartbeats, and a clock race
&lt;/h2&gt;

&lt;p&gt;The safety task watches the other tasks. It latches a fault when the control loop stops publishing, when the input task heartbeat goes stale, or when the LVGL loop stalls for 2 seconds. It also latches HMI STALE when the touch controller fails 100 reads in a row. When one of these latches during motion, the machine goes to the E-STOP state and stops. This stop acts through firmware and the driver ENA input. It does not cut motor power, and I have not measured the stop time.&lt;/p&gt;

&lt;p&gt;The subtle part is the clock. Another task can write its timestamp between the moment the checker reads &lt;code&gt;millis()&lt;/code&gt; and the moment it loads the stamp. The stamp is then a few milliseconds ahead of &lt;code&gt;now&lt;/code&gt;, and unsigned subtraction reads that as about 49 days old. A healthy task looks dead. v2.4.0 fixed this in &lt;code&gt;src/control/input_policy.h&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="k"&gt;inline&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="nf"&gt;timestamp_within&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;uint32_t&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;uint32_t&lt;/span&gt; &lt;span class="n"&gt;stamp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;uint32_t&lt;/span&gt; &lt;span class="n"&gt;deadline&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;int32_t&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;static_cast&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;int32_t&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;stamp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="k"&gt;static_cast&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;int32_t&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;deadline&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The changelog says this rare race could stop a weld with HMI STALE or PEDAL INPUT, or drop a held jog.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Flash writes only at rest
&lt;/h2&gt;

&lt;p&gt;Saving settings to flash stalls both cores and can delay the E-STOP interrupt. So &lt;code&gt;storage_flush()&lt;/code&gt; in &lt;code&gt;src/storage/storage.cpp&lt;/code&gt; writes only in IDLE or ESTOP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kd"&gt;auto&lt;/span&gt; &lt;span class="n"&gt;atRest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nc"&gt;SystemState&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;control_get_state&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="no"&gt;STATE_IDLE&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="no"&gt;STATE_ESTOP&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It checks twice, with a 10 ms wait in between to let a start that is already being dispatched become visible. The safety task also skips its heartbeat checks while a flash write is in progress.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The same UI runs on a PC
&lt;/h2&gt;

&lt;p&gt;The simulator's CMake file compiles the firmware's own &lt;code&gt;src/ui/screens/*.cpp&lt;/code&gt;, &lt;code&gt;screens.cpp&lt;/code&gt; and &lt;code&gt;theme.cpp&lt;/code&gt; into a Windows SDL program. I use it to review screens, run UI self-tests and dump screenshots before flashing. The control, speed, storage and safety logic is covered by native tests that use fake clocks and a fake driver. The README states 480 native tests, and CI also runs the simulator self-tests and a layout audit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo9096040pazp5uc4kbg7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo9096040pazp5uc4kbg7.png" alt="Fault screen with reset blocked" width="800" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The fault screen while E-STOP is pressed. Simulator capture.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;E-STOP is not a safety relay. It acts through GPIO34, firmware and the driver ENA input. It does not cut motor power. An open E-STOP wire can read as healthy.&lt;/li&gt;
&lt;li&gt;Stop time is not measured. Calibration accuracy is not measured either.&lt;/li&gt;
&lt;li&gt;The machine has one axis and no encoder. RPM and progress are calculated.&lt;/li&gt;
&lt;li&gt;Simulator screenshots show the UI only. They say nothing about touch under HF.&lt;/li&gt;
&lt;li&gt;The release notes list known limits, for example that Pulse programs have no direction control.&lt;/li&gt;
&lt;li&gt;I flashed v2.4.1 on my machine on 2026-11-15 and tested it: motion, pedal, E-STOP and TIG HF start work. That is one machine.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This post was written by an AI agent (Claude Code) from the project repo, and every fact in it was checked against the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Project website, with the screens, wiring steps and downloads: &lt;a href="https://catorendal-a11y.github.io/DIY-Welding-Positioner-ESP32-P4/" rel="noopener noreferrer"&gt;https://catorendal-a11y.github.io/DIY-Welding-Positioner-ESP32-P4/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source and docs: &lt;a href="https://github.com/catorendal-a11y/DIY-Welding-Positioner-ESP32-P4" rel="noopener noreferrer"&gt;https://github.com/catorendal-a11y/DIY-Welding-Positioner-ESP32-P4&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Release v2.4.1, with a Windows simulator: &lt;a href="https://github.com/catorendal-a11y/DIY-Welding-Positioner-ESP32-P4/releases/tag/v2.4.1" rel="noopener noreferrer"&gt;https://github.com/catorendal-a11y/DIY-Welding-Positioner-ESP32-P4/releases/tag/v2.4.1&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo video (real hardware, earlier UI): &lt;a href="https://youtu.be/GygLl6XY-TM" rel="noopener noreferrer"&gt;https://youtu.be/GygLl6XY-TM&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Question: have you built touch input near an HF arc, and would you hold a press for 150 ms after a failed read like this?&lt;/p&gt;

</description>
      <category>esp32</category>
      <category>embedded</category>
      <category>lvgl</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Building a touchscreen macro deck on an ESP32-P4 with LVGL 9.6</title>
      <dc:creator>Cato Rendal</dc:creator>
      <pubDate>Sun, 15 Nov 2026 19:07:36 +0000</pubDate>
      <link>https://dev.to/cato_rendal_ce185d1604cd5/building-a-touchscreen-macro-deck-on-an-esp32-p4-with-lvgl-96-2l1b</link>
      <guid>https://dev.to/cato_rendal_ce185d1604cd5/building-a-touchscreen-macro-deck-on-an-esp32-p4-with-lvgl-96-2l1b</guid>
      <description>&lt;p&gt;I wanted a Stream Deck-style macro pad without paying for a Stream Deck, so I built one on a GUITION JC1060P470C. It is a 7-inch, 1024 x 600 capacitive touchscreen on an ESP32-P4. The project is called Tessera Deck. It is MIT licensed, it runs on Windows 10 and 11, and the panel UI is LVGL 9.6 on ESP-IDF 6.1.&lt;/p&gt;

&lt;p&gt;This post covers the design choices behind the panel firmware and the host protocol, for anyone building something similar on an embedded display.&lt;/p&gt;

&lt;p&gt;The cover image is a Blender render made from the CAD model of the desk console. I have no photo of a printed one yet. The panel screenshots below are not photos either: the native PC build of the real UI code drew them, and the agents screen uses sample data.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Build the UI for the PC first
&lt;/h2&gt;

&lt;p&gt;The UI code compiles natively on the PC against the same LVGL sources as the firmware. A test feeds it touch input and renders 1024 x 600 frames.&lt;/p&gt;

&lt;p&gt;A layout bug shows up in seconds, with no flashing and no cable. I can also make screenshots for the README without photographing a screen at an angle.&lt;/p&gt;

&lt;p&gt;The catch is that the native build does not exercise the display driver, the touch controller or PSRAM limits. Those still need the board. I treat the native build as the place for UI logic and the board as the place for hardware surprises.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft68mopghrkitb9zxmajs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft68mopghrkitb9zxmajs.png" alt="The widgets page: clock, date, volume, processor, graphics card, memory, network and AI agents on wide keys" width="800" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Keep the panel dumb
&lt;/h2&gt;

&lt;p&gt;The panel only draws and reports touches. A small Python host on the PC owns the USB Serial/JTAG port, runs the actions and serves the editor on 127.0.0.1. The two talk over a &lt;a href="https://github.com/catorendal-a11y/tessera-deck/blob/main/docs/PROTOCOL.md" rel="noopener noreferrer"&gt;line protocol&lt;/a&gt; at 115200 baud.&lt;/p&gt;

&lt;p&gt;Each message is one UTF-8 line. The host sends text commands or one JSON object. The panel answers, and it also sends its own events as JSON lines. A key press looks like this, copied from the protocol page at v0.9.0:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{"type":"deck_event","id":N,"button":N,"label":"…","hold":true}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;hold&lt;/code&gt; is only present for a long press. Everything else about what the key does lives on the PC. That means I can add an action without touching the firmware, and the firmware stays small.&lt;/p&gt;

&lt;p&gt;There are limits to this design. The panel reads lines of up to 1,099 bytes and ignores a longer one, so the host sends a layout in 380-character chunks and an image in 160-byte chunks. A pressed key stays highlighted until the host answers, so without a host it flashes red at once. If the PC is off, the panel keeps the last layout on screen and the keys do nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Update objects in place
&lt;/h2&gt;

&lt;p&gt;A touchscreen punishes rebuilds. If a gauge value arrived and the grid were rebuilt while you press a key, your finger would be on a new object that never saw the press, so I update in place.&lt;/p&gt;

&lt;p&gt;Now labels, colours and gauge values change on the existing LVGL objects. The grid is only rebuilt when the page or its layout changes. A key is never rebuilt under your finger.&lt;/p&gt;

&lt;p&gt;The same idea covers widgets. The host sends a title, a second line and a progress value, and the panel draws every wide key the same way. A new widget is a new host-side feature and needs no new firmware.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Treat icons as a cache problem
&lt;/h2&gt;

&lt;p&gt;Icons are the one thing that is too big to treat like text. The host sends each icon as RGBA with a CRC32 check, using these lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AD_IMG_BEGIN &amp;lt;id&amp;gt; &amp;lt;bytes&amp;gt; &amp;lt;crc32&amp;gt;
AD_IMG_DATA &amp;lt;offset&amp;gt; &amp;lt;hex&amp;gt;
AD_IMG_END
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The panel only answers at the end: &lt;code&gt;OK&lt;/code&gt;, &lt;code&gt;INVALID&lt;/code&gt; or &lt;code&gt;FULL&lt;/code&gt;. &lt;code&gt;FULL&lt;/code&gt; means the cache cannot hold the image.&lt;/p&gt;

&lt;p&gt;The cache is 8 MiB in PSRAM. When it needs room it drops the least recently used image that no key is showing. If the panel needs an image it no longer has, it sends &lt;code&gt;{"type":"image","id":"im:…"}&lt;/code&gt; and the host sends it again. Animated icons arrive as frames with a duration each.&lt;/p&gt;

&lt;p&gt;The CRC32 lets the panel answer &lt;code&gt;INVALID&lt;/code&gt; for a corrupt image instead of showing it, and a corrupt icon is more annoying than a missing one.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Let the panel answer your AI agent
&lt;/h2&gt;

&lt;p&gt;When Claude Code wants permission to run something, the question appears on the panel with Allow and Deny buttons. The agents screen also shows what Claude Code, Codex and ZCode are doing and in which project.&lt;/p&gt;

&lt;p&gt;Setup adds hooks to &lt;code&gt;~/.claude/settings.json&lt;/code&gt;. It keeps your other hooks and makes a backup first. The hook waits up to 25 seconds for a touch. If the panel is off, nobody answers in time, or the request is too long to show, Claude Code falls back to its normal dialog. Tessera never allows anything on its own. If nothing answers, you answer at the keyboard as before, so the panel cannot block your work.&lt;/p&gt;

&lt;p&gt;The screenshot below is drawn by the native PC build and uses sample data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4alwu4albcizt9bsy9u5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4alwu4albcizt9bsy9u5.png" alt="The agents screen: Claude Code asks for permission, with Deny and Allow" width="800" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Plan the memory
&lt;/h2&gt;

&lt;p&gt;The panel uses two partial draw buffers of 1024 x 240 pixels in PSRAM, one software draw unit and a 15 ms refresh period. The 6 x 3 key grid is placed by hand because the shape is fixed. Fonts are compressed. The icon cache takes its 8 MiB from the same PSRAM as the draw buffers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It runs on Windows 10 and 11 only. The host is Python and the actions are Windows actions.&lt;/li&gt;
&lt;li&gt;It supports one board. The pin setup and the screen layout are written for the JC1060P470C, so another board needs a port.&lt;/li&gt;
&lt;li&gt;There are no physical keys. You lose the feel of a real button.&lt;/li&gt;
&lt;li&gt;It is not code-signed. Windows SmartScreen may warn on first start. The release includes &lt;code&gt;SHA256SUMS&lt;/code&gt; so you can compare the zip before you run it.&lt;/li&gt;
&lt;li&gt;The agents and mixer screenshots show sample data, and the console images are renders.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the release the panel has no network and speaks only to the host over USB. The editor and the control API listen on 127.0.0.1 only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Code and releases: &lt;a href="https://github.com/catorendal-a11y/tessera-deck" rel="noopener noreferrer"&gt;github.com/catorendal-a11y/tessera-deck&lt;/a&gt; (v0.9.0)&lt;/li&gt;
&lt;li&gt;Website: &lt;a href="https://catorendal-a11y.github.io/tessera-deck/" rel="noopener noreferrer"&gt;catorendal-a11y.github.io/tessera-deck&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I would like feedback on the in-place updates and the icon cache. If you want to port it to another ESP32-P4 display, &lt;a href="https://github.com/catorendal-a11y/tessera-deck/blob/main/CONTRIBUTING.md" rel="noopener noreferrer"&gt;CONTRIBUTING.md&lt;/a&gt; says what it takes.&lt;/p&gt;

&lt;p&gt;This post was written by an AI agent (Claude Code) from the Tessera repo, and every fact in it was checked against the code. Tessera itself was also built with help from Claude Code.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>esp32</category>
      <category>embedded</category>
      <category>claude</category>
    </item>
    <item>
      <title>AI Monitor: an ESP32 touchscreen companion for Codex, Claude and more</title>
      <dc:creator>Cato Rendal</dc:creator>
      <pubDate>Sat, 10 Oct 2026 03:12:04 +0000</pubDate>
      <link>https://dev.to/cato_rendal_ce185d1604cd5/ai-monitor-an-esp32-touchscreen-companion-for-codex-claude-and-more-27oj</link>
      <guid>https://dev.to/cato_rendal_ce185d1604cd5/ai-monitor-an-esp32-touchscreen-companion-for-codex-claude-and-more-27oj</guid>
      <description>&lt;p&gt;AI Monitor puts supported AI account limits and locally recorded token activity on a small USB touchscreen. You can choose &lt;strong&gt;NOVA&lt;/strong&gt; or &lt;strong&gt;ORBIT&lt;/strong&gt;, two animated desk companions, and keep the usage dashboard visible while working on your main screen.&lt;/p&gt;

&lt;p&gt;The project is open source, built with &lt;strong&gt;LVGL 9.6 and Arduino/PlatformIO&lt;/strong&gt;, and now ships two separate firmware choices in the same repository and Windows package.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmcmoe0qv3677414kblox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmcmoe0qv3677414kblox.png" alt="NOVA and ORBIT, actual LVGL UI previews" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;These images are renders of the actual LVGL interface with synthetic data, rather than photographs of the boards.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch the two-minute overview
&lt;/h2&gt;

&lt;p&gt;Here is a short walkthrough of the project: NOVA and ORBIT, the LVGL screens, provider choices, quota windows, saved themes and the Windows host. It includes English narration, timed captions and chapters. The UI values are synthetic preview data, and the S3 port remains experimental.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/1JR9_E1lWDg" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=1JR9_E1lWDg" rel="noopener noreferrer"&gt;Watch on YouTube&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setup note:&lt;/strong&gt; if more than one matching USB board is connected, select the display’s explicit COM port instead of &lt;code&gt;auto&lt;/code&gt;, save settings, then start the host. The installed app keeps its own private configuration when moving from another folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Update: v1.17.2 — tested from erased P4 flash
&lt;/h2&gt;

&lt;p&gt;A full uninstall-and-reinstall test found two real setup defects: the old P4 factory bootloader declared 4 MB rather than the board’s 16 MB, and Windows could select npm’s Unix Codex launcher. &lt;strong&gt;v1.17.2 fixes both. Do not use v1.17.0 for a new P4 installation.&lt;/strong&gt; Existing application-only updates did not expose that bootloader defect.&lt;/p&gt;

&lt;p&gt;The exact v1.17.2 CI installer was tested with an empty AI Monitor configuration and erased physical P4 flash. Board/providers/key/USB selection and First installation were completed through the GUI; the P4 booted without a manual repair and both Codex/ZCode quotas were received. 185 Python tests, both firmware builds, native LVGL checks and Windows install/upgrade/uninstall checks passed. Factory capacity and partition validation now run before packaging and flashing.&lt;/p&gt;

&lt;p&gt;Windows binaries remain unsigned, so SmartScreen may warn. Microsoft’s earlier-file submission is not approval of this different installer. S3 remains experimental and physically untested; advanced bridge requirements are unchanged.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/catorendal-a11y/ai-monitor-p4-s3/releases/tag/v1.17.2" rel="noopener noreferrer"&gt;Download the corrected v1.17.2 installer and portable package&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Previous update: v1.17.0 — guided AI setup and verified host health
&lt;/h2&gt;

&lt;p&gt;The new Windows &lt;strong&gt;AI setup&lt;/strong&gt; tab has provider checks, Codex install/sign-in and an optional Claude quota link that can be removed without replacing a custom statusline. OpenCode now reads supported local numeric usage automatically; Copilot, Cursor and Antigravity still require an advanced numeric bridge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Host settings&lt;/strong&gt; adds USB retry, local token polling, terminal text size and start/close preferences. Process status, verified USB identity and quota readiness are shown separately. The firmware Settings help reflects the provider changes.&lt;/p&gt;

&lt;p&gt;176 Python tests, both firmware builds, native LVGL checks and packaged Windows installation/upgrade/uninstall checks passed. I also used the exact release installer and application update on my physical P4, preserving settings and confirming live Codex/ZCode quota readiness. S3 remains experimental and physically untested.&lt;/p&gt;

&lt;p&gt;The installer is still unsigned. The exact file was submitted to Microsoft for review; the decision is pending and SmartScreen may still warn. No Windows protections are disabled.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/catorendal-a11y/ai-monitor-p4-s3/releases/tag/v1.17.2" rel="noopener noreferrer"&gt;Download v1.17.2: installer, portable ZIP and SHA-256 checksums&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Previous update: v1.16.1 — explain the quota, test the installation
&lt;/h2&gt;

&lt;p&gt;The display now explains usage through &lt;strong&gt;SET &amp;gt; AI USAGE&lt;/strong&gt;. Each option shows the remaining percentage and whether the data is reported, missing, stale, updating, offline or in error. The choice is saved per provider and applies to both NOVA and ORBIT.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Codex:&lt;/strong&gt; 5 HOURS is the short-term limit; 7 DAYS is the weekly limit. The page points users to ChatGPT sign-in in the PC app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ZCode:&lt;/strong&gt; 5 HOURS / 7 DAYS are model quotas when reported; &lt;strong&gt;MONTHLY MCP&lt;/strong&gt; is a separate tool-call allowance. The page explains the user's own ZAI Coding Plan key. Monthly MCP is not a monthly token budget. The host now includes the monthly MCP row and stops labeling weekly model usage as monthly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code:&lt;/strong&gt; reported quotas need the optional statusline bridge. &lt;strong&gt;Gemini CLI:&lt;/strong&gt; recorded activity only. Other editors require a numeric bridge rather than automatic account import.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Favhy6xv7pbl3zg2vopjh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Favhy6xv7pbl3zg2vopjh.png" alt="Codex quota choices and sign-in instructions" width="800" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flaxr275l983pldyetlk2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flaxr275l983pldyetlk2.png" alt="ZCode model windows and monthly MCP allowance" width="800" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Actual LVGL UI renders with synthetic values, not photographs.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A known missing window can be selected in advance, but its percentage stays unavailable until real data arrives. Live values update while Settings is open; option identities remain stable during touches. REFRESH explicitly reloads the available rows. Alerts still monitor every window, independent of the one chosen for the companion display.&lt;/p&gt;

&lt;h3&gt;
  
  
  One installer, guided provider setup
&lt;/h3&gt;

&lt;p&gt;Run &lt;strong&gt;AI-Monitor-Setup-v1.16.1-windows.exe&lt;/strong&gt; to install the full Qt app, runtime, flasher and both firmware choices for your Windows user. No separate Python/PlatformIO installation or administrator access is required. You still choose your own board/providers and supply your own account or key; neither an AI nor a board is preselected.&lt;/p&gt;

&lt;p&gt;The Windows app has NOVA artwork, instructions for all eight AI choices, a masked key field, and persistent firmware progress/error messages. First installation requires checking the USB target and typing FLASH; application updates verify the existing display identity. Double-clicking the command-line flasher explains its role and offers to open the graphical Firmware tab. &lt;strong&gt;Closing the app after Start host succeeds leaves the independent host running in the background.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The wider AI column retains 40-pixel percentages, 20-pixel provider names and 16-pixel status text. Notifications have a 136-pixel banner, 24-pixel heading, 20-pixel body and a 60-pixel dismiss target.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verify the delivered binaries
&lt;/h3&gt;

&lt;p&gt;Validation includes &lt;strong&gt;148 Python tests&lt;/strong&gt;, native LVGL/protocol tests for both profiles, NVS checks, both firmware builds and exact packaged GUI/flasher startup. Windows smoke tests cover a clean installation, upgrade and uninstall while preserving private settings. The P4 application update and stable boot were also verified on the physical board.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits remain explicit:&lt;/strong&gt; the original Waveshare S3 is experimental and untested on physical S3 hardware. The Windows apps remain unsigned, so SmartScreen may warn; installing them does not disable Windows protection. Tested setup is not a guarantee for every Windows policy or hardware combination.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/catorendal-a11y/ai-monitor-p4-s3/releases/tag/v1.16.1" rel="noopener noreferrer"&gt;Download v1.16.1: installer, portable ZIP and SHA-256 checksums&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the robot actually follows
&lt;/h2&gt;

&lt;p&gt;The robot reacts to &lt;strong&gt;increases in recorded token counters&lt;/strong&gt;. Quota polling is a separate signal: fetching an account limit does not make the robot look busy.&lt;/p&gt;

&lt;p&gt;The first counter sample establishes a baseline. Some clients write their usage only after a request finishes, so animation can lag generation. This is an activity display, not a billing ledger or a per-token stream.&lt;/p&gt;

&lt;p&gt;Local activity adapters cover &lt;strong&gt;Codex, ZCode, Claude Code, Gemini CLI and supported OpenCode SQLite schemas&lt;/strong&gt;. Codex uses the signed-in official CLI for supported account quota, ZCode can use an optional Z.AI coding-plan key, and Claude quota can use its documented statusline bridge. Gemini supplies recorded activity only. Other selectable providers require an external numeric telemetry bridge; selecting a name does not automatically connect its editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  The interface
&lt;/h2&gt;

&lt;p&gt;Besides the companion view, the screen has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A provider dashboard and individual quota windows.&lt;/li&gt;
&lt;li&gt;Reset countdowns, manual refresh and low/critical quota warnings.&lt;/li&gt;
&lt;li&gt;Session history and last-valid values during temporary provider failures.&lt;/li&gt;
&lt;li&gt;Two robots and four saved color themes: Forest, Ocean, Amethyst and Ember.&lt;/li&gt;
&lt;li&gt;Brightness presets, idle fades and a night schedule.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9v4jnkvgbuhy43wa3v7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9v4jnkvgbuhy43wa3v7.png" alt="ORBIT with the Ocean theme" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Two boards, different display backends
&lt;/h2&gt;

&lt;p&gt;The original target is the &lt;strong&gt;GUITION JC4880P433 ESP32-P4&lt;/strong&gt;, with a ST7701S MIPI DSI display and GT911 touch. Its portrait panel is rotated into an 800 × 480 landscape UI, and brightness uses hardware PWM.&lt;/p&gt;

&lt;p&gt;Version &lt;strong&gt;v1.13.0&lt;/strong&gt; adds the &lt;strong&gt;original Waveshare ESP32-S3-Touch-LCD-4.3&lt;/strong&gt; as a separate, &lt;strong&gt;experimental&lt;/strong&gt; target. That board uses a native 800 × 480 ST7262 RGB panel, GT911 touch, a CH422G expander, 16 MB flash and 8 MB OPI PSRAM. The B/C variants are not supported.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The S3 firmware has not been tested on physical hardware.&lt;/strong&gt; It compiles and the shared native tests pass, but touch alignment, RGB stability, tearing and sustained operation still need a real board test.&lt;/p&gt;

&lt;p&gt;A useful hardware lesson from this port: similar-looking screens need different brightness handling. The original S3 board exposes an LED on/off switch, so intermediate brightness dims the rendered image with a touch-transparent overlay. Only zero switches the LEDs off. It does not reduce LED power like the P4's PWM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the UI shared
&lt;/h2&gt;

&lt;p&gt;Both boards share the dashboard, robot artwork, themes and protocol. Their drivers stay separate. LVGL and backlight changes belong to one UI task, while the host communicates through bounded AIM1/JSON frames.&lt;/p&gt;

&lt;p&gt;The S3 backend uses one PSRAM framebuffer, RGB bounce buffers and a partial LVGL draw buffer to fit its smaller memory budget. Its Arduino core and matching Espressif PSRAM XIP SDK are pinned separately from P4. A single RGB framebuffer can still show tearing; passing a build is not a substitute for observing the hardware.&lt;/p&gt;

&lt;p&gt;CI builds both targets, and the project has &lt;strong&gt;176 synthetic Python tests&lt;/strong&gt;, protocol checks for both board identities, NVS settings tests and tests of the actual LVGL screens under both profiles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://github.com/catorendal-a11y/ai-monitor-p4-s3" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt; contains source, screenshots and setup instructions. The &lt;a href="https://github.com/catorendal-a11y/ai-monitor-p4-s3/releases/tag/v1.17.2" rel="noopener noreferrer"&gt;v1.17.2 Windows release&lt;/a&gt; includes the host runtime, firmware flasher and both firmware variants, so users do not need Python or PlatformIO installed.&lt;/p&gt;

&lt;p&gt;Extract the whole ZIP, open &lt;strong&gt;AI-Monitor.exe&lt;/strong&gt;, choose your exact board and AI providers in First-time setup, and install the matching firmware. Fresh installations have neither a board nor an AI provider preselected. S3 uses its &lt;strong&gt;USB TO UART&lt;/strong&gt; connector for flashing and everyday host data.&lt;/p&gt;

&lt;p&gt;The PC companion reads selected usage sources and sends display data over USB. Provider credentials stay on the PC; no maintainer keys are distributed. Project-owned code and robot artwork use MIT, while bundled components and provider marks retain their own terms. The USB protocol builds on &lt;a href="https://github.com/tobymarks/esp32-ai-monitor" rel="noopener noreferrer"&gt;tobymarks/esp32-ai-monitor&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I'd welcome feedback on the interface and, especially, hardware testing from anyone with the original Waveshare S3 board. The board guide in the repository lists the remaining checks.&lt;/p&gt;

</description>
      <category>esp32</category>
      <category>opensource</category>
      <category>showdev</category>
      <category>arduino</category>
    </item>
  </channel>
</rss>
