So You Need To Make Your SDR Work On Different Frequencies

Perhaps probably the most thrilling information of the previous few weeks within the globe of {hardware} hacking has been the unlocking of hidden SDR functionality within the Wi-Fi radios discovered on Espressif ESP32 microcontrollers. They can be utilized as each transmit and obtain SDRs, and provided that it’s early days for this hack we anticipate that nice issues are but to come back.
There’s one snag although, regardless of hypothesis that they is perhaps dragged all the way down to a lot decrease frequencies, so far as we all know they’re solely confirmed to work across the Wi-Fi frequencies. Though the fact could also be wider we’ll take that for a 2.4 GHz half as a 100 MHz slice from 2.4 GHz to 2.5 GHz. Plenty of potentialities there, and so they may even work all the way down to 1.8 GHz, however there can be a lot extra to do if it may work elsewhere within the spectrum. So it’s time to take a look at the converter, a tried and examined outdated approach to make a radio work on a distinct frequency.
A Lesson From Analogue Receivers
I hope most of you may be conversant in what occurs if you combine two frequencies; the ensuing spectrum accommodates each their sum, and their distinction. This was the mechanism behind the tuning dial in your analogue radio or TV, the dial moved an oscillator, and a delicate circuit tuned to a so-called intermediate frequency would filter out the distinction frequency between the oscillator and the station you needed. A number of years in the past we had a deep dive into the UHF hackers playground of an analogue TV tuner, the place we examined this in depth.
A converter makes use of precisely this precept. The antenna frequency vary is combined with the output of a hard and fast oscillator whose frequency is chosen in order that their distinction represents the frequency band of your radio. THus tuning your radio tunes throughout the output of your mixer, which is similar as tuning throughout the antenna frequency vary. For a numerical instance, if the ESP32 receives from 2.4 GHz to 2.5 GHz, a mixer on its enter with a 2 GHz native oscillator would permit the ESP32’s receiver to choose up the 400 MHz to 500 MHz band. In follow the circuit requires filters for each enter and output to maintain out-of-band stuff from going the place it shouldn’t, nevertheless it actually is that straightforward. Best of all, with applicable dealing with of energy and amplification, it really works for transmitters too, and such a tool known as a transverter.
Towards An Achievable Receive Converter
To make a sensible converter then, we’d like an enter filter, a mixer, an output filter, and a neighborhood oscillator. The filters are sometimes off-the-shelf components and needn’t be too costly, the mixer may be so simple as a quick Schottlky diode, and the native oscillator may even on this case be one other ESP32, they’re that low-cost. You can add amplifiers if you need and what I’m about to explain is a considerably janky obtain converter, however it may be made to work.
The Filter

In most circumstances such a converter will probably be meant to obtain indicators decrease than the ESSP32’s vary, so let’s assume you’re wanting someplace from HF via to VHF. The enter filter has to reject something above your most enter frequency and cease any stray native oscillator leakage to the antenna, which most of you’ll establish as a low-pass filter. These may be purchased off the shelf for a worth, however are straightforward sufficient to make for your self.
The most typical low move filter is also known as a Pi community as a result of its circuit superficially resembles a Greek letter Pi, and takes the type of an inductor within the sign path with a capacitor to floor both facet of it. If you realize your maths you may calculate the values for your self, however when you don’t there are a lot of on-line Pi community calculators that will help you. Constructing a Pi community at these frequencies is simple sufficient.
For the output filter, you want one thing that rejects the native oscillator frequency as a lot as attainable, and passes the ESP32 obtain vary. Here you’re in luck, as a result of the Wi-Fi {hardware} business wants precisely these filters, to allow them to be had from Mouser or Digi-Key for reasonable. I’m not going to specify a specific half, however I’d prefer to level you at the TDK Wi-Fi filter range and invite you to choose one with the bandwidth you want.
The Local Oscillator
Your native oscillator for an ESP32 working at a lot decrease frequencies is prone to be round or above 2 GHz. Back within the day you’d have used a crystal oscillator and multiplier circuits, when you like you should purchase an costly PLL oscillator module, however your easiest and possibly least expensive methodology is to make use of one other ESP32, now that it may be used as an SDR transmitter. Program it to output a single service in your desired frequency, dial down the output stage, and there you may have it, a 2 GHz native oscillator for a greenback or two.
The Mixer
Yet once more you should purchase an off the shelf mixer as a module, although one for a 2.4 GHz output will probably be costly. Happily there’s a easy circuit which might do the job, and it makes use of a diode as a non-linear aspect fed with each antenna and native oscillator indicators. At these frequencies you’re searching for a really quick small-signal Schottky diode with as low a capacitance as you will discover, and fortunately such components can be found from a number of producers at cent quite than greenback costs. The fundamental circuit is proven under, and as you may see it’s fairly easy.

In the circuit above the diode is your Schottky machine, the enter low move filter isn’t proven, and the output filter is an off-the-shelf Wi-Fi bandpass filter. The two thick strains characterize a stripline coupler, and they’re merely two parallel PCB traces facet by facet over a groundplane. Their measurement ought to ideally be calculated to current the correct impedance, typically 50 ohms which can also be the worth of R1, however in follow the jankiest options can work right here. With an ESP32 as a neighborhood oscillator I’d hazard a guess that laying the hint on the PCB beneath the module’s antenna with the ability turned down can be sufficient. I could earn the scorn of a few of my friends, however I’ve a protracted historical past of RF bodging and I believe it’d simply work.
Making It Transmit
The identical method as above works for shifting the ESP32’s transmit output all the way down to the specified frequency, however there’s a catch. Even the modest output from an ESP32 may be sufficient to wreck or overload components designed for receivers, so you may have two decisions. Pick transmit-appropriate components, or dial again the ability to a low stage, and amplify it on the decrease frequency.
By Now, You Should Be Able To Bodge A Converter
The data above isn’t a ready-to-go design for a obtain converter to get your ESP32 listening to decrease frequencies, nevertheless it ought to provide you with all of the signposts it’s essential get there. People have built converters for the RTL-SDR for ages now, so you can pilfer concepts there too. If you construct a downconverter, for transmit or obtain or each, tell us!
At a superconference a couple of decade in the past there was a talk about RF construction techniques which can prevent a variety of ache, and with luck such a easy circuit ought to be inside your grasp. Good luck.

![TV tuner front end block diagram. Derived from Chetvorno (Own work) [CC0], via Wikimedia Commons](https://hackaday.com/wp-content/uploads/2016/07/rf-front-end.jpg)