Design a 4x16 Decoder Using Five 2x4 Decoders With Enable

Homebrew uSDX SDR TRX

Introduction

TheµSDX is a new open source, home brew multi band, multi mode QRP transceiver family that grew out of the QRP Labs QCX. Through some serious wizardry it retains an efficient "class E" RF amplifier for SSB and digital modes. It crams impressive SDR capabilities into an 8-bit ATMEGA328P.

you can find on this page an alterrnative design : https://f5npv.wordpress.com/usdx-sdr-1-02-custom-design/

The µSDX  is not a product! It is is a family of developments using similar approaches. There are several design streams and often several versions of a design.

The µSDX Group is an open source development community. It is not a support group for a particular product. People participate because they enjoy not only developing projects but sharing what they have created. Unlike open source developments with a single leader, like Linux with Linus Tovalds, this effort has many people pursuing their own personal interests. People help because they are good people that like to nurture others.

All credits to :

* Manuel DL2MAN https://dl2man.de/

* Barb WB2CBA https://antrak.org.tr/blog/usdx-a-com…

* Guido PE1NNZ https://github.com/threeme3/QCX-SSB which were based on the

* QRP-Labs QCX by Hans G0UPL http://www.qrp-labs.com/qcxmini.html

One of my favorite forum : https://groups.io/g/ucx/topics

The project

uSDX WB2CBA v1.02 PCB using 1.02X firmware . This is a triband (80,40 and 30/20m) version and the LPF is located on the side of the enclosure from Amateurradiokits (many thanks once more Sunil Lakhani for your great product)

I am not using Q5 and the output power is about 2 up to 3w . My bias setup is 10 and 90, drive setting is 3.

Receive and TX are great and surprisingly the modulation is not so bad (The LPF shoud be perfectly tuned in order to provide a good modulation . An out of shape LPF is providing a terrible modulation with a lot of IMD)

Last week-end i used this TRX during the French National CW contest and the rig was performing really well, the CW decoding was amazing.

During the initial build i was using very cheap resistor and capacitor from my junk but the result was not acceptable with a high noise floor . I replace them with good quality components and the result was day and night compare to initial build .

Way-ahead: add a tiny radiator on the output transistor for a good cooling and using the pin 17 to control the external power amplifier (30/50watts).

So far so good a great TRX considering the size and the simplicity of the design and i use mostly this tiny transceiver FT8 and PSK31 modes. This transceiver is performing really well for digital modes.

ATMEGA 328P Sketch

You can download the sketch from here :

https://github.com/threeme3/QCX-SSB/tree/feature-rx-improved

Schematic

Custom release

SI5351
Control
Rotary Encoder
Class E Output
Detection
Power Supply
Tayloe Mixer

BOM

You can download the bill of material from here:

https://drive.google.com/file/d/1dwrMmMtzmkc0MxhJFjMCbdZmg3t116QB/view?usp=sharing

All componens are coming from Mouser

To to download the PCB , you can directly order from PCBWay

https://www.pcbway.com/project/shareproject/uSDX___An_Arduino_Based_SDR_All_Mode_HF_Transceiver.html

The LPF PCB

https://www.pcbway.com/project/shareproject/Multi_Band_LPF_Module_for_uSDX___An_Arduino_Based_SDR_All_Mode_HF_Transceiver.html

https://www.pcbway.com/project/shareproject/uSDX_HF_SDR_TriBand_Module.html

The Build

All instructions are located in rhis following documentation:

https://drive.google.com/file/d/1E-HHCsHTksZPEKP4dhncCDxKg7idS__z/view?usp=sharing

Serial Resonance LPF Band Module

You really need to pay a special attention during the build of the LPF. A NanoVNA is mandatory for a fine tuning .

The Usdx is using a EER amplifier which is dependent with the self resonnance LPF filter . With a wrong tuning LPF you will notice maybe a great output power, therefore the output is full of spurious and IMD . The wattmeter is totally flooded with spurious and in fact is giving you a totally wrong measurement. The second side effect is regarding the modulation . A out of shape LPF is providing a terrible modulation.

You need to check the current during the transmmit and it sould be not above 200ma for 2 to 3 Watts . If your current is above 200ma (for 3w output) , your output transistors are not acting as a class E but more or less like a Class C Amplifier . Bear in mind the main benefit of class E amplifier is EFFICIENCY.

For 13.8vdc:

-Class C Amplifier delivering 2 watts , the current will be about 400ma with 40% efficiency

-Class E Amplifier delivering 2 watts , the current will be about 190ma with 80% efficiency

