Aircraft Nearby – ESP32 Flight Tracking LED Display

Two finished displays showing the clock and an aircraft alert

Changes

2026-12-03 V1.0 First published version.

Quick Links

Summary

An LED matrix display that doubles as a clock and shows an alert when an aircraft enters a configurable area (based on latitude/longitude). An ESP32 runs the display and its Wi-Fi settings, so the standalone build works without Home Assistant, MQTT or a separate server.

Two finished displays showing the clock and an aircraft alert
The clock display is on the left. The aircraft alert is on the right.

Functions Implemented

The ESP32 obtains flight data using an experimental Flightradar24 adapter, filters aircraft positions by the configured radius and queues alerts for new arrivals. An alert starts with the flight number or callsign and distance in kilometres. It then scrolls any available route and altitude in metres before returning to the clock. You can set the brightness, announcement timing and overnight quiet hours from a browser on the local network.

The device is a standard ESPHome device, and the Home Assistant API can easily be enabled in the supplied binary and rebuilt/uploaded. You can then use Home Assistant to send it text messages which will be scrolled in the same way as the aircraft text.

Equipment Used

  • One ESP32-C3 SuperMini or 30-pin ESP32-WROOM-32, with firmware for that board.
  • One four-tile MAX7219 board per 133 mm enclosure section. Two sections make a 64 × 8 pixel display.
  • One printed body per display board, one cable end, one plain end, M3 brass heat-set inserts and M3 × 5 mm screws.
  • 3 mm thick tinted acrylic, plus hookup wire, insulation, a cable tie or two, a suitable 5 V USB plug pack and a USB cable that fits the ESP32.

Method

3D Printed Housing

Skip this section if you have the printed enclosure. Print one 133 mm body per four-tile MAX7219 board, one cable end and one plain end. The combined body-and-ends print file in the 3MF folder contains one body and both ends. Duplicate the body for a longer display and select your own printer and filament profile. The STL folder also contains each part individually if you want to print a second body. Choose either the WITH_FILLERS set or the BARE set. Original model files and licence.

The enclosure was tested in PETG. With WITH_FILLERS, the narrow PCB and acrylic channels have removable print aids, but the ramped tongue and other overhangs still need slicer supports. With BARE, add slicer-generated supports for the PCB and acrylic channels as well. The tested starting point was a 5 mm brim with 0.25 mm separation, 0.12 mm layers for the first 9 mm and 0.20 mm layers above that. Preview the supports before printing.

Exploded view of a two-section enclosure
A two-section enclosure with front acrylic and both end pieces.

Assembling the Housing

Remove the brim, supports and any pull-out strips, then clear the PCB grooves, acrylic grooves and screw holes. If the inserts are supplied loose, heat-set the M3 brass inserts (about 4.2 mm outside diameter × 4 mm long) squarely into the underside of the tongues, flush with or just below the surface.

End of a 3D printed MAX7219 housing showing the joining tongue and screw holes
The joining end of a printed housing module, which slides into the next module.

Slide the bodies together, line up their front edges and fasten the joints from the rear with M3 × 5 mm screws. Tighten gently and leave the ends off while fitting the electronics.

One of the end pieces has a hole for passing the USB cable through, and loops for a cable tie. Use this end for the ESP32.

Rear of two printed enclosure modules joined together with two screws
Two printed housing modules screwed together from the rear using M3 × 5 mm screws.

Connecting it up

Join the MAX7219 boards together. For each extra MAX7219 board, link the previous board’s DOUT to the next board’s DIN, and carry VCC, GND, CS and CLK across. The MAX7219 boards usually come with right-angled header pins. The easiest way to connect one board to the next is to bend each pin into a U and insert it into the corresponding hole on the next board. The pins should only just protrude through the PCB, leaving roughly 1.5 mm between boards to keep the LEDs aligned.

Mount the ESP32 on the rear of one of the MAX7219 boards as shown in the photo, using double-sided foam or gel tape. Wire the controller to the input side of the first MAX7219 board. The five connections are USB-derived 5 V to VCC, ground to GND, serial data to DIN, chip select to CS (also marked LOAD) and clock to CLK. Use the GPIO pinout supplied with your programmed controller.

For the 30-pin ESP32-WROOM-32 build, use GPIO23 for DIN, GPIO27 for CS and GPIO18 for CLK.

ESP32-WROOM-32 (30 pin): USB-derived 5 V to VCC, GND to GND, GPIO23 to DIN, GPIO27 to CS / LOAD, GPIO18 to CLK.
30-pin ESP32-WROOM-32 connections to the first MAX7219 module.
Back of the display and Micro-USB ESP32 wiring
Use the board labels and firmware pinout to identify connections. This is the ESP32-WROOM-32 development board.

The documented ESP32‑C3 SuperMini mapping is DIN → GPIO8, CS → GPIO9 and CLK → GPIO10.

ESP32-C3 SuperMini: USB-derived 5 V to VCC, GND to GND, GPIO8 to DIN, GPIO9 to CS / LOAD, GPIO10 to CLK.
ESP32-C3 SuperMini connections to the first MAX7219 module.
ESP32 SuperMini wired to the back of a MAX7219 LED matrix board
The ESP32-C3 SuperMini wired to the first MAX7219 board.

Insulate the ESP32 from exposed pads and solder joints on the display board, and ensure that any wires passing through the board cannot contact exposed tracks on the MAX7219 PCB.

