ESP32 Projects
Start a build
Markdown

Mobiflight 737 Annunciators for ESP32-WROOM-32

An ESP32 display project for ESP32-WROOM-32 involving Touchscreen.

ESP32-WROOM-32See upstream buildUnrated
Parts and source

Before you start

Check the exact Touchscreen configuration against the upstream wiring or parts list.

Upstream README

Annunciator

Twelve Boeing 737-800 annunciator panels on a cheap all-in-one ESP32 display board, driven from MobiFlight Connector as a custom device. Built to fill the gaps a Rowsfire B107 overhead and a WinCtrl MCP/EFIS leave in a PMDG 737-800 cockpit — the doors panel, the IRS unit, electrical metering, air conditioning, flight controls and the glareshield master caution.

The five boards in a home cockpit

In a home cockpit: three boards on the overhead mount above a Rowsfire B107, and one at each end of a WinCtrl MCP/EFIS for the master caution panels.

Every panel

What you need

  • A display board — one of the two below, all-in-one, with no wiring. The 3.5″ board is the one to buy.
  • MobiFlight Connector 11.2 or newer, on the PC running the sim.
  • MSFS 2024 with the PMDG 737-800, and FSUIPC7 — every panel reads the aircraft through it.
  • Chrome or Edge, to flash the firmware from the browser. Nothing has to be built.
LCDWIKI E32R32P Caturda C3248W535 — recommended
Price about €18 about €29
Screen 3.2" 240×320 IPS, drawn as 320×240 3.5" 320×480 IPS, drawn as 480×320
Touch resistive, needs a one-off calibration capacitive, factory-calibrated
MCU ESP32-WROOM-32E, 4 MB flash ESP32-S3-WROOM-1, 16 MB flash, 8 MB PSRAM
USB CH340C — needs the launcher native USB, nothing to work around
Build env annunciator_e32r32p annunciator_c3248w535

Buy the 3.5″ board. For €11 more it is substantially better on both counts that matter in a cockpit. The picture has much more contrast and brightness, so lit lamps stand out from unlit ones the way real annunciators do. And its capacitive touch is a different experience from the 3.2″ board's resistive panel: a light tap registers first time, where the resistive one wants a firm, deliberate press. It also needs neither a touch calibration nor the launcher. The 3.2″ board works, and every panel runs on it — but it is the one to use only if you already have it.

Both screens are the same physical size, so the 3.5" board is not a bigger panel — it is the same panel drawn with 1.8× the pixels. Text is noticeably sharper and the lamps are about 7% larger. Here is one panel on each, scaled so a millimetre is a millimetre:

The same panel on each screen

The Caturda is also sold as the Guition or JCZN JC3248W535EN. Take the capacitive version, and don't confuse it with the 4.3" JC4827W543 — different display controller entirely.

The panels

All twelve ship in one firmware image per board type — every board of a type gets the same .bin. Which panel a board shows is chosen in the Connector, by which custom device you add to it, so a board becomes a different panel without reflashing.

Panel Custom device type Touch
Doors — the 12 door lamps plus GRD PWR, arranged so a lamp's place on screen matches its place on the airframe ANNUN_DOOR every lamp opens or closes that door
IRS mode select unit — GPS, ILS, GLS and both IRUs ANNUN_IRS —
AC & DC metering — the two-line dot-matrix window and its lamps ANNUN_ELEC —
Air conditioning, bleed and pressurisation ANNUN_AIR —
Flight controls ANNUN_FCTL —
Flight controls with the switches — the same lights, plus the FLT CONTROL A and B switches as touch toggles ANNUN_FCTL_SW tap the upper or lower half of a toggle to step its switch up or down
IRS display unit — both segmented displays, the two knobs and the keypad ANNUN_ISDU keypad and knobs both work
Master caution, captain's side ANNUN_MCS_L FIRE WARN, MASTER CAUTION, six-pack recall
Master caution, first officer's side ANNUN_MCS_R the same
Master caution, both six-packs on one screen ANNUN_MCS_BOTH the same, with a recall per six-pack
Master caution with AFDS — the combined layout plus the autoflight P/RST lights, A/P, A/T and FMC ANNUN_MCS_BOTH_AFDS the same, plus the three P/RST lights, which reset
Master caution, captain's side, with AFDS — the captain's unit plus the same three P/RST lights ANNUN_MCS_L_AFDS as the captain's side, plus the three P/RST lights, which reset

