SkyWatch: live air traffic on an ESP32
A touchscreen that shows the planes over New York in real time. The ESP32 pulls live ADS-B positions over Wi-Fi, draws them on a map it renders itself, and lets you tap any flight for its type, altitude, speed, and heading.
- Built fall 2026
- ESP32
- 3.5″ ILI9486 TFT
- XPT2046 touch
- C++ / Arduino
- FreeRTOS
- ADS-B over HTTPS
Recorded Dec 1, 2026. Tap a plane or the range button.
The same screen, running in your browser: same layout, map projection, and plane icons as the firmware. Press Go live for the real flights near LaGuardia right now.
Fit TLS and a full map into a microcontroller
The map is a 4-bit, 16-colour sprite, and each flight reply is parsed as it streams in with a field filter, so an HTTPS connection and up to 60 aircraft fit in memory together.
Keep the screen smooth while the network works
Fetching runs as its own FreeRTOS task on the second core and hands data to the render loop through a mutex. Between 5-second updates every plane is dead-reckoned from its speed and track, so it glides instead of jumping.
Draw the map on the device
Coastlines and borough borders come from US Census shapes, rasterized on the ESP32 with a scanline polygon fill and cached at 2 bits per pixel. Changing the range from 5 to 40 nm rebuilds it.
Find the bugs that only show up on hardware
SPI traffic to the display was disrupting Wi-Fi, so drawing now pauses during each fetch. Wi-Fi power-save was making HTTPS connections time out, so it is turned off.
- Code on GitHub See the wiring
Wired from a pin map
Before touching a wire, I mapped all 10 connections between the screen's 26-pin header and the ESP32 in an interactive 3D pin map, then built it in order.
- Pin 2 5VVIN
- Pin 6 GNDGND
- Pin 1 3.3V3V3
- Pin 19 MOSIGPIO 23
- Pin 23 SCLKGPIO 18
- Pin 21 MISOGPIO 19
- Pin 18 DCGPIO 2
- Pin 22 RSTGPIO 4
- Pin 24 LCD CSGPIO 15
- Pin 26 Touch CSGPIO 21



