-
FM Demodulation Revisit
02/07/2022 at 20:14 • 0 commentsFinally came back around to revisit the FM demodulation mode of the AX5043, it has been 2 years since the first tests! One of the motivation factors is to get the VUHFRadio module to receive and demodulate NBFM besides the already working WBFM, and also to help the testing/investigate of using the AX5043 for the M17 project.
The first discovery in this revisit is how the FM sensitivity in receiving mode is set/defined. It turns out it is depended on the set RX BITRATE, which in FM mode is the sampling rate of the demodulated FM signal. The sensitivity is given by the equation bellow (taken from the programing manual as the meaning of the TRKFREQUENCY register) and taking into account that the DAC maximum output range is 1.65V:
This shows a problem, with low sensitivity the AX5043 will also have low bitrates, which is a problem in NBFM... This problem is well visible in the figure bellow, where all settings are kept the same except for the BITRATE, settings are for NBFM and are the same as for WBFM except with a DECIMATION value of 16.
This problem can somewhat be mitigated by decreasing the DACSHIFT register value, effectively adding a gain of 2, or more, to the DAC output, but this comes with increased noise at the output.
The other test that was performed was to see the effect of changing FREQGAINB0 (0x128) which, according to the programming manual, sets the FM Demodulation bandwidth but it does not say in what way. The tests performed show that it more or less follows the following equation:
An example of the effect of changing FREQGAINB0 (GB0) register is shown in the figure bellow. The settings used are the same as in the previous experiment, the NBFM settings, with the highest used sampling rate of 31.25 ksps, RX BITRATE set to 4096.
Resumed, it is possible to use the AX5043 for NBFM but with worse performance then with WBFM. Some additional test are planned, with filtering the output signal and with NBFM transmission. Also, the push-to-talk feature that was planned for the VUHFRadio module will be implemented and tested!
On the website there are some additional results for the above tests, for WBFM, and some additional info. The code with the register settings used for NBFM are not yet added to the code in GitHub but it will follow soon!
-
RadioInterface Update
07/18/2021 at 19:29 • 1 commentThe RadioInterface Module software has been updated to now be able to switch between both the two VUHFRadio channels, VHF and UHF, seamlessly. Also, some performance tweaks were done to the SPI driver that communicates with the LCD (ILI9341): removing the CS toggle for every byte transfer and keeping it LOW all the time, the transfer speed was more then doubled.
Also, a new special feature was added, a Waterfall window. It takes the RSSI and RF tracking variables and creates a Waterfall of it, with a "traditional' color gradient and vertical scrolling! The refresh rate is currently limited to 5Hz as it takes around 150ms to refresh the Waterfall window. The vertical scrolling consumes around 99% of this time as every line has to be read from the LCDs GRAM and written back one line/row further down. The hardware accelerated scrolling included in the ILI9341 LCD driver can't be used as it does not modify the GRAM content and therefore when the vertical scrolling mode is exited, to draw on other parts of the screen, the scrolling is lost.
There is still has some margin for improvements, specially in the refresh speed, but it is working pretty well and is very useful already. Bellow is a short clip showing the Waterfall Window working, with a frequency sweep at the VUHFRadio module input:
The updated code of the RadioInterface module is published on GitHub and a new section has been added to the website with some more information.
-
Digital Modulation and AX.25
02/03/2021 at 10:20 • 0 commentsWith the new RadioInterface add-on board working it was time to revisit the digital modulation/demodulation to tune and integrate them with it. Both AFSK-1200 and FSK-9600 (G3RUH) have been tested again but this time the modulation, TX, was tested using the RTL.SDR + SDR# + SoundModem combo to test that it works with HAM Radios.
This test can be seen in the short screen recording bellow, for AFSK-1200:
On the receiving side, the received packets are transmitted over USB and UART using the KISS protocol. The software of the RadioInterface has received an update so that it can receive and decode these packets and display their content on the screens GUI, as can be seen in the Figure bellow:
I also got back to make BPSK work and finally figured out the problem: There is a dedicated register, MODCFGP (0xF5F), for PSK modulation settings that is not mentioned anywhere in the documentation. I only found out about it in a recent blog post from OnSemi... (AX-RadioLAB configures that register appropriately).
With this, BPSK-9600 modulation is now also working and the emitted spectrum can be seen in the Figure bellow. The reception side on the VUHFRadio is not as good and need further testing and tuning.
-
The First Add-On Board
01/05/2021 at 11:28 • 0 commentsOver the last few months I started to develop the first add-on/expansion board for the VUHFRadio Module. This add-on board adds a TFT Screen, buttons and a battery manager IC/circuit so that the VUHFRadio Module can be used portable without a PC. This add-on board was planned since the begging of the VUHFRadio Project and is now finally starting to become reality.
The add-on module fits on top of the VUHFRadio inside the same enclosure and is connected with two cables, one for the communication over a UART interface and one for power. Bellow is a figure showing this new add-on board with the current GUI (not all that is shown is functional yet):
As can be seen in the picture, some components have not yet arrived, under them the buttons... The figure also shows the current GUI look. Some functionalities are already implemented and tested, under them showing the current RSSI value, the updating the RSSI bar, displaying the RF Frequency offset, as the green bar, and changing some of the settings like the RX Bandwidth and AGC speed.
The Module communicates over a UART interface with the VUHFRadio Module and uses the same CAT commands as the Module uses to communicate over USB. I'm working on expanding the CAT commands as needed to get as much of the configurations and settings of the transceivers available over the interfaces. The current CAT command list can be downloaded as pdf from the website.
The battery managing circuit has not yet been tested, not all needed components have arrived. As soon as I get them I'll post an update.
A new page was also added for this add-on board with all the design files and a interactive GUI to show better how it looks IRL: Radio Interface and the software is available on GitHub.
I sometimes post about progress of the GUI development, and other new projects on both twitter and Instagram.
-
FM Audio Modulation
11/12/2020 at 10:18 • 0 commentsAfter getting the Wideband FM Demodulation to work and achieving much better results then expected, it was time to test the FM Modulation mode. The base configuration is the same as used for FM Demodulation.
In FM Modulation, the internal ADC is used to control the FM deviation/shift. For this the ADC was set-up to use the differential inputs, GPADC13. The Analog Input circuit transforms the single ended AC coupled input into a differential signal in the ADC input range of +/- 500 mV around a VCOM of 800mV.
Bellow is a figure of this signal conditioning, in yellow is the Analog Input signal, the audio signal injected into the module, and in green and blue the differential ADC inputs.
This figure also shows a problem with the differential amplifier in use, with the current circuit the amplifier is not very stable and introduces an oscillation on top of the differential output signal. In the future a different amplifier will be used and tested but for now, even with this oscillation, the results are good.
The sampled signal by the ADC is then used to control the FM deviation. The conversion gain from ADC count to frequency deviation is controlled by the FSKDEV register and here it is set to use the maximum frequency deviation possible, +/- 62.5kHz, which gives the desired Wideband FM Modulation.
Bellow is a figure showing the RF output spectrum of the Module. The spectrum of the FM Modulation with a full range audio signal as the input, 100% volume from my laptop, is shown in yellow and with a half range signal, 50% volume, in red.
To listen to the FM Modulation any conventional FM receiver can be used, I used the FM receiver of my smartphone and it worked great! More information on the set up used to achieved this as well as an audio sample file output by my smartphone FM receiver are available on the website.
With this, the Module can now both modulate and demodulate FM signals. The next step is to test Narrowband operation, using a microphone as the Audio Input signal and implementing push-to-talk functionality.
-
Audio Filter Improvements
10/06/2020 at 11:57 • 0 commentsAs seen in the last project logs/updates, the module is capable of demodulating and outputting audio FM and AM signals. The audio quality is OK, not very good due to the way the DAC works and the not very good filtering of it. Over the last few days I researched different filter typologies to improve the audio quality and I tested a new one that uses the same circuitry as the previous filter, that is already present in the Module.
The previous filter used was a double RC Low Pass Filter, as can be seen in the figure bellow on the left. The new one tested is a double LC Low Pass Filter where the resistors of the RC filters are exchanged with inductors, as can be seen in the figure bellow on the right.
The double RC filter is a second order low pass and the new tested LC filter is a fourth order low pass, increasing the DAC filtering substantially. Bellow is a figure comparing the frequency response of both filters with ruffly the same cut-off frequencies:
Tests showed that the new LC filter improved the Audio quality as can be seen on the figure bellow where the Audio Output of the Module is shown, when in FM Demodulation mode. This can be compared with the previous project log, "FM Audio Demodulation", figure. The test conditions were the same.
-
FM Audio Demodulation
09/02/2020 at 20:04 • 1 commentAnalog FM demodulation, and modulation, is a unique and officially supported special feature of this transceiver. ON Semiconductor even provides an application note on how to set up and use the transceiver as an analog FM transceiver, "AX5043 Use as Analog FM Transceiver". Both the application note and the configuration used are for Wideband FM signals, the type used in FM Radio Broadcast. FM Radio Broadcasts were actually used to test the FM demodulation with good success!
As with the AM Demodulation, the basis of the FM Demodulation is the internal DAC. For FM Demodulation the DAC is setup to output the Frequency Tracking value. With the transceiver setup properly, the FM signal is first down-converted into the IF stage where the frequency change over time is tracked and output by the DAC. This tracking information is also accessible over the SPI interface of the transceiver.
To show the FM modulation in the IF stage, the DAC was configured to output the SAMPLE_ROT_I (or SAMPLE_ROT_Q) and a RF signal generator connected to the module is used to generate the FM signal, using as the modulating source a pure 500 Hz tone. In the figure bellow the FM signal in the IF stage is shown in blue and the pure 500 Hz tone is shown in yellow.
With the DAC setup to output the frequency tracking value, the FM demodulation, the signal observed is shown in the figure bellow. In blue is the FM demodulated signal and in yellow the original audio signal used as the modulation source.
As with the AM demodulation, a lot of noise is visible on the demodulated signal. This noise is also very clearly audible in the audio output of the module, through the audio jack. The main source of this noise is from the not well filtered DAC output.
Samples of the output audio can be listened to on my website, as well as all the configurations used to achieve the FM demodulation.
A little teaser on what I'm testing and working on for this project can be seen on my twitter, very early stages still.
-
Audio AM Demodulation
07/26/2020 at 20:15 • 0 commentsThis very unconventional use of the AX5043 transceiver was triggered by a question posed to me by a fellow Hackaday member, if the transceiver could be, somehow, used as an Audio AM receiver. Over the past week I explored this idea and it turns out that it actually can!
The basis for this is the very versatile DAC output of the transceiver which, among others, can output the amplitude tracking information of the signal at the entrance of the demodulator block. With the DAC set up to do this, the transceiver has to be "tricked"/setup to keeping the amplitude modulated signal at the IF stage, where this tracking information is calculated. The signal at the IF stage is visible in the figure bellow in blue (DAC set to output either SAMPLE_ROT_I or SAMPLE_ROT_Q), in yellow is the original audio wave:
With all properly setup, the DAC outputs the demodulated AM signal, the desired Audio signal, as can be seen in the figure bellow. In blue is the demodulated AM signal as output by the DAC and in yellow the original audio wave:
It can be seen that the demodulated signal is very noise. The main source of this noise is the not well filtered DAC output, even after a second order low pass filter. The transceiver uses a Sigma-Delta DAC. Even with this noise the performance is much better then expected, and by plugging in a headphone to the audio jack of the Module one can listen to AM audio transmissions!
More information on the set up used to achieved this as well as an audio sample file output by the Module are available on my website.
-
Hardware Revison 3
07/15/2020 at 19:31 • 0 commentsThe newest hardware revision, revision 3, arrived and I assembled and tested it over the last weeks. This revision fixes all the hardware errors and problems discovered with the revision 2 like the AX5043 Oscillator Input, analog output amplifier/filtering and in the power supply/distribution circuits.
The RF circuit, matching networks, were kept the same and this is reflected by the RF performance and input matching (S11) which are the same as with revision 2.
Besides that, the PCB color was changed to blue which in combination with no bodges looks much better and clean then the previous revision:
With this, I now have two assembled and working modules. This, with the antennas that arrived and where tested a few weeks ago, enables now communication testing between modules as well as range testing/comparison with different antennas and parameters.
Files for the new revision are available on my website.
-
Antennas
06/30/2020 at 21:16 • 0 commentsSome months ago, I ordered a bunch of dual-band antennas to use in this project and they finally arrived! The antennas I bought are shown in the figure bellow, from left to right they are a Nagoya NA-771 Clone, a Nagoya NA-771 Original, a UV-106UT Clone and a UV-108UT Clone.
All four antennas where tested with a R&S VNA to get there S11 parameters and in the future, I will perform field tests with the VUHFRadio to compare their ranges and “gain”.
The figure bellow shows the comparative result of the two NA-771 antennas in the Sub-GHZ band:
And the results for the same band for the UV-106UT and UV-108UT antennas are shown in the figure below:
Overall the NA-771 antennas have better S11 characteristics for the desired bands of this project. In general a S11 of bellow -10dBm is desirable (VSWR better then 2:1) as this means that over 90% of the power is delivered to the antenna, less than 10% is reflected.
A bit more in-depth results are available on my website as well as all S11 results files for download. I will also, overtime, add more results for other antennas to that page.