Touch is not something the real aircraft does. It is there because pressing a door annunciator is quicker than breaking out of FMS mode on the CDU or digging for the EFB.

In the cockpit

IRS, electrical and doors panels above the overhead Captain's master caution with AFDS
Overhead: IRS mode select unit, AC & DC metering and Doors, in the three-board mount above a Rowsfire B107 Captain's side: master caution with the AFDS P/RST lights, left of a WinCtrl EFIS and MCP
First officer's master caution
First officer's side: master caution, right of the WinCtrl EFIS

3D-printed mounts

Printable mounts for five boards: three side by side as an overhead module, and one at each end of the glareshield for the master caution panels. Each piece comes as a STEP file, to edit in your CAD program, and an STL, ready to slice. Full-size renders are in hardware/renders/.

The overhead module with its three displays The same, without the displays
The captain's master caution mount, with its display The same, without the display
Piece Files
Overhead, center. One display frame on the mounting plate; the side pieces attach to it STEP · STL
Overhead, left. One display frame STEP · STL
Overhead, right. The left piece mirrored STEP · STL
Master caution, captain's side. Glareshield mount with a hood over the display STEP · STL
Master caution, first officer's side. The captain's mount mirrored STEP · STL

A parts list and assembly instructions are still to come.

How it works

This is a MobiFlight CommunityTemplate project. The MobiFlight core firmware is not vendored here — the build clones it into ./src and compiles it alongside the sources in Annunciator/. The core owns the serial protocol, the handshake, config storage in EEPROM and power saving; this repo implements the four custom-device functions and the panel renderers.

The board appears in the Connector as a controller with one custom device on it. Lamps are outputs, touch buttons are inputs, and both are bound in an ordinary MobiFlight profile. Ready-made profiles for the PMDG 737-800 are generated by tools/make_profiles.py and live in profiles/.

Only two files know which board they are on: Annunciator/Board.h, which holds the pins and the screen size, and Annunciator/Gfx.h, which picks the display library. The panel layouts are written once and carry a set of dimensions for each screen, checked at compile time — a legend that no longer fits its lamp fails the build rather than the flight.

The core comes from elral/MobiFlight-FirmwareSource branch ESP32_support, because upstream MobiFlight has no ESP32 target at any released version. The handbook explains that choice, the version it reports, and the one patch applied to it on every fetch.

Setup

About half an hour, start to finish, on the PC that runs the sim. Do the steps in order. Where a step differs between the two boards it says so; otherwise it is the same for both.

You will need: the board and a USB cable · MSFS 2024 with the PMDG 737-800 · MobiFlight Connector 11.2 or newer · FSUIPC7 7.5.6 or newer · Chrome or Edge · and only if step 6 applies to you, Python 3.

1. Download the release

Open the latest release and, under Assets, download Annunciator_<version>.zip. That one file is everything: both boards, and nothing else to fetch. (GitHub also lists Source code (zip) and (tar.gz) there. Ignore them: the same source is already in the zip, with the rest.)

Right-click the zip and choose Extract All…. Choose somewhere you will find it again, such as Documents, and keep the folder: steps 4 and 7 use it. It contains:

In the zip What it is for
Community The board and panel definitions for MobiFlight Connector (step 4)
Start-MobiFlight-E32R32P.bat Starts the Connector for the 3.2″ board (step 4; the 3.5″ does not need it)
Source The source code, with the profiles (step 7) and the tool that makes custom ones (step 6)
Firmware A full flash image for each board, for flashing by hand. Most people never need these
Licenses, LICENSE, THIRD-PARTY-NOTICES.md The licences

The firmware itself is installed from the browser in step 2.

2. Install the firmware
  1. Close MobiFlight Connector if it is running. It holds the board's port while it runs.
  2. Plug the board into the PC.
    • 3.2″: use a USB-A to USB-C cable. A C-to-C cable does not work with this board.
  3. In Chrome or Edge, open the firmware installer and click Install firmware. It works out which board is plugged in.
  4. Choose the board's port, then Install. The 3.2″ board is listed as USB-SERIAL CH340 or USB Serial, the 3.5″ as USB JTAG/serial debug unit.
    • 3.5″: if it is not listed, or the installer says Failed to initialize, unplug the board, hold its BOOT button while you plug it back in, then try again.
  5. Tick Erase device the first time. When you update later, leave it unticked: the board then keeps its panel setup and its touch calibration.
  6. When it reports Installation complete, unplug the board and plug it back in.