Efficiency of common QRP PA devices (2N7000, BS170) drops off at 14 MHz and above

  • ~80 to 90% efficiency at 10 MHz and below
  • ~70 down to 50% efficiency at 14 MHz and above

You can download the full guide here :

https://drive.google.com/file/d/1gTrgEr35jVqhOBLtAyXVXbll8pPXNoIN/view?usp=sharing

The Serial Resonance TriBand Filter Module:
This module is also plug in type like band module but consists of 3 independent serial
resonance low pass band filters for three different bands of your choice which can be selected
with two 3 position slide switches.

Switch 1 is used to switch PA input between bands and switch 2 is to switch output of the band low pass filter to antenna.
The serial resonance filters are identical in schematic and only the values of components are band dependent and varies for each band.
3 bands can be build mix and match meaning that 3 bands of your choice. Don't forget which band slot holds which band and choose the right components from above posted table for the right band you decide to build

Triband LPF remote connector

The following adapter is provide you the ability to install the 3 band LPF module remotely (Means not on the circuit board)

In case you are using the Triband LPF, you can use the following tiny interface in case you need to install it in the casing apart from the PCB connector:

The tiny circuit in place of the LPF

This tiny interface to be connected in place of the LPF. This interface will provide you the remote link capability from the PCB to the LPF board. The 12v for the drain network is located in this tiny interface (TD). For testing purpose i have added a 10nf capacitor to prevent the 12v to reach the LPF . I will test it like that and in case if not completely successful i can replace the C2 capacitor with a jumper. For the inductor my plan is to stick with the original design using a toroid , i will test also with a 100uh inductor.

You can find all details here : https://easyeda.com/F5NPV/usdx-5-band-module-adapter

Spectral and Modulation purity

The main issue regarding this simple design was the spectral and carrier purity which was a disaster with the stock 1.02m firmware especially for SSB mode and AF frequency above 2000hz.

According the Spectral purity and harmonics , the LPF should be perfect . No compromise and you should use good quality components (Capacitors and Toroids)

In order to correct AF and carrier purity , the following mods shall be applied:

-I am using a Electret microphone and you shoud add a 10nf capacitor between the electret microphone + and the ground. This mod is providing a basic filtering in order to prevent the AF to reach above 3Khz which was the case ( Basically the AF bandwidth with stock setup was above 4khz which is not acceptable).

-The second mod is regarding the firmware . Since we are using very simple component with limited sampling rate , a firmware modification is deemed to be in place to achieve a good spectral purity with a decent modulation quality .

You can download from here the modified firmware :

https://github.com/threeme3/QCX-SSB/tree/feature-rx-improved

For measurement i am using a TINYSA spectrum analyzer and homemade Dummy load& Directional coupler. I can setup the attenuation in the TINYSA but also on the directional coupler

Measurement at 2watts output without the Mosfet amplifier

My LPF is providing the following performance :

-2nd Harmonic ~48 db down
-3rd Harmonic ~59 db down
All other more than 70 db down

Measurement at 25watts output with the Mosfet amplifier

-2nd Harmonic ~-58 db down
-3rd Harmonic ~-60 db down
All other more than 70 db down

Modulation and fundamental check CW Carrier with the 25w amplifier

Modulation and fundamental check 1000hz with the 25w amplifier

With both measurement , the carrier is pretty much clean

SweepGen test :

Below 2.5khz the modulation is ok , above the signal is a bit saturated and was expected.

CW Carrier is very clean:

CW Carrier 2w

MICROPHONE AF enhancement for SSB

So far the uSDX development is still ongoing for the SSB audio quality and according with the current firmware 1.02w DIG_MOD uncomment on line #2016 , Tx DRIVE 3

In addition i add a 10nf capacitor in // with the electret cap and so far the result is not so bad and during QSO , station are reporting very decent audio quality

Some other tests with the following circuits:

So far , the best results were with a 1st order RC low pass filter with the couple 1k and 100nf , the other were too crispy or too loud.
According few QSO with OM i use to contact on the evening they report a better audio (Louder compare with only 100nf capacitor)
According the Spectrum monitoring , the IMD is improving.

External Amplifier Control

Since i am using an external Mosfet amplifier , i adjust the biasing with the following setup :

-Min biasing = 10

-Max Biasing = 50

With this setup the output power is about 500mw which is sufficient for my MOSFET 30w

