[Show/Hide Left Column]

Image This project is done in cooperation with the Budapest ham radio club HA5KDR(external link)

SSTV beacon based on Raspberry Pi

ImageThis project aims to build such a beacon that transmits images taken with its camera using SSTV(external link) over ham radio. The computing part is a Raspberry Pi Model A, and a Ricofunk UHF transceiver is used to carry the images over the air. The first beta operation can be watched on a YouTube video(external link). Working installations use a Raspberry Pi camera module to transmit live images, larger resolution photos of the build can be opened by clicking on the thumbnails, the full list of images can be found in a DropBox folder(external link).

Working installations

  • MH Altiszti Akadémia, Szendendre, Hungary
    • Frequency: 433.425 MHz
    • Modulation: FM / Martin M2
    • Timing: every 15 minutes
    • QTH locator: JN97MP 86uv(external link)
    • Coordinates: N 47° 39.28′ E 19° 04.51′

Sample images

Image received during assembly using speaker/microphone coupling
Image received from installed beacon using a cheap handheld radio and a smartphone from 12 km away


The first prototype used PySSTV(external link) to convert images to sound. As of v0.1.9, a (2 minutes long) Martin M1 image is generated in 4. A more effective solution is in progress at UNIXSSTV(external link), this is currently combined with PySSTV. The software pipeline can be seen below, source code can be found in the rpi-sstv GitHub repository(external link).

raspistill --(BMP image)-> PySSTV --(freq+time tuples)-> UNIXSSTV --(raw samples)-> sox

BMP was chosen since it wouldn't make sense compressing an image (wasting CPU cycles) right before parsing it in another component, and discarding the image forever. PySSTV is used for generating frequency-time tuples (e.g. 1500 Hz for 10 msec, then 2000 Hz for 25 msec, ...) as it's fast enough and it's easy to use PIL to manipulate the image, which in our case consists of resizing it and putting the callsign (HA5KDR) in the top left part of the image. UNIXSSTV performs the parts which are not that complicated, but would be too time consuming in pure Python in a constrained environment as the Raspberry Pi, and SoX(external link) (more precisely play) is used to divert the samples towards the audio output.

To avoid screwing up the SD card, by default, every part of the FS is either mounted in read-only mode (things like /home and /usr) or uses a ramdisk (things like /tmp and logs). The beacon is activated periodically using cron; even though the Raspberry Pi doesn't have a real-time clock (RTC), it can measure the time since it booted, so if configured to run every n minutes, it will do that, but it will not be synchronized to any clock.

Mounting the Raspberry Pi

The Raspberry Pi is mounted using two screws to the metal plate inside the case.

Image Image Image Image

Mounting the camera

The Raspberry Pi camera is mounted to the metal plate inside the case using screws and a floppy disk cut in half and put back together using hot glue.

Image Image Image Image

Connecting the transceiver and the RPi Image

The bridge to the right and with its schematics below makes three connections possible:
  • it exposes the Raspberry Pi serial console(external link) to a 6-pin header compatible with the USB TTL Serial cable(external link), using a voltage divider, so the device can be accessed without network connectivity
  • it connects the audio output of the Raspberry Pi to the microphone input of the transceiver
  • it makes possible for the Raspberry Pi to switch the transceiver into transmit mode by putting GPIO 18(external link) into high state (there could be a resistor between the GPIO and the LED, but the actual LED used didn't require one)

RS-232 level translation (serial console)

The voltage divider makes sure that voltage on the serial receive pin of the Raspberry Pi is 3.3 volts or lower. The other direction requires less attention as 3.3 volts are still above the 2.5 volts compare level used by the 5 volts FTDI cable.

Audio output

As it turned out the levels matched perfectly, we found it best to turn the volume to the maximum on the Raspberry Pi. Don't forget to select the appropriate output device(external link) if you have HDMI connected!

Transmit mode

Transmit mode can be switched using an NPN transistor connected to GPIO 18 (pin 12), for example using the following Python code (based on the openmicros example(external link)).
$ sudo python
>>> import RPi.GPIO as GPIO
>>> GPIO.setmode(GPIO.BCM)
>>> GPIO.setup(18, GPIO.OUT)
>>> GPIO.output(18, True)

Remote operation

ImageThe final placement of the Raspberry Pi requires to place the radio 10-15 meters away from the transceiver, and a UTP cable is used to transmit signal, TX control and power. The wire assignment is the following:

wirepurposeRaspberry Pi
orange+5V power supplyGPIO 1-2
orange-whitetransceiver PTT/TXGPIO 6
greentransceiver audio signal3.5 mm TRS jack
green-whitetransceiver audio signal GNDGPIO 3
blue-whiteUART GNDGPIO 3
brown-whiteUART GNDGPIO 3

Future plans / TODO

  • install more cameras around the city
    • and in other cities (countries?)
    • synchronize them to send images over a single frequency
      • using RTC?
      • listening into each others' signals? what about timeouts?
  • since the resolution of the cam is much better than SSTV, it could simulate panning
  • SSDV
  • add 2-3 seconds of silence after and before sending the image
  • add (enable) FSKID
  • handle pitch dark night
    • system info
    • long exposure

Contributors to this page: dnet922 points  .
Page last modified on Saturday 22 of February, 2014 15:49:40 CET by dnet922 points .

Upcoming events

1)  Mon 28 of Apr., 2014 19:00 CEST
eTextile workshop
2)  Tue 29 of Apr., 2014 19:00 CEST
3)  Thu 01 of May, 2014 16:00 CEST
Buhera szakkör