DATV - Portsdown & SDRangel
These are some notes about using the LimeSDR Mini (and perhaps the LimeSDR USB in a later update) for use as a TV transmitter Digital Amateur TeleVision or DATV. The first part is about setting up the LimeSDR Mini on a Raspberry Pi, then about configuring the RPi Portsdown software for transmission, and finally a sample result receiving on an Airspy Mini USB dongle using the SDRangel software under Windows.
I bought a couple of LimeSDR devices (indeed, I was one of the original backers), but testing the devices in a Windows system had always produced errors on both devices, even when using a USB 3.0 hub. After posting this on Twitter, a couple of BATC (British Amateur Television Club) suggested I try the device in a Linux box, in particular one running the excellent Portsdown software. This is well-known and has active support (a requirement for most things these days - no instructions in the box!). This also interested me because I had used the DATV Express software on a Windows system to transmit DATV from an ADALM-Pluto SDR.
Testing the LimeSDR Mini with the Portsdown software
The first step was to install the Portsdown software on the Raspberry Pi. As I happened to have a Pi 3B+ to hand (doesn't everyone have a spare Raspberry Pi card somewhere!) I used that. It has the same system software installed as recommended by the BATC. They also provide an install script to do everything you need to set up, but unfortunately the script expects the tools GIT and CMAKE to be already installed, but those appear to be missing from the Raspbian Stretch Lite download, and had to be installed manually. I got lots of help from Dave G8GKQ resuling in the following list of suggestions and my responses.
Configuring the Portsdown software for transmission
Pressing the spacebar in the opening whiptail menu turns the Raspberry Pi to a TV transmitter on 437.0 MHz, using a 333 ksps 7/8 QPSK signal. This using rapid toggling of one of the RPi GPIO pins, so putting a receiver near to the RPi you should hear something. If you've already stepped ahead and configured the SDRangel software.
We need to tell the RPI that it should send its output to the LimeSDR Mini, so use the cursor keys to move down to option 2 and press Enter.
There's no need to alter most of the parameters, but here's the symbol rate setting:
.. and the Forward Error Correction:
Here's the important one! Cursor key down to the LIMEMINI option, press spacebar, then tab to the OK box and press Enter.
Next come the packet identifiers. Just tab, OK through these.
Now we choose the transmission frequency. Note that you need an Amateur Radio licence to transmit, and please keep within the allocated frequency band and sub-bands for amateur television.
The Trasnsverter option is folk who may be changing the output frequency of the RPi with external kit.
Both US and UK TV standards are provided. I expect the options may change when you use a video source other than the built-in testcard.
Using the SDRangel software
These are the settings I used with the Airspy Mini. You adjust the gains to get a good signal-to-noise ration without overloading the receiver or subsequent processing. Add a DATV plugin from the drop-down list, select the DATV tab on the left of the DATV settings, and select:
I suggest playing with the other settings to get the best constellation diagram (the four fuzzy purple dots) you can - i.e. make the dots the least fuzzy. When you start to see the buffer filling up you know there is video accumulating, waiting to be displayed, so ....
... you can now switch to the Video tab and display your image!