When the board restarts it shows a splash for 10 seconds, with the panel it is configured as, the firmware version and the build date. For the next 10 seconds it shows the panel it is set up as, or No panel configured on a new board. Then the screen stays dark until MobiFlight sends it something. That is normal.

Tap DEMO on the splash to see every panel in action, with no sim: the board plays a short scene on each in turn. Hold a finger on the screen for 3 seconds to stop it. CREDITS shows who and what the firmware is built on.

The splash, its credits page, and a board with no panel configured

Flashing by hand instead

If the installer cannot reach the board, flash the full image from the download with Espressif's own page. This always erases the board's panel setup and touch calibration.

  1. Find your board's image in the Firmware folder of the unzipped release: annunciator_e32r32p_<version>_full.bin for the 3.2″, annunciator_c3248w535_<version>_full.bin for the 3.5″. The version is written with underscores: annunciator_e32r32p_0_1_0_full.bin for 0.1.0.
  2. In Chrome or Edge, open the ESP web flasher.
  3. Set Baudrate:
    • 3.2″: 230400 — its USB chip fails at faster speeds.
    • 3.5″: leave it as it is.
  4. Click Connect and choose the board's port.
  5. Set Flash Address to 0x0, choose the _full.bin file, and click Program.
  6. When it reports that it is done, unplug the board and plug it back in.
3. Prepare the sim (once)
  1. FSUIPC7 must be installed, and running whenever you fly. Every panel reads the aircraft through it.

  2. Switch on PMDG's data broadcast. Load the 737-800 once, until it is ready to fly, so its settings file exists. Close the sim. Open 737_Options.ini in Notepad — it is in:

    • Steam: %APPDATA%\Microsoft Flight Simulator 2024\WASM\MSFS2024\pmdg-aircraft-738\work\
    • Microsoft Store / Game Pass: %LOCALAPPDATA%\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalState\WASM\MSFS2024\pmdg-aircraft-738\work\

    Add these two lines at the very end, followed by one empty line, and save:

    [SDK]
    EnableDataBroadcast=1
    

    Without the empty line PMDG ignores the last line. If your overhead's FLT ALT and LAND ALT windows already show digits in the 737-800, this is already on and you can skip it.

  3. MobiFlight's WASM module — the Connector installs it. If it offers to, say yes.

4. Install the package
  1. Close the MobiFlight Connector.
  2. In File Explorer, open the Community folder of the unzipped release. It holds one folder, Annunciator. Select it and copy it (Ctrl+C).
  3. Click the address bar, paste %LOCALAPPDATA%\MobiFlight\MobiFlight Connector\Community and press Enter. That is the Connector's own Community folder; if it holds other folders, leave them be.
  4. Paste (Ctrl+V). You should end up with a folder called Annunciator there, containing boards, devices and firmware. If Windows asks about replacing files, you are updating an earlier install: choose Replace.
  5. Start the Connector.
    • 3.2″ — from now on, always start the Connector with the launcher. This board shares its USB id with many Arduino clones, and the Connector opens it the way it opens an Arduino, which resets the board into a mode where it cannot answer. It then shows up as a compatible module offering to upload firmware — never accept that. To prevent it:

      1. Find the board's COM port: Device Manager → Ports (COM & LPT) → USB-SERIAL CH340 (COMn).
      2. In the unzipped release, right-click Start-MobiFlight-E32R32P.bat → Edit, change COM7 on the set PORTS=COM7 line to your port, and save.
      3. Double-click it to start the Connector. (Right-click → Send to → Desktop (create shortcut) puts a shortcut where you will use it.) Keep the board in the same USB socket, or its COM number changes.

      If Windows refuses to run the batch file, the handbook has a shortcut that does the same.

    • 3.5″: nothing extra. It has its own USB id and no reset circuit.

The package is what lets the Connector recognise the board. Without it the board appears as an unknown or incompatible module.

5. Put a panel on the board