Check polarity and continuity before applying power, then bench-test the display before closing the housing. Longer builds may need a higher-capacity 5 V supply and separate power feeds to manage voltage drop.

Desolder or trim any unused header pins at the end of the first module so the assembly fits inside the housing.

Wiring from the ESP32 to the first MAX7219 board and from DOUT to DIN on each additional board

USB Cable and Acrylic Faceplate

Slide the wired display boards into the rear PCB grooves with the LEDs facing forward. Feed the appropriate USB cable through the cable end (USB-C for the SuperMini; the ESP32 development board may use Micro-USB), plug it into the controller and use the internal tie points to secure the cable jacket so a tug cannot load the socket.

Fit the cable end, slide the acrylic into the front grooves from the open end, then fit the plain end and secure both ends with M3 × 5 mm screws. Use 3 mm thick tinted acrylic. If cutting your own faceplate, the size suggested is 297 × 46 mm for two bodies and 430 × 46 mm for three. Measure the assembled housing and sand the ends for a sliding fit before tightening the end screws.

Partially assembled LED matrix displays in printed housings before fitting acrylic faceplates
The display modules being assembled, before the acrylic faceplates are fitted.

ESPHome Firmware Installation

If your kit came with a programmed controller, go straight to Wi-Fi setup. Otherwise, choose one of the two installation methods below: build the firmware from YAML if you want to customise it, or install the precompiled binary directly using ESPHome Web. Both methods lead to the same Wi-Fi setup and configuration steps.

Option 1 – Build and Flash from ESPHome YAML

For a fresh build using a YAML file, start from the matching ESPHome source bundle, including the local nearby_flights component and fonts/5x8.bdf. Choose the YAML configuration in the project folder that matches your ESP32 board. Match the GPIO pins to the wiring and set num_chips to the actual number of MAX7219 tiles.

Copy the example secrets file to secrets.yaml, set unique setup AP, web and OTA passwords for the device, and keep that file private. Connect the ESP32 by USB and run these commands from the source folder replacing YOUR_CONFIG.yaml with the actual configuration filename for your board:

esphome config YOUR_CONFIG.yaml
esphome run YOUR_CONFIG.yaml

Option 2 – Install the Precompiled Binary with ESPHome Web

If you don’t want to compile the YAML yourself, you can install the precompiled firmware directly from your browser (no ESPHome installation or Home Assistant required). Download the factory .bin file for your ESP32 board and display configuration from the project folder on cloud.zorruno.com. Plug the ESP32 into your computer using a USB cable that supports data, then open ESPHome Web in Chrome or Edge. Click Connect, select the ESP32’s serial port and click Install. Choose the downloaded factory binary (not an OTA-only binary), then click Install again. This replaces the existing firmware and may erase saved settings. Leave the USB cable connected until installation is complete, then allow the ESP32 to restart and follow the Wi-Fi setup instructions below.

If you install my supplied binary, you will need the password I used for both the initial Wi-Fi access point and the configuration page (the username for the configuration page is “admin”). Contact me to obtain this.

Wi-Fi Setup and Web Interface

Power up the programmed display. On first setup, join the device’s Wi-Fi access point from your phone or laptop (for example, esp-flightmatrix-XXXXXX), using the access point password. Open http://192.168.4.1/ if the setup page does not appear automatically.

If the unit has previously connected to a different Wi-Fi network, it may take a few minutes before it realises it cannot connect and enables its own access point.

Choose your home 2.4 GHz Wi-Fi network, enter its password and save. The display should show its local IP address for approximately 10 seconds after connecting. Note this address, reconnect your phone or laptop to your home Wi-Fi network and open the address in your browser. If using my supplied binary, log in using the username admin and the supplied configuration password. For a custom build, use the credentials you configured.

Set your latitude and longitude and the detection radius so the display looks for aircraft near your location. Use a negative latitude and positive longitude in New Zealand. Set brightness, scroll speed and repeats to taste. Select the local time zone (Auckland for mainland New Zealand), adjust any quiet hours and press Apply Time Settings. When using a flight data source you have permission to use, set altitude limits if needed, turn on Flight Tracking Enabled and press Apply Flight Settings. Check Flight Data Status after the clock has synchronised.

Testing the Finished Display

  1. Check that the clock is readable and every tile lights in the right orientation. A dark or garbled downstream tile is a reason to check the previous tile’s DOUT-to-DIN link, power and the firmware chip count.
  2. Use Play Manual Display Test to check the alert header, scrolling details, repeats and return to the clock.
  3. Check quiet hours, then restart the display after allowing the settings to save. Confirm that it rejoins Wi-Fi and restores your chosen settings.
  4. When a permitted feed is configured, check its status and confirm the first real alert. The Flightradar24 adapter is experimental and may be affected by changes to the data source. The manual test is the quickest way to check the hardware independently of the feed.
Red LED matrix display showing an aircraft alert above a Blu-ray player
The finished display in use, scrolling an aircraft alert.
Green LED matrix display showing an aircraft alert below a television
The green LED version showing an aircraft alert.
This is a three-module setup with a longer acrylic front panel, showing the nearby aircraft information scrolling across the display.

Enclosure Design and Licence

The models are licensed under CC BY-NC 4.0. See LICENSE.txt in the project folder.

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment