All work

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.

Nearest flights:

    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.

    1. 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.

    2. 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.

    3. 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.

    4. 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.

    • SkyWatch screen showing aircraft over New York on a map, with the nearest flights listed beside it
    • SkyWatch on the bench: the 3.5-inch screen wired to an ESP32 board on a silicone mat
    • ESP32 development board with jumper wires to the screen and its status LEDs lit

    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.

    Wiring between the KS0214 screen header and the ESP32: ten connections for power, the SPI display bus, and touchKS0214 screen · 26-pin headerESP32 DevKitPowerPin 25VVINPin 6GNDGNDPin 13.3V3V3Display (SPI)Pin 19MOSIGPIO 23Pin 23SCLKGPIO 18Pin 21MISOGPIO 19Pin 18DCGPIO 2Pin 22RSTGPIO 4Pin 24LCD CSGPIO 15TouchPin 26Touch CSGPIO 21
    1. Pin 2 5VVIN
    2. Pin 6 GNDGND
    3. Pin 1 3.3V3V3
    4. Pin 19 MOSIGPIO 23
    5. Pin 23 SCLKGPIO 18
    6. Pin 21 MISOGPIO 19
    7. Pin 18 DCGPIO 2
    8. Pin 22 RSTGPIO 4
    9. Pin 24 LCD CSGPIO 15
    10. Pin 26 Touch CSGPIO 21
    Power goes in first, with a checkpoint: the backlight has to glow before any data lines are added. MISO is shared by the display and the touch controller, each with its own chip select.