ESP32-ATV: Digital Amateur TV with a Tiny ESP32 Board and a Phone

Digital amateur television (DATV) usually means a PlutoSDR or a MiniTiouner, a PC, and some patience. Over the last few weeks I have been working on something much simpler: DVB-S2 on 13 cm (and 6 cm) with nothing but tiny ESP32 boards and an Android phone. This is the first of a short series about the project, called ESP32-ATV.

ATV RX/TX on Android: receiving the ESP32-C3 beacon and transmitting a test card

The idea

The ESP32 chips have a Wi-Fi radio on board, so they have a complete 2.4 GHz (and, on the ESP32-C5, 5 GHz) transmitter and receiver. With a few tricks, that radio can be driven directly:

  • Transmitting: SP8ESA showed that the ESP32-C3 can generate a real DVB-S / DVB-S2 signal with its own Wi-Fi RF hardware. Baris Dinc turned it into a stand-alone beacon.
  • Receiving: eSpDR dumps raw samples from the ESP32-S3 radio at 16 MS/s, which makes the S3 a small SDR. Baris Dinc’s ESP32-DATV-RX builds a DVB-S2 receive chain on it with leandvb.

ESP32-ATV puts these pieces together, fixes what was missing for real use on the air, and adds an Android app so you don’t need a PC at all.

What you get

BoardRoleBand
Seeed XIAO ESP32-C3Transmitter: a stand-alone beacon, or live TX from the phone13 cm
Seeed XIAO ESP32-S3Receiver: an SDR on USB-OTG of the phone13 cm
Waveshare ESP32-C5-ZeroTransceiver: RX and TX on one board (experimental)13 and 6 cm

And the ATV RX/TX app for Android, which:

  • receives DVB-S2 QPSK / 8PSK from 40 to 400 kS/s and shows the picture, sound, MER, constellation and stream information. It can record the stream as .ts, with MER / CNR as .srt subtitles (handy for range tests);
  • transmits the test card, the phone’s camera, or a picture / video file. The phone encodes H.264 + AAC + DVB-S2 by itself, and the ESP32 only modulates;
  • stores a beacon loop in the C3 or C5, which then transmits on its own from a power bank;
  • writes firmware into the boards over USB. No computer or toolchain is needed.

The app receiving a beacon: picture, status, spectrum and constellation

How it fits together

XIAO ESP32-C3  (beacon or live TX, DVB-S2 QPSK, 40–500 kS/s, 2345.000 MHz)
   ~ 13 cm ~>
XIAO ESP32-S3  (radio dump 16 MS/s -> 333/500 ksps over USB)
   -> Android: ATV RX/TX (leandvb + ldpc_tool, MediaCodec)   or   PC: rx/rx.sh

ESP32-C5-Zero  (transceiver: TX and RX on one board, 13 and 6 cm)
   ~ 6 cm ~>
ESP32-C5-Zero  -> Android (the same app)   or   PC

The DSP all runs on the phone: the leandvb demodulator and the ldpc_tool LDPC decoder are cross-compiled for Android. The DVB-S2 encoder for transmitting is our own code in C.

What it is (and isn’t)

These are milliwatt-level signals from boards that cost a few euros. They have no TCXO, and the crystals drift while they warm up. That’s why the project uses low symbol rates (40–333 kS/s): they are narrow and robust, and the software follows the drift. On the desk, and over short paths with a decent antenna, it works surprisingly well. In November I made a QSO with the IZ7PDX DATV parrot at OK1KCI with a single ESP32-C5 board, transmitting and receiving. For longer distances, the C3 has a PA enable output (GPIO3) to key an external amplifier.

Everything is free software (GPL-3 for the app and scripts; third-party parts keep their licences).

Try it

  1. Install the APK from Releases.
  2. Connect a XIAO ESP32-S3 to the phone with an OTG cable, then use menu ⋮ → Firmware to write the receiver.
  3. Pick a preset (e.g. 2345.000 Beacon 50k QPSK 3/4) and press Start.

Coming next

Next week: 13 cm in practice. We’ll build a C3 beacon, use the S3 receiver, transmit from the phone, and calibrate the carrier leakage. After that come the ESP32-C5 for 13 and 6 cm and a look under the hood of the receiver.

Series: ESP32-ATV
  1. ESP32-ATV: Digital Amateur TV with a Tiny ESP32 Board and a Phone (this post)
Tags: ESP32-ATV  DATV  ESP32  13cm  6cm  Android 

Table of Contents