A Pi Zero sends an analog FPV view with overlays while recording clean HD video

Pi Zero, FPV, OSD

This is the read-only HTML version. For the full Visual Space experience, open the app.

Pi Zero, camera, FPV — Images

Pi Zero, camera, FPV — Images

Source: Raspberry Pi Zero FPV camera and OSD on Hackaday.io · Maksim Surguy

Analog video, camera overlays

Maksim Surguy’s camera project separates what the pilot sees from what gets saved: an analog video link carries the live view with on-screen information, while the Pi records footage without the graphics. Its 2016–2017 logs also expose the harder parts—measuring delay and keeping GPS updates flowing.

🎉 1

A live camera view needs information that you might not want baked into the recording. Maksim Surguy’s Raspberry Pi Zero FPV camera and OSD project on Hackaday.io tackles that split with a Pi Camera, an analog video transmitter and graphics added only to the preview. The goal is a first-person-view feed with useful on-screen data, alongside clean HD footage saved on the Pi.

Created on June 28, 2016, the project’s supplied build logs run through January 23, 2017. It’s an older design, but its central choice remains worth understanding: the Pi handles recording and graphics, while a hobby FPV radio carries its analog TV output rather than a Wi-Fi video stream.

One camera, two different views

The key software decision appears in Surguy’s July 14, 2016 overlay log. After considering other graphics approaches, he chose the PiCamera Python library’s preview overlays. Python’s image-drawing tools generate an array of pixels, and PiCamera places that image over the preview.

That placement matters. The overlay belongs to the displayed preview, not the recorded footage. Surguy’s example draws a crosshair and timestamps while recording an unmodified 1280 × 720 video at 30 frames per second. The project overview separately reports recording at 1080p and about 0.2 A consumption for the Pi Zero; that figure isn’t a stated power budget for the whole airborne system.

By January 23, 2017, Surguy was refining the display with separately positioned top and bottom overlays and a crosshair layer. Rather than covering the entire view with one graphics canvas, the layout reserves bands for text and leaves the middle clearer. The shown altitude, speed, coordinates and distance-home strings are hard-coded examples, so that excerpt demonstrates the layout—not a fully working set of live telemetry fields.

Analog transmission still leaves camera delay

In the transmitter connection log, Surguy connects the Pi Zero’s analog TV output to an FPV transmitter’s video input. His January 2017 setup used a $15 RangeVideo transmitter, which he reported gave a clear signal at roughly a quarter mile. That is a result from his setup, not a guaranteed range for another installation.

This also answers a recurring question in the comments: where is the code that transmits the video? In this architecture, the transmitter takes an analog video signal. The Pi software produces the camera preview and graphics; it doesn’t need to packetize a video stream for the radio.

But an analog radio link doesn’t make the whole camera-to-screen path instantaneous. A commenter explicitly raised the delay between the camera and the Pi’s video output, and Surguy’s September 16, 2016 latency tests provide a more useful account than his early suggestion of no latency.

He pointed the camera at a computer timer, then photographed the timer and received view to compare them. From those snapshots and other tests, he reported 8–60 milliseconds of delay while recording. It’s an informal measurement, not a worst-case timing guarantee. Surguy considered it adequate for low-speed drone flight, but the test doesn’t establish operational safety.

GPS makes the software coordination harder

The GPS integration log, also dated September 16, 2016, shows where a simple-looking overlay becomes a scheduling problem. Surguy tried both reading raw NMEA sentences from the serial port and using the GPSD service with Python bindings.

Direct parsing partly worked for position, altitude and ground speed. Keeping that serial reader running continuously alongside the camera-overlay code was the obstacle. GPSD worked for him, but he reported about 20% more CPU load, with roughly 40–50% still available. The tradeoff wasn’t just which parser to use: it was how to keep fresh sensor data arriving without obstructing the display loop.

The project links its code repository, though the excerpts here aren’t a complete installation guide. A later commenter reported Python-version and overlay-format errors, so reproducing the old scripts would require checking the software environment rather than assuming they run unchanged today.

The useful lesson is the separation of jobs: record a clean image, compose a different view for the operator, and treat sensor acquisition as its own continuous task. For a follow-up test, the revealing measurement would be camera-to-screen delay with recording, live GPS updates and overlay redraws all running together—not just the radio link in isolation.

Source: Raspberry Pi Zero FPV camera and OSD

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.