A board shows one panel at a time. You choose which one here, and can change it later without reflashing.

  1. In the Connector, press Stop if it is running.
  2. Open Extras → Settings → MobiFlight Modules. The board is listed as Annunciator (3.2″) or Annunciator 35 (3.5″).
  3. Select the board, then Add device → Custom Devices, and pick the panel — Door Annunciator, Master Caution, IRS Display Unit and so on.
  4. Leave the pin as it is offered — it is the backlight — and confirm.
  5. Select the board itself again and, in its Name field, type the name for its panel from the table below — Annun DOOR for the doors, and so on, exactly as written. This is how the profiles find the board, so it matters; it also tells your boards apart in the list.
  6. Click Upload config, wait for it to finish, and close the dialog.
Panel Board name Panel Board name
Doors Annun DOOR IRS display unit Annun ISDU
IRS mode select unit Annun IRS Master caution, captain Annun MCS L
AC & DC metering Annun ELEC Master caution, first officer Annun MCS R
Air conditioning Annun AIR Master caution, both Annun MCS BOTH
Flight controls Annun FCTL Master caution with AFDS Annun MCS AFDS
Flight controls with switches Annun FCTL SW Master caution, captain, with AFDS Annun MCS L AFDS
6. Make your own profiles (most people skip this)

The profiles connect each lamp and button to the aircraft. The ones in the download find their board by the name you gave it in step 5, so with the names from that table they work as they are: go on to step 7.

Make your own only if two of your boards are set up as the same panel (they cannot share one name), or if you would rather keep a board's own name. Then the tool asks each board plugged into the PC for its serial number, name and panel, and writes profiles tied to those exact boards.

  1. Install Python 3, if you have not already. Installing Python on Windows below has the steps; to find out whether you have it, open a command window (step 4 below) and type py --version.

  2. Close the MobiFlight Connector — it holds the boards' ports — and leave every board plugged in, each set up as a panel (step 5).

  3. In File Explorer, open the Source folder of the unzipped release — the one that contains README.md and a tools folder.

  4. Click the address bar, type cmd, and press Enter. A command window opens in that folder.

  5. The tool needs one add-on, pyserial, to talk to the boards. Install it once:

    py -m pip install pyserial
    
  6. Then scan:

    py tools\make_profiles.py --scan
    
  7. It prints a line for each board it found — the port, the board's name and serial number, and the panel it is set up as — then one line for each profile it wrote. Only the panels it found get a file, and those files in the profiles folder (inside Source) are now made for your boards. It also writes Annunciator-Combined-PMDG737-800.mfproj, with every board's panel in one file, so step 7 is a single merge.

Always start it with py, as above, and not by typing the script's name on its own (tools\make_profiles.py … or .\tools\make_profiles.py …). Windows then opens the script in a separate window that vanishes after a fraction of a second, and nothing appears in your own command window. The profiles may well have been written; the output was in the window that closed. Run it again with py in front to see it.

A board it skips is reported with the reason: could not open it means the Connector (or another program) still has the port; no panel set up means step 5 has not been done for that board; no answer means it is not running the Annunciator firmware. Windows may restart a board as the tool opens its port — you will see its splash again — and the tool waits for it to come back. If a board still does not answer, unplug it, plug it in again and scan again.

Typing the serial number instead of scanning

Use this if the scan cannot see a board, or to make profiles for a board that is not plugged in. Type the line for your board, with your serial number in place of the X's, and press Enter:

py tools\make_profiles.py --serial "Annunciator/ SN-XXXXXXXXXXXX"

for a 3.2″ board, or

py tools\make_profiles.py --serial "Annunciator 35/ SN-XXXXXXXXXXXX"

The serial number is SN- followed by 12 characters, shown with the board in MobiFlight Modules. for a 3.5″ board. It writes a profile for every panel, all for that one board; use the one for the panel the board is set up as.

More than one board? Give each board its panel and serial in one command:

py tools\make_profiles.py --board "door=SN-AAAAAAAAAAAA:Annunciator" --board "mcs_both_afds=SN-BBBBBBBBBBBB:Annunciator 35"

That also writes Annunciator-Combined-PMDG737-800.mfproj, with every board's panel in one file, so step 7 is a single merge. If two of your boards are the same kind, give each its own name in MobiFlight Modules first and use those names here. The names to use for --board:

