Showing posts with label Shortwave. Show all posts
Showing posts with label Shortwave. Show all posts

Saturday, 18 April 2026

Using AI to combat RFI in a power supply

Followers of my rantings will have seen this post where I talk about the issues I am having with a cheap switch mode power supply unit (SMPSU) and its interference with my radio reception.

Just for grins I thought I'd try asking Claude.AI for advice on mitigating this RFI. What it told me went against everything I had been taught about combating RFI in the radio shack.

Let's start with some pictures. The first picture is of my Afedri SDRNet Software Defined Radio tuned to the low end of the Medium Wave (AM) broadcast band. I am using GQRX as the front end. You can see quite a number of very aggressive signals that are not desired.

If you look at the waterfall above (the blue/yellow bit) one can clearly see very strong individual single carriers that in some cases are louder than my local radio stations at over -35dB.

How do I know that this particular SMPSU is responsible for this RFI? When I unplug it this happens ...

What a difference!!! No change in my noise floor was observed. It normally sits around -95dB. I live in a significantly urban area and so my neighborhood is filled with other peoples electronics devices which add to the noise floor. 

So how do I fix this? Conventional wisdom dictates that I build a filter and apply it to the output of the supply before it connects to my radio equipment. In this case however, my SDR is not powered by the switch mode power supply. So where is the noise coming from? Again, conventional wisdom tells us that the interference is radiating along the wires connected to the output side of the SMPSU and then being picked up by the antenna on the SDR. This appears to be correct as disconnecting the antenna from the radio produces no RFI issues. Adding an AM band stop filter significantly reduces the RFI and its related harmonics (iterations of the interfering signals that flood the radio all the way up to its maximum range).

Note how the noise floor has dropped 25dB and so have the FRI signals too. Clearly they are being received by the radio over its antenna. Lets remove the filter and perform one final test. Lets disconnect the wires from the output side of the SMPSU.

Yes, removing the wires from the output side of the SMPSU also removed the RFI. Removing the filter also increased the noise floor by 25dB. So we can surmise that conventional wisdom is correct in that the RFI is indeed leaking out of the SMPSU via its output wires.

So to recap our findings; 

  • The Switch Mode Power Supply Unit (SMPSU) is creating RFI
  • RFI is being radiated on the wires connected to the SMPSU output
  • The band stop filter is not sufficient to combat this RFI

So lets ask Claude. I asked the question "How might I mitigate the RFI being emitted from an cheap switch mode PSU?". After a second or so of thought Claude responded

Great practical question! Here are the main mitigation strategies, roughly in order of effectiveness and ease of implementation:

1. Input EMI Filter (Most Important)

As discussed, this is your first line of defense. You can:

  • Buy a pre-made IEC inlet filter module — these are cheap (a few dollars) and combine X/Y capacitors and a common-mode choke in one package. Simply wire it between the mains and the PSU input.
  • Look for ones rated at the PSU's current draw with attenuation specs in dB across the frequency range you care about.

2. Common-Mode Choke on the Input

If you want to go further, add a toroidal common-mode choke wound on a high-permeability ferrite core (Fair-Rite, Wurth, TDK all make suitable cores). Wind both the live and neutral together through the same core — this attenuates common-mode noise without affecting the 50/60Hz supply current.

3. Ferrite Clamp-On Cores

The quick and dirty approach — snap ferrite clamp-on chokes onto the input cable as close to the PSU as possible. Multiple cores stacked together increase attenuation. These are the things you see as lumps on laptop power cables. They won't fix a really bad PSU but can take the edge off.

4. Shielding the PSU

  • House the PSU in a grounded metal enclosure if it isn't already — this addresses radiated RFI rather than conducted.
  • Ensure the shield has a solid, low-impedance connection to earth ground.
  • Any gaps or apertures in the enclosure should be smaller than λ/20 of the highest frequency you're concerned about.

5. Output Side Filtering

While less effective for RFI back into the mains, adding filtering on the DC output helps protect sensitive downstream circuits:

  • A pi filter (capacitor → inductor → capacitor) on the DC output rail
  • Keep the inductor value modest (a few µH) to avoid instability with the PSU's feedback loop
  • Use low-ESR capacitors

6. Proper Grounding and Cable Routing

  • Keep input and output cables physically separated — they can couple noise back if run together
  • Use shielded cable on the output if running to sensitive equipment
  • Ensure a solid single-point earth ground

7. Replace the PSU

Honestly, with very cheap PSUs, the economics sometimes favor just buying a better unit. PSUs from reputable manufacturers (Mean Well, for example) are already designed with proper EMI filtering built in and have passed regulatory testing. A Mean Well unit costs only slightly more than a no-name unit plus the remediation parts.


Practical Approach

If this is a specific interference problem you're troubleshooting, a good workflow is:

  1. Start with a clamp-on ferrite on the input cable — costs almost nothing and takes 30 seconds
  2. If insufficient, add a pre-made IEC EMI filter module
  3. If still problematic, add a metal enclosure with proper grounding
  4. If you're still fighting it, the PSU is probably beyond economical remediation — replace it
It appears Claude thinks the issues are on the INPUT side of the SMPSU. This goes against conventional thinking. The mitigation was broken down into 4 manageable steps. Lets try them.

1) "Start with a clamp-on ferrite on the input cable". You've seen these a everywhere. You probably have some knocking about in your junk box. I have a large stash of these collected over the years from other projects or junk sales. I'll install 1 on the input side power cable and if it works we should see some drop in the level of the interference which is currently over -35dB.


