flowchart TB
app["Android app"]
gpredict["gpredict"]
stellarium["Stellarium"]
browser["Web browser"]
gwg["gpredict gateway<br/>rotctld :4533"]
gws["Stellarium gateway<br/>telescope protocol :10001"]
gww["web UI gateway<br/>:8080"]
pi["<b>Raspberry Pi</b><br/>FastAPI backend, sole owner of the UART<br/>coordinate math, travel envelope, tracking<br/>GNSS over gpsd with PPS, chrony"]
pico["<b>Raspberry Pi Pico (RP2040)</b><br/>Core 0: UART protocol / Core 1: motion<br/>PIO step generation, trapezoidal profile<br/>homing, scans, jog watchdogs, ADC"]
drivers["3 × DRV8825<br/>azimuth · elevation · polarization"]
mount["Three-axis mount<br/>and satellite dish"]
app -->|HTTP| pi
gpredict --> gwg
stellarium --> gws
browser --> gww
gwg -->|HTTP| pi
gws -->|HTTP| pi
gww -->|HTTP + WebSocket| pi
pi -->|"UART, ASCII: HOME / GOTO / STATUS / STOP"| pico
pico -->|STEP / DIR / ENABLE| drivers
drivers --> mount
mount -->|endstops| pico
Smart Radio Telescope
The Smart Radio Telescope turns a second-hand camping satellite antenna into a steerable radio telescope. The antenna arrived with a parabolic dish and three motorised axes already in it — azimuth, elevation and feed polarization — and with a controller that could aim at nine television satellites and nothing else. That controller was removed. In its place a microcontroller drives the motors in real time; a Raspberry Pi does the astronomy and owns the serial link; and a small family of gateways lets the whole thing be pointed from a browser, from a phone, or from established desktop software such as gpredict and Stellarium.
It is built as a collaborative school demonstrator, which shapes almost every decision in it: the parts are cheap and replaceable, every layer can be run and tested without the layer below it, and the entire stack — including a simulated microcontroller — starts on an ordinary Linux laptop with one command.
About This Page
This page is the entry point to a series of in-depth articles, one per layer of the system. Each article stands on its own, but they are written to be read in the order below, from the metal upwards to the software that a visitor actually touches.
- Rebuilding it? Start with the mount and the boards, then the firmware. Each article keeps its part numbers, pin assignments and measured values in a Reference section at the end. The mount article names the antenna to look for second-hand and what to strip out of it; its drive trains are not documented yet.
- Interested in the software? The backend, gateways, web interface and app articles are self-contained; the firmware article explains the protocol they all ultimately speak to.
- Teaching with it? The simulator described in the backend article runs the complete stack with no hardware at all, which makes the software layers usable in a classroom before a dish exists.
The Series
- The mount and the antenna — the second-hand camping satellite antenna the mount is made of, what was removed from it and what was kept, the three axes and their travel, the stepper motors, the endstops, and what a 37 cm dish can and cannot observe. (partly written — the drive trains and the feed still need photographs)
- The two boards — the motor-controller board around a Raspberry Pi Pico with three DRV8825 carriers, and the receiver front end with its LNB supply and RF power detector. (in preparation)
- Real-time motion on the RP2040 — the dual-core split, PIO step generation, the trapezoidal velocity profile, homing, raster scans, velocity-mode jogging with its watchdogs, and the ASCII UART protocol that carries all of it.
- The Raspberry Pi as sole owner of the serial link — the FastAPI service: REST and WebSocket API, coordinate mathematics, the travel envelope, sidereal tracking, the recorder, and the simulator. (in preparation)
- Speaking other people’s protocols — the hamlib
rotctldgateway for gpredict, the binary Stellarium telescope protocol, and the web UI gateway with its guarded proxy. (in preparation) - The browser control station — five tabs, a live signal strip, a sky view with a radio survey overlay, drag-to-draw raster scans with a live heat map, and a virtual joystick — in plain ES modules with no build step. (in preparation)
- The mount in your pocket — the Kotlin/Compose Android client, its shared pure-logic layer, and its F-Droid packaging. (in preparation)
Further articles on the coordinate mathematics, the radio sky map bundle, the operating-system provisioning and the project’s test strategy will follow once the seven above are complete.
System Architecture
The system is deliberately split into two very different halves. Everything that has a deadline lives on the microcontroller; everything that needs a calendar, a catalogue or a network lives on the Raspberry Pi. A single ASCII protocol over a UART is the seam between them.
Two properties of this arrangement are worth naming early, because they explain a great deal of the design in the articles that follow.
The Pi is the only process that opens the serial port. Nothing else in the system talks to the microcontroller, which is why the gateways are HTTP clients of the backend rather than peers of it. That single-owner rule is what makes the request/response discipline on the UART enforceable at all.
The gateways are separate services, not features of the backend. Each speaks one foreign protocol on one port under its own systemd unit, and each can be stopped, restarted or left uninstalled without the others noticing. A protocol the project does not care about costs nothing.
Project Status
The mount runs. Bench bring-up of the motor-controller board was verified on 2026-07-04, the backend was driven against the real hardware on 2026-07-23, and a full-stack session on 2026-08-08 pointed the real dish from the Android app, with the joystick, the health charts and the remote shutdown all exercised end to end.
What is not yet finished is stated in each article’s own Status section rather than smoothed over here. The largest open items are field-north alignment — the mount currently moves the right relative distances at an uncalibrated absolute azimuth — the reference current for the polarization motor, the remaining errors on the printed circuit board, and the fact that the radio sky overlay and the browser control station have not yet been driven on the dish itself.
The software is covered by 791 automated tests across seven suites — the Python backend and the three gateways, the browser modules, the Android client, and the firmware’s own host tests — and the complete stack runs against a simulated microcontroller, so most of it can be developed and demonstrated with no hardware present.
References
- Project repository: https://gitlab.com/radio-science-institute/projects/smart-radio-telescope
- Raspberry Pi Pico C/C++ SDK: https://www.raspberrypi.com/documentation/microcontrollers/c-sdk.html
- Hamlib
rotctldrotator control: https://hamlib.sourceforge.net/ - Stellarium telescope control: https://stellarium.org/