In order to control the amplifier i am using the ATMEGA328 Pin 17 (PB3) with the PTX feature. You will need to modify the sketch with the following setup :

                #define BUTTONS 17        //PC3/A3 (pin 26) #define LCD_RS  18        //PC4    (pin 27) #define SDA     18        //PC4    (pin 27) #define SCL     19        //PC5    (pin 28) //#define NTX     11        //PB3    (pin 17)  - experimental: LOW  on TX, used as PTT out to enable external PAs                  #define PTX     11        //PB3    (pin 17)  - experimental: HIGH on TX, used as PTT out to enable external PAs                              

I am using this type of relay :

The integration in the enclosure :

Bandwidth and IMD

Since the TRX design is very simple the main issue is regarding the SSB Bandwidth and IMD during transmit.

Currently the Bandwitdth is above 2.5 kHz in SSB mode and this ssue is producing a significant amount of Spurious which are not acceptable regarding the the rules we need to rely on.

In CW mode , the carrier is pure and the spectral shape is very good.

The occupied SSB bandwidth can be further reduced by restricting the maximum phase change (set MAX_DP to half a unit-circle _UA/2 (equivalent to 180 degrees))"

This is done by uncommenting the line with a #define that sets MAX_DP to _UA/2.   (the exact line number will vary by version)

I did and found that indeed the bandwidth was reduced, as shown in this side-by side screen capture of the normal released code.

