IEEE Spectrum - North American - March 2016 - 23

raspberry pi radio: The RS-UV3 was
screwed to wooden supports [bottom left] and
mounted. A USB adapter allows audio to pass
between the RS-UV3 and a Pi, while commands
are passed via a DB-9 connector [top left].
To reduce interference, I housed the RS-UV3 in
a foil-lined enclosure [bottom right and middle].
Signals are decoded with Fldigi [above].

But most people who have a radio want to
tune it to more than one frequency. You accomplish this, and other functions such as
adjusting the volume, by setting up a serial
connection with the RS-UV3's processor
and sending it commands. (The setup is
reminiscent of the old dial-up modem Hayes
command codes.)
You can establish the serial connection
in a number of ways, such as mounting an
Arduino directly to the RS-UV3 using the
provided through-holes and then wiring
two of the Arduino's input/output pins to a
header on the shield. Another option is to use
a header intended for FTDI serial cables and
connect it to a PC's USB port.
Or you can use the shield's versatile DB-9
connector. Along with serial transmit and
receive lines, the connector also provides
audio input and output to the transceiver and a
PTT control line. These serial lines use 3.3 volts,

rather than the typical 5 V. This is handy because 3.3 V is the operating voltage of the
Raspberry Pi. Consequently, you can connect
the RS-UV3 directly to the general-purpose
input/output header (GPIO) of the Pi without
much in the way of interface electronics.
And thanks to the upgrade in processing power that came with the release of
the Raspberry Pi 2, the Pi now has enough
horsepower to run Fldigi in addition to controlling the RS-UV3. So I did just that.
First, I built a simple hardware interface between the Pi's GPIO port and the
RS-UV3's DB-9 connector using an old
prototyping "hat" from Adafruit I had lying
around. I also created a wooden enclosure
(as is my wont) for the shield-lined with tinfoil to reduce radio frequency interference-
with a power switch and a PTT button on top
and a slot to hold the Pi.
I used the Pi's configuration tool so that
the Raspbian operating system wouldn't reserve the serial pins on the GPIO for its own
use. I tweaked a Python script I found online,
written by Fabio Varesano, to create a basic
command-line terminal to send commands
to the RS-UV3.
Then I turned my attention to using Fldigi
to listen to and generate signals for the

transceiver. I wired up two mono audio
jacks to the RS-UV3's audio input and output feeds. Unfortunately, while the Pi has a
built-in socket for audio output, it doesn't
have one for audio input. So, following the
advice of Lior Elazary's website, I purchased
a Syba USB audio adapter for the Pi and
plugged the jacks into that.
Installing Fldigi from its source code was
straightforward (I followed Jeffrey Kopcak's
online instructions, although without the remote access steps).
Firing everything up (with the Pi connected
to a keyboard, mouse, and monitor), I was able
to set the RS-UV3 to a suitable frequency and
communicate via a number of digital modes
to a nearby test rig (which consisted simply
of me holding up a handheld ham radio to a
laptop running Fldigi through its built-in loudspeakers and microphone in the quiet of IEEE
Spectrum's offices late at night). Success!
I now have a dedicated digital radio rig, for
less than $150 all told.
Future plans will require obtaining an amplifier, but I hope to build on this basic setup
to create a complete packet radio bulletinboard system that will fit in a relatively small
box. Just in case that whole mobile phone/
Internet thing has a hiccup. -stephen Cass

SPECTRUM.IEEE.ORG

|

nORTh aMERICan

|

MaR 2016

|

23


http://SPECTRUM.IEEE.ORG

Table of Contents for the Digital Edition of IEEE Spectrum - North American - March 2016

Contents
IEEE Spectrum - North American - March 2016 - Cover1
IEEE Spectrum - North American - March 2016 - Cover2
IEEE Spectrum - North American - March 2016 - 1
IEEE Spectrum - North American - March 2016 - 2
IEEE Spectrum - North American - March 2016 - Contents
IEEE Spectrum - North American - March 2016 - 4
IEEE Spectrum - North American - March 2016 - 5
IEEE Spectrum - North American - March 2016 - 6
IEEE Spectrum - North American - March 2016 - 7
IEEE Spectrum - North American - March 2016 - 8
IEEE Spectrum - North American - March 2016 - 9
IEEE Spectrum - North American - March 2016 - 10
IEEE Spectrum - North American - March 2016 - 11
IEEE Spectrum - North American - March 2016 - 12
IEEE Spectrum - North American - March 2016 - 13
IEEE Spectrum - North American - March 2016 - 14
IEEE Spectrum - North American - March 2016 - 15
IEEE Spectrum - North American - March 2016 - 16
IEEE Spectrum - North American - March 2016 - 17
IEEE Spectrum - North American - March 2016 - 18
IEEE Spectrum - North American - March 2016 - 19
IEEE Spectrum - North American - March 2016 - 20
IEEE Spectrum - North American - March 2016 - 21
IEEE Spectrum - North American - March 2016 - 22
IEEE Spectrum - North American - March 2016 - 23
IEEE Spectrum - North American - March 2016 - 24
IEEE Spectrum - North American - March 2016 - 25
IEEE Spectrum - North American - March 2016 - 26
IEEE Spectrum - North American - March 2016 - 27
IEEE Spectrum - North American - March 2016 - 28
IEEE Spectrum - North American - March 2016 - 29
IEEE Spectrum - North American - March 2016 - 30
IEEE Spectrum - North American - March 2016 - 31
IEEE Spectrum - North American - March 2016 - 32
IEEE Spectrum - North American - March 2016 - 33
IEEE Spectrum - North American - March 2016 - 34
IEEE Spectrum - North American - March 2016 - 35
IEEE Spectrum - North American - March 2016 - 36
IEEE Spectrum - North American - March 2016 - 37
IEEE Spectrum - North American - March 2016 - 38
IEEE Spectrum - North American - March 2016 - 39
IEEE Spectrum - North American - March 2016 - 40
IEEE Spectrum - North American - March 2016 - 41
IEEE Spectrum - North American - March 2016 - 42
IEEE Spectrum - North American - March 2016 - 43
IEEE Spectrum - North American - March 2016 - 44
IEEE Spectrum - North American - March 2016 - 45
IEEE Spectrum - North American - March 2016 - 46
IEEE Spectrum - North American - March 2016 - 47
IEEE Spectrum - North American - March 2016 - 48
IEEE Spectrum - North American - March 2016 - 49
IEEE Spectrum - North American - March 2016 - 50
IEEE Spectrum - North American - March 2016 - 51
IEEE Spectrum - North American - March 2016 - 52
IEEE Spectrum - North American - March 2016 - 53
IEEE Spectrum - North American - March 2016 - 54
IEEE Spectrum - North American - March 2016 - 55
IEEE Spectrum - North American - March 2016 - 56
IEEE Spectrum - North American - March 2016 - 57
IEEE Spectrum - North American - March 2016 - 58
IEEE Spectrum - North American - March 2016 - 59
IEEE Spectrum - North American - March 2016 - 60
IEEE Spectrum - North American - March 2016 - 61
IEEE Spectrum - North American - March 2016 - 62
IEEE Spectrum - North American - March 2016 - 63
IEEE Spectrum - North American - March 2016 - 64
IEEE Spectrum - North American - March 2016 - 65
IEEE Spectrum - North American - March 2016 - 66
IEEE Spectrum - North American - March 2016 - 67
IEEE Spectrum - North American - March 2016 - 68
IEEE Spectrum - North American - March 2016 - 69
IEEE Spectrum - North American - March 2016 - 70
IEEE Spectrum - North American - March 2016 - 71
IEEE Spectrum - North American - March 2016 - 72
IEEE Spectrum - North American - March 2016 - 73
IEEE Spectrum - North American - March 2016 - 74
IEEE Spectrum - North American - March 2016 - 75
IEEE Spectrum - North American - March 2016 - 76
IEEE Spectrum - North American - March 2016 - Cover3
IEEE Spectrum - North American - March 2016 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1217
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1117
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1017
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0917
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0817
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0717
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0617
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0517
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0417
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0317
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0217
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0117
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1216
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1116
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1016
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0916
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0816
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0716
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0616
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0516
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0416
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0316
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0216
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0116
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1215
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1115
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1015
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0915
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0815
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0715
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0615
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0515
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0415
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0315
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0215
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0115
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1214
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1114
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1014
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0914
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0814
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0714
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0614
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0514
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0414
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0314
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0214
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0114
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1213
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1113
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1013
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0913
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0813
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0713
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0613
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0513
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0413
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0313
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0213
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0113
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1212
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1112
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1012
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0912
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0812
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0712
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0612
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0512
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0412
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0312
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0212
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0112
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1211
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1111
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1011
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0911
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0811
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0711
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0611
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0511
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0411
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0311
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0211
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0111
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1210
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1110
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1010
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0910
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0810
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0710
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0610
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0510
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0410
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0310
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0210
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0110
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1209
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1109
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1009
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0909
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0809
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0709
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0609
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0509
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0409
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0309
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0209
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0109
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1208
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1108
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1008
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0908
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0808
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0708
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0608
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0508
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0408
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0308
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0208
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0108
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1207
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1107
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_1007
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0907
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0807
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0707
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0607
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0507
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0407
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0307
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0207
https://www.nxtbook.com/nxtbooks/ieee/spectrum_na_0107
https://www.nxtbookmedia.com