A Universal Control Box for Software Radios with a Built-In Teensy 3.6 Processor

by Bob Larkin, W7PUA

This Control Box is plug-in adaptable to different radios including the DD4WH Convolution SDR and (soon) the W7PUA DSP-10

Control Box running DD4WH SDR
Figure 1 - This version of the Control Box was built in a plywood case that has metal tape for shielding. It is shown here running the DD4WH SDR, but not receiving signals.

Introduction - It seems like every microcomputer project includes tossing together buttons, knobs and displays, often lying out on a table. This is OK if the project is of short life. But, often what was intended to be a quick demo stays around and the proto wires live on (and get unreliable). This control box is intended to move this process up a bit. It has all the control stuff tucked away in the box and a 25-pin D connector is used to hook to the things being controlled. The primary "things" for me are radio receivers and transmitters. Radio receivers have special needs in that they are very sensitive and pick up noise such as is generated in digital control hardware. So, the D connector becomes the interface between fast and noisy digital operations and the sensitive radio circuits. This allows RF filtering on both sides of this interface, as may be needed.

I never know what sort of control might be needed for the next project. Most of us don't! So in addition to planning for the two projects that are already defined, the board allows for quite a bit of expansion. It is the Swiss Army Knife approach, and ends up with the following:

Note that nothing in this Control Box involves RF signals. That is all accessed via the D connector. Thus if a general Teensy project comes along, it can be plugged in and operated by this hardware user interface. In addition, if the project just involves controlling audio, nothing needs to be plugged into the D connector at all. The Teensy 3.6, Audio Adaptor, display and controls are all ready to be used.

Hardware -The box above uses aluminum front and back panels. The box happens to be constructed of wood, but metal, or even plastic could be used. The non-metal styles use metal adhesive tape to enable shielding and grounding control. With the tape the structural material can be anything. Inside the box is PC Board, about 4x4-inches (100x100 mm). The main function of the board is to hold a bunch of connectors and to connect these up to the Teensy along with suitable driver IC's.

Access to some of the Teensy pins is done by rectangular pads on the bottom of the Teensy board. This is not convenient for making the Teensy plug-in. An extension board is available and discussed here. These boards are available from OSH Park in multiples of 3. To work with this extension, three sets sockets are on the main board in rows of 7, 7 and 5.

Two other connections can be made to the Teensy via pins on that board and sockets on the main board. A set of 5 pins makes the Host USB port available. These come out to a header, P6, on the main board. Similarly, the 5 Volts supplied to the Teensy from a Host PC is accessed by a single pin that goes to pad E41.

The schematic is on four sheets, that are in this .pdf file.

The Part List (BOM) is available as a text file. This includes ordering info for many parts. There are three rotary encoders that use two different class of parts. The two Bourns PEC11L-4125F-S0020 are simple mechanical quadrature encoders with steps, and also have a switch that is actuates by pushing on the knob. These work fine for functions like gain controls and channel selectors, as they have 20 pulses per revolution. High Resolution Rotary Encoder The third encoder, shown on the right, was obtained from ebay. It is very high resolution and has no mechanical indents. It can be used for tuning functions giving no indication of the data coming in steps. It has excellent bearings and such smooth movement as to requiring a friction device for some applications. This type, shown in the picture, is available from many sources, with some variation in spec's. They have sold for around 10 to 12 USD. Mine has 360 pulses per rotation for each of I and Q and has a general description on ebay of: Output is NPN open collector. For measuring goods angle, acceleration, length measurements and the rotational speed Small size, light weight, easy to install, cost-effective Color: Black, Size:5 x 3.7 cm


The PC Board is available from OSH Park in multiples of three. The drawing below includes construction markings (such as part outlines). It is useful for seeing what the board is going to look like as well as for supplying assembly information.

Top Side PCB - Click for larger image
Figure 2 - This is the main PC board. The Teensy 3.6 plugs into the center group of 72 socket pins, including the 4 pins for the Host port and a single pin for the 5 Volts from the device USB socket. The Audio Adapter plugs into the Teensy 3.6, using 0.1-inch (2.54 mm) socket-pin extenders. Click on the picture for a larger version.
Bottom Side PCB - Click for larger image
Figure 3 - This is the bottom of the board, seen from the bottom, i.e., flipped left to right. No components are mounted on this side, and the amount of ground plane is both maximized as well as having ground blocks cross-connected on the front side. Click on the picture for a larger version.
Control Box back panel - Click for larger image
Figure 4 - The back panel is mostly connectors. The D connector must align with the circuit board. Other connectors and switches can be placed to suit. The black cable goes inside to the Device micro-B USB connector on the T3.6 board. Click on the picture for a larger version.
Control Box with cover off - Click for larger image
Figure 5 - I think I forgot to take a picture of the assembled PCB, when it is not in the enclosure. So, here is a picture of everything with the top cover removed. The Teensy 3.6 has stackable headers soldered from the top where the Audio Adapter plugs in. These go into the main PCB that has sockets soldered to it. The remainder of the T3.6 has header pins from the bottom, including the extension board pins and 5-pins for the USB Host. The Teensy Audio Adaptor has either header pins from the bottom, or it can use stackable headers from the top, although the top sockets would not be used. The extension board for the T3.6 gets soldered to the bottom of the T3.6 board, and header pins are soldered from the bottom of it. See post #20, and its clickable pictures, of the extension discussion for a picture of the T3.6 pin arrangement. Lastly, if you might ever want to derive 5-Volt power from the USB connection to a PV, install a single header pin at J5. Click on this picture for a larger version of the box insides.

Detailed description - Details are available in the Control Box Use document. Included are the various interfaces as well as recommendations for specific SDR's. Be sure to read through and understand this document. There are many options, some you need and some you may not. An example of this is the DC power selection for running this box, which is described in detail.

The discussion here has been mainly about the hardware involved. Obviously the software is also a big part of making things happen. Most of that will need to wait, but to see a bit about using the Box, here is the Control Box test program as a text file. After the PJRC Teensyduino package is added to the Arduino IDE, this .ino file behaves like any other Arduino program (sketch).

Notes:

  1. The DD4WH Convolution SDR project documentation is in several locations on the Web, all with good information. This link and the next two notes are good starting places. https://github.com/DD4WH/Teensy-ConvolutionSDR/wiki
  2. More DD4WH Radio https://github.com/DD4WH/Teensy-ConvolutionSDR
  3. More DD4WH Radio https://forum.pjrc.com/threads/40590-Teensy-Convolution-SDR-(Software-Defined-Radio)
  4. The DSP-10 is a SDR project published in a 1999 QST series. The starting link for this project is http://www.janbob.com/electron/dsp10/dsp10.htm    Work is underway to modernize this SDR using the SDR Control Box.

Back to W7PUA Home Page

Issued 28 Feb, 2018. Revised: 2 March 2018 Added .ino file. Revised 25 Jan 2019: Added Part List and Rotary Encoder info plus more construction detail. - All Copyright © Robert Larkin 2018