According some additional test , the PWM_Max (Max biasing should be reduced in order to provide a good shape signal without splatters and IMD. Obviously , reduce the Max biasing will decrease the power amplifier output power. The test i did show me that the Max biasing optimum setup sould be below 100. The best setup regarding spectral purity for the biasing is :

Min Biasing : 10

Max biasing : 50 up to 90

Drive : 3

CAT Control

With the release 1.02m you are able to connect the uSDX to your computer with CAT control capabilities.

In the  code the following line should be uncommented
#define CAT              1   // CAT-interface

There are some other CAT definition in the code but there are dedicated to CAT  linux streaming using USB. According few discussions , they are not working yet.
So the following lines shall be commented

//#define CAT_EXT        1   // Extended CAT support: remote button and screen control commands over CAT

//#define CAT_STREAMING  1   // Extended CAT support: audio streaming over CAT, once enabled and triggered with CAT cmd, samplerate 7812Hz, 8-bit unsigned audio ……

To achieve this feature you will need a USB / TTL FTDI adapter and can be purchase here :

Hamlib must be installed in your Computer

The connexion between the uSDX should be :

The setup on your computer is the following with FLDIG , JTDX :

-You shall use Kenwood-TS480 in the HAMLIB or Omni-rig libraries proposed by your favorite software. My finding is Omni-Rig libraries are working very well with the uSDX.

-Terminal settings:  38400 Bd,   8 bits, 1 stop bit,  no parity and no flow control. The PTT is controlled by the CAT protocol.

Since the CAT is shared with the LCD display , you will need to adjust some parameters on the Omni-rig interface . The most important parameters are highlighted is the blue square (Polling and timeout) . With the followng parameters the CAT connectivity is working really well and i can drive FLDIG ,WSJT-X and LOG4OM with ease:

For sound input and output it is mandatory to isolate the uSDX with your sound card with 1:1 Transformer in order to provide and efficient gavalnic insulation

The FT8 waterfall spectrum with galvanic insulation:

The spectrum is pretty much sharp and did not notice any significant frequency drift. i am able to decode up to -24db signal which is not bad at all

In addition i add a switch in the front panel to switch between Digital to Voice/cw keyer

For CW and DIGITAL modes the transceiver performance are not so bad, above some FT8 QSO , 20 watts with my Fuchs ENDFED antenna.

For digital modes , i am using the Startech ICUSBAUDIO2D soundcard with decent performance

Voice Receiver performance

QSO between VK2SR and OV1CVX , using my EFHW antenna

More pics

My Final Combo

The TRX performance are really great for digital modes and CW and currently i am using this TRX with my 150w EL519 tube amplifier or a 50w MOSFET amplifier

For Digital my power is about 10 up to 40watts (2w input from the uSDX) for CW my output power is about 50w up to 80w with about 3w input.

SSB MODE QSO

CW MODE QSO

Long QSO with FOKB

Usdx "Big Mac" style

The latest release , very portable but with full capabilities including digital modes.

This TRX is able to :

  • Connect a computer with the  USB / TTL FTDI adapter for the CAT and digital modes
  • A galvalnic insulation for AF IN/OUT for digital modes
  • To control an external Power amplifier
  • 7 Bands with 3 LPF (From 80 up to 10)

Currently this TRX is providing about 4 watts for the lower bands and about 2 watts for upper bands . A 50w IRF530 Mosfet amplifier is dedicated to this TRX . The Amplifier has automatic LPF switching capabilities thanks to a RF detection decoder based on a PIC 16F628A.

QSO and log using this TRX

During the past few days i use this TRX with power from about 4w up to 40w (CW,SSB,PSK31 and FT8 modes) and not so bad at all . For digital mode using new 1/1 transformer for gavalnic insulation has improve a lot the digital mode decoding. Great FT8 QSO with only 10w with NZ and USA.

50W Mosfet Amplifier + Controller

The controller is monitoring the amplifier current and obviously the SWR and output power

  • The amplifier is biased with 3.7vdc with about 70ma quiescent current –> input power is 1w for about 40 up to 55w output
  • The controller is providing the following capabilites:
  • Temperature monitoring with dedicated menu to adjust the threshold to trigger a 12vdc Fan
  • Current monitoring with a dedicated menu to adjust the max amp (Limitation) in order to cut-off the biasing with an opto relay when the current is too high
  • A dedicated menu for the Max SWR adjusment –> It will trigger the opto relay to cut-off the biasing
  • A dedicated menu to adjust the output power range you want to monitor . Since the power is about 50w , my adjusment is 100w which is tailoring the bargraph display accordingly.
  • Using FT50-43 toroids and 5w 50ohm resistor, the SWR bridge able to handle up to 1Kw

Currently i am using MOSFET amplifier for 3 years with this kind of controller with another amplifier and working perfectly.

https://easyeda.com/F5NPV/swr-meter

Arduino Sketch : https://drive.google.com/file/d/1E4R0gcUoR4Z5WwKWr_Zc6-ottOrRJNIo/view?usp=sharing

before the labelling process

The gerber file for the SWR bridge : https://drive.google.com/file/d/1i1FAbeb4EyGl6EbUAo1TmMHviFV_yVLi/view?usp=sharing

LPF KIT from RV3YF
Final tailoring with amy spare uSDX

Prior the integration with the LPF , the final tailoring was to test with some different resistor value at the secondary of the primary transformer . i manage to get a perfect input SWR with a 24ohm 5w resistor. The output power with 13.8vdc is about 50w on 7Mhz and about 30w on 10m.

Complete combo : 50w Amplifier + LPF + Controller

5-Band Resonnant LPF for Barb 1.02 PCB

An alternative design since i am not really confortable anymore with SMD . Getting older is terrible and my skill regarding SMT/SMD soldering is fading and nowadays it tooks me forever to solder a complete PCB (Few component it is ok). So since i am still using the Barb 1.02 PCB which is working very well the main idea is to integrate some automation LPF switching and increase the LPF available to cover the entire HF band.
This is only a 5 bands Resonnant LPF to be used with Barb 1.02 PCB . For the integration in place of the LPF i made a tiny interface . To connect the LPF you just need 12vdc, PTX ,SCL, SDA and two SMA coaxial cable. The LPF can be easily installed inside an enclosure or in a sandwitch configuration  (I guess the sandwitch is now a Big Mac or a spider hahahahahaha !!!!). There is an additional RX output to plug a SDR receiver to display the receive waterfall using GQRX .

Currently on going testing to adjust perfectly the resonnant circuit moving a bit the toroid turns. i test it only on 40m and 20m bands since the propagation sucks . currently i have at the output from 3W up to 4w from 80m up to 15m and about 2w on 10m.

To trigger the relays with the ULN + MCP + SDA + SCL  i am using the octoband option from the code :
#define LPF_SWITCHING_WB2CBA_USDX_OCTOBAND     1   // Enable 8-band filter bank switching: non-latching relays wired to a MCP23008
Since using only 5 band , the following line need to be modified and you can choose the pin out from the MCP you want to use :
uint8_t lpf_io = (f > 26) ? 7 : (f > 20) ? 6 : (f > 17) ?5 : (f > 12) ?4 : (f > 8) ?3 : (f > 6) ?2 : (f > 4) ? 1 : /*(f <= 4)*/ 0; // cut-off freq in MHz to IO port of LPF relay
From now  i remove the bands i am not using with this TRX.

So far so good , everything seem to run smoothly and when funnly tested and working i will publish the Gerber files (I am planning some adjustment).

PORTABLE COMBO


Portable Combo:

This uSDX and associated amplifier are capable for all modes including digital modes. I am using a 4200mah lipo battery and i can run the amplifier+uSDX for a complete morning.

This image has an empty alt attribute; its file name is img20211003102913.jpg

compteur html

Design a 4x16 Decoder Using Five 2x4 Decoders With Enable

Source: https://f5npv.wordpress.com/homebrew-usdx/

0 Response to "Design a 4x16 Decoder Using Five 2x4 Decoders With Enable"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel