Community project

Include Arduino H // // Live Flight Scanner

CET blue

Published July 14, 2026

Build a live flight radar on the M5Stack M5Dial that displays aircraft positions in real-time around your home location. The project connects to the OpenSky Network API to fetch aircraft data, rendering a rotating radar sweep with callsigns, altitudes, and flight paths on the circular display.

This guide provides everything needed to get airborne: a complete parts list, WiFi credential setup, firmware configuration for your location, step-by-step flashing instructions, and a walkthrough of the radar interface. Makers will learn how to integrate REST APIs with ESP32 microcontrollers, parse JSON flight data, and create interactive visualizations on compact circular displays.

Wiring diagram

Wiring diagram for Include Arduino H // // Live Flight Scanner
Loading diagram…

Gather all the parts

QtyComponent
1

M5Stack M5Dial

All-in-one ESP32-S3 device with 1.28" round GC9A01 TFT, rotary encoder, capacitive touch, buzzer, and RTC — all built in. Powered via USB-C.

1

OpenSky Network REST API

Free public ADS-B REST API providing live aircraft state vectors over WiFi. No API key required. Queried via HTTP GET.

Assemble it in 5 steps

1. What you need

Just the M5Stack M5Dial and a USB-C data cable. No wiring, no breadboard, no extra components — everything is built in.

  • Make sure your USB-C cable is a data cable, not a charge-only cable — charge-only cables won't flash firmware.

2. Edit your WiFi credentials

Open the Code tab in Schematik and find these two lines near the top: const char* WIFI_SSID = "YOUR_WIFI_SSID"; const char* WIFI_PASSWORD = "YOUR_WIFI_PASSWORD"; Replace the placeholder text with your actual WiFi network name and password.

  • The M5Dial only supports 2.4 GHz WiFi — 5 GHz networks will not connect.

3. Set your home location

In the same code, find HOME_LAT and HOME_LON and replace the default London coordinates with your own. To find your coordinates: open Google Maps, right-click your location, and click the coordinates that appear at the top of the menu.

  • Latitude is the first number (e.g. 51.5074), longitude is the second (e.g. -0.1278). Negative longitude means west of the prime meridian.

4. Flash the firmware

Plug the M5Dial into your computer via USB-C and hit the Deploy button in Schematik. It compiles and flashes automatically. The M5Dial will reboot when done.

  • If the screen stays blank after flashing, press the small reset button on the side of the M5Dial.

5. Using the radar

On boot the M5Dial connects to WiFi, fetches live ADS-B data from the OpenSky Network, and shows a spinning green radar sweep. Aircraft appear as glowing dots at their real positions relative to you. Callsign labels appear next to each dot. Dots flash bright white when the sweep line passes over them.

  • Rotate the knob clockwise to zoom IN (smaller range, more detail). Rotate anti-clockwise to zoom OUT (wider view).
  • The range badge at the bottom shows the current zoom: 20 km / 50 km / 100 km / 200 km / 400 km.
  • Press the button under the screen to force an instant data refresh.
  • The AC counter in the top-right shows how many aircraft are currently visible in range.
  • If you see 0 AC, try zooming out or check that you are near an area with air traffic.

Review all connections

1. Connections between "m5dial" and "ESP32"

Functionm5dialESP32
powerUSB-C → USB-C power / PC for flashingEXT

2. Connections between "opensky_api" and "ESP32"

Functionopensky_apiESP32
dataWiFi → M5Stack M5Dial USB-CEXT

Deploy the firmware

Loading src/firmware.cpp…

Remix this project

Make it yours in one click

Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.

Open in Schematik