Panel Name Panel Name
Doors door IRS display unit isdu
IRS mode select unit irs Master caution, captain mcs_l
AC & DC metering elec Master caution, first officer mcs_r
Air conditioning air Master caution, both mcs_both
Flight controls fctl Master caution with AFDS mcs_both_afds
Flight controls with switches fctl_sw Master caution, captain, with AFDS mcs_l_afds
Installing Python on Windows

The profile tool is a Python script, and Windows does not come with Python. It is a one-off, about five minutes, and nothing else here needs it.

  1. Open python.org/downloads in your browser. Its yellow button, Download Python 3.x.x, is the Windows installer. Run the file it saves.

  2. On the installer's first page, tick Add python.exe to PATH (the box at the bottom) and leave everything else as it is, then click Install Now. If Windows asks whether to allow changes, say yes.

  3. When it says Setup was successful, click Close.

  4. Check it: press the Windows key, type cmd, press Enter, and in the window that opens type

    py --version
    

    It should answer with Python 3. and a version, such as Python 3.13.1. Any version from 3.9 on is fine.

If it does not:

  • 'py' is not recognized… — open Settings → Apps → Installed apps, find Python 3.x, choose Modify → Modify, and make sure py launcher is ticked. Or run the installer again and choose Repair. Then open a new command window: one that was already open does not see the install.
  • Typing python opens the Microsoft Store — that is a stub Windows ships, not Python. Ignore it and use py, as everything here does.
  • Windows will not let you approve the installer (no admin rights on this PC) — on the first page untick Use admin privileges when installing py.exe, then click Install Now. It then installs for your account only.
  • You would rather use the Microsoft Store — search for Python 3.13 there (the one published by the Python Software Foundation) and install it. Then use py as above.
7. Add the profile to your project
  1. In the Connector, open the project you fly with — the one with your overhead in it.
  2. Click the + after the last tab, choose From existing project, and pick your panel's file from the profiles folder (or the Combined file, for several boards). It arrives as a new tab.
  3. The Connector may tell you it has updated your project: it found your board by its name and tied the tab to it. That is what should happen.
  4. Save.

Use + → From existing project, not File → Open: opening a profile replaces your whole project with it.

Panel Profile
Doors Annunciator-Doors-PMDG737-800.mfproj
IRS mode select unit Annunciator-IRS-PMDG737-800.mfproj
AC & DC metering Annunciator-Electrical-PMDG737-800.mfproj
Air conditioning Annunciator-AirCond-Bleed-Press-PMDG737-800.mfproj
Flight controls Annunciator-FlightControls-PMDG737-800.mfproj
Flight controls with switches Annunciator-FlightControls-Switches-PMDG737-800.mfproj
IRS display unit Annunciator-IRS-DisplayUnit-PMDG737-800.mfproj
Master caution, captain Annunciator-MasterCaution-Captain-PMDG737-800.mfproj
Master caution, first officer Annunciator-MasterCaution-FO-PMDG737-800.mfproj
Master caution, both Annunciator-MasterCaution-Both-PMDG737-800.mfproj
Master caution with AFDS Annunciator-MasterCaution-Both-AFDS-PMDG737-800.mfproj
Master caution, captain, with AFDS Annunciator-MasterCaution-Captain-AFDS-PMDG737-800.mfproj
8. Check it works
  1. Start the sim and load the 737-800. Make sure FSUIPC7 is running.
  2. Press Run in the Connector.
  3. Turn the battery on. The panel lights up and shows the aircraft's state.
  4. Set the overhead's lights switch to TEST. Every lamp should light.

If the panel stays dark:

  • Is the Connector running (Run pressed), and is FSUIPC7 running?
  • Is PMDG's data broadcast on? (Step 3.)
  • Does the board carry its panel's name from step 5, exactly (Annun DOOR, …)? A profile finds its board by that name; with a different name the Connector cannot place the tab, or asks you which board to use. Rename the board, upload its config, and load the project again.
  • 3.2″: was the Connector started with the launcher? If the board shows as a compatible module, close the Connector, unplug the board and plug it back in, and start it with the launcher.

The handbook covers everything else: changing a board to another panel, Test Mode, power saving, and the full message reference.

Building from source

git clone https://github.com/ChrisCarde/mobiflight-737-annunciators.git && cd mobiflight-737-annunciators
pio run -e annunciator_e32r32p   -t upload     # the 3.2in board
pio run -e annunciator_c3248w535 -t upload     # the 3.5in board
pio run -t annunciator_package                 # the release zip, in _dist/

The first build clones the MobiFlight core firmware into ./src. annunciator_package writes the release zip into _dist/ — the file a release carries, and the only one: the Connector's Community folder, a full flash image for each board, the launcher, the licences and this source tree — and the browser installer into _site/. To try the installer before a release, serve it locally (python3 -m http.server -d _site) and open http://localhost:8000 in Chrome or Edge. Set VERSION (e.g. VERSION=1.0.0) to stamp a release number into all of them; without it they are 0.0.1, which the Connector treats as development firmware and never offers to update.

Releases are built by GitHub Actions from a clean checkout (release.yml): pushing a tag such as v0.1.0 builds both boards as that version, runs the definition checks, attaches the zip in _dist/ to the release and publishes _site/ as the installer on GitHub Pages. The platform and every library are pinned to exact versions in Annunciator_platformio.ini, so that build is the same as the one tested on the boards.

→ The handbook has everything in detail: the pinout for each board, the full message reference, how the profiles are generated and bound, touch calibration, the hardware findings for the 3.5″ panel, and bring-up for new hardware.

Previewing without hardware

The panels are laid out by hand in code, to the pixel, and iterating on that by flashing a board is slow. So the renderer builds for the desktop too:

python3 tools/preview/build.py          # compiles the real panel sources, both screen sizes
python3 tools/preview/render_all.py     # every panel, every state, as PNGs
python3 tools/preview/contact_sheet.py  # the sheet at the top of this page
python3 tools/preview/contact_sheet.py --docs  # refresh every image in docs/previews
python3 tools/preview/render_demo.py    # the DEMO's scenes, as a GIF and keyframes per panel

The previews come from the firmware's own layout tables, its own glyph metrics and the same embedded font, so positions, sizes and text are the board's; only anti-aliased edges differ. render_all.py --check compares a render against a blessed set and says how many pixels moved, which is how a layout change gets reviewed. Building both sizes is also the layout gate: every static_assert in the panels is evaluated for each screen.

Repo layout

Annunciator/            the firmware
  Board.h                 the only file that names a pin or a screen size
  Gfx.h                   the only file that names a graphics library
  Layout.h                the design language: margins, lens size, gutters, touch minimums
  MFCustomDevice.{h,cpp}  MobiFlight integration: custom device type -> panel
  PanelGfx.{h,cpp}        display bring-up, lamp and text rendering
  LampPanel.{h,cpp}       the engine for panels that are just lamps, run from a table
  Touch*.{h,cpp}          touch polling, calibration, and zones -> button events
  Splash/                 the boot splash, and the logo bitmaps generated for it
  Demo/                   the splash's DEMO: the player and the twelve scenes
  <Name>Panel/            one directory per panel
  fonts/                  DM Sans Bold, embedded, with the metrics the renderer measures by
  Community/              the board and device definitions the Connector reads
profiles/               ready-made MobiFlight projects for the PMDG 737-800
windows/                the Connector launcher for the 3.2in board
release/                the README.txt at the top of the release zip
web/                    the browser installer page (its manifest is written by the build)
tools/                  profile generator, definition checks, a bench tool, the host preview
art/                    the splash logo's source image and its licence
hardware/               3D-printed mounts: STEP and STL per piece, and full-size renders
docs/photos/            photos of the panels in a cockpit
docs/handbook.md        everything in detail
.github/workflows/       the release build

Known gaps are listed at the end of the handbook.

Credits

Licence

This repository's own code and definitions are MIT.

The firmware images in each release also contain other people's work — the MobiFlight core firmware, the display libraries, the Arduino core for the ESP32 and the ESP-IDF, FreeRTOS and C library it is built on, the font and the splash logo — under MIT, BSD, Apache 2.0, LGPL, OFL and CC BY-SA 4.0 licences. Every component, its licence and its notices are in THIRD-PARTY-NOTICES.md, and each release zip carries that file and the licence texts alongside the binaries.