As seen on the left I added a single clamp-on ferrite. It did actually do something. We've gone down from -35dB to about -53dB (see above). Lets round it up and call it -55dB. That's actually a significant improvement. 20dB is around a quarter of the original signal. However, its still too much by a long way. I tried adding more clamp-on ferrite's but it seemed to make no difference.

While doing this I also noted that when the output cables are connected but yet the powered devices are not yet turned on there is no RFI. Only when the powered devices draw current does the RFI appear. This sent me down a short rabbit hole to see if it was in fact one of the many devices (mostly Raspberry Pi's based SDR's) powered by this SMPSU.

So on to step 2, "Add a pre-made IEC EMI filter module". I found this device on Amazon which was promptly ordered. As the SMPSU does not have an IEC plug I bought one with pigtails. Lets get it installed.


No discernible difference. Arguably things got worse by 10dB. One of the important things to note with the EMI filter is that while it has 3 incoming conductors it has only 2 outgoing conductors. The ground is not presented for connection to the SMPSU. Lets try "yoking" the ground and connecting it back onto the SMPSU.


Maybe one or two dB's of improvement with the earth attached but its hard to tell. Certainly not the improvement I was looking for. 

Step 3 says to mount it inside a metal enclosure. The SMPSU already has a metal enclosure. I opened it up to check it was grounded and it is. 

So that leaves Step 4: "the PSU is probably beyond economical remediation - replace it". Hmm. Does Claude have shares in a PSU factory? This is not a possibility for me due to financial constraints.

So has Claude failed to mitigate my RFI issue? Why did it not offer me some output/DC side solutions? For now I'll chalk this up as an AI fail.
 



Saturday, 4 October 2025

DRM reception with a Yaesu FT-840

Recently another Yaesu FT-840 HF transceiver came my way. This prompted me to re-post the below article from my now defunct g7ltt.com website ...


DRM with a Yaesu FT-840

I recently came across a Yaesu FT-840 HF Transceiver so I thought I'd have a go at converting it for DRM use. As this is an older Yaesu model it doesn't have a 455KHz IF but rather an 8.62MHz IF. This was going to be a problem as I didn't want to redesign an IF converter. Unlike modern HF rigs FM was an optional extra requiring a board to be installed into the radio. This optional board has a 455KHz IF and uses the ubiquitous MC3357P FM demodulator chip. In theory this mod should work for all radio's that use this chip (eg. Kenwood TS-430).

A while back I ordered a couple of 455KHz-12KHz down converters from I5XWW with a view to converting my FT-847. These converters use a freely available design found in a number of places on the Net. Frankly for the amount I5XWW charges for these pre-built boards it's not worth the hassle of building a converter on a project board. I paid $15 each for them! Having a spare one left over it became the candidate converter board for this modification.

To make the mod you'll need the following items;

RCA phono socket
6" hookup wire
12" RG174 coax
FM-747 FM option board
12KHz IF converter board
Murata CFW455HT 455KHz ceramic filter (optional)

On a clean bench (not like mine) place the radio upright with it's rear sockets facing you. Remove the 5 screws holding down the top case section. Note that there is a large amount of fresh air inside the case. Remove this and save for later ;}.


First lets install the RCA phono socket. This will be where we connect our PC's sound card to. It will present the 12KHz from the IF converter board. Using a 5/32" drill bit CAREFULLY drill a pilot hole below the air vent at the left hand end of the back panel. Take care to place the hole high enough so that the new socket will not foul any of the components on the board below. Once you are happy with the placement of the pilot hole drill out the pilot hole such that it will accept your RCA socket (usually 1/4"). Finally mount your socket.


Now would be a good time to install the optional CFW455HT 455KHz ceramic filter. The supplied filter on the FM board is somewhat wide and may produce diminished results. You don't have to do this mod but it might help eek out those harder to receive signals. Remove the supplied 455 filter from the FM board (the white square to the left of the board on my picture) and install the new one in its place. The replacement part is pin compatible.

Lets attach the IF converter board to the FM board. I attached my converter directly to the back of the FM board using off-cut resistor legs which I found kicking around my bench. Attach the IF IN on the converter to pin 5 on the MC3357P FM demodulator chip (the long black one). You can pick up 9V on pin 3 of the large white connector and ground can be had either on pin 1 or via any of the solder blobs found on the largest green PCB track. Attach a length of RG174 coax from the converter's IF OUT to the back of the RCA phono socket you installed earlier.


Re-install the FM board back into the radio.


Replace the top cover and 5 screws. Don't forget to put the fresh air back ;}


Finally, test it out! Make sure that you check the "Flip Input Spectrum" checkbox in your software. Below are some screen shots and log printouts from the DReaM software. 



>>>>

Dream

Software Version 1.10.6cvs
Starttime (UTC)  2008-04-06 15:35:15
Frequency        9800 kHz
Latitude         40.49'N
Longitude        74.34'W
Label            RCI
Bitrate          17.16 kbps
Mode             B
Bandwidth        10 kHz

MINUTE  SNR     SYNC    AUDIO     TYPE

  0000   18      300  3000/10      0
  0001   25      150  1500/10      0
  0002   23      150  1500/10      0
  0003   20      150  1500/10      0
  0004   17      150  1437/10      0
  0005   17       93   885/10      0

CopyWrong 2008 Mark A Phillips, NI2O. All lefts offered.