Search This Blog

Radio Guy Tees

Radio Guy Tees
Radio Guy T-Shirts

Wednesday, 25 November 2026

Is Your LM2596 Really an LM2596?

A Simple Test for Suspect Buck Converters

During the development of a power supply for my 144 MHz and 432 MHz masthead preamplifiers, I spent some time experimenting with the inexpensive DC-DC buck converter modules that are widely available online. These particular modules were fitted with what appeared to be LM2596 adjustable voltage regulators.

Whilst investigating the noise generated by one of these modules, I discovered something rather interesting. The switching frequency was approximately 55 kHz. According to the manufacturer's datasheet, the LM2596 has a nominal switching frequency of 150 kHz.

Something clearly wasn't quite right!

Replacing the IC

Rather than consigning the module to the bin, I obtained some onsemi LM2596-ADJ devices from a reputable component supplier and replaced the IC on the existing PCB. All the other components remained unchanged.


Figure 1: The DC-DC converter module following replacement of the LM2596-ADJ.

With the modified module powered up, I connected an oscilloscope to pin 2 of the LM2596, which is the switching node connected to the inductor and Schottky diode.

The measured switching frequency was now 150 kHz, exactly as expected.

Interestingly, the older LM2576 regulator operates at a nominal switching frequency of 52 kHz. Whilst the original device may have contained silicon based on this or a similar design, there is no way of establishing that from the switching frequency alone.

Some basic performance measurements

Having established that the replacement device was operating at the correct frequency, I set about making some basic measurements with a nominal 12 V input and an output adjusted to approximately 5 V.

The results were as follows:

Load current (mA) Output voltage (V) Input current (mA) Efficiency
0 5.065 9.02 N/A
50 5.031 37.5 55.9%
100 5.011 64.2 65.0%
250 4.977 141.8 73.1%
500 4.972 273 75.9%
1000 4.960 578 71.5%

The output voltage fell by just 105 mV between no load and a load current of 1 A. Between 250 mA and 1 A, the variation was only 17 mV.

The efficiency figures are calculated assuming a constant 12 V at the module input. Whilst the efficiency is not particularly impressive by modern switching regulator standards, the module is clearly functional following replacement of the IC.


Figure 2: Calculated conversion efficiency against output load current.

Testing your own modules

If you have some of these LM2596 modules in your component collection, it might be worth spending a few minutes checking them.

Connect a suitable DC supply, adjust the output to 5 V and apply a modest load. Using an oscilloscope with a ×10 probe, measure the switching waveform at pin 2 of the regulator, with the probe ground connected to the module's ground.

Under normal operating conditions, you should see a switching frequency close to 150 kHz, corresponding to a period of approximately 6.67 µs. The onsemi datasheet specifies a frequency range of 135 to 165 kHz at a junction temperature of 25°C.

Conclusions

Whilst a switching frequency measurement cannot conclusively establish the authenticity of a semiconductor device, the difference between 55 kHz and 150 kHz is far too large to be explained by normal manufacturing tolerances.

The fact that replacing just the IC corrected the switching frequency provides fairly compelling evidence that the original component was not operating to the LM2596 specification.

Of course, none of this establishes how electrically quiet the modified module is, particularly when used in proximity to sensitive amateur radio receiving equipment. That is perhaps an experiment for another day.

It does, however, serve as a useful reminder that the markings on a semiconductor package are not necessarily a guarantee of what is inside!

References

73, G0MGX

Monday, 9 February 2026

Experimenters' Corner

 Well,

Since November '25, a lot of my musings are heading into a new monthly column I am authoring in the RSGB magazine RadCom.

Experimenters' Corner is intended to be an outlet where I hope to inspire others to have a bash at coding, 3D printing, general bodging or just having a go.

So far there have been a few interesting topics covered, but there is much, much more to come.

I hope you like it.

Wednesday, 3 December 2025

It's CQWW CW

 Well,

Last weekend was the CQ WW CW contest - always a good opportunity to make some rare and distant contacts.

I've never seen the bands so busy, propagation was amazing and there were simply signals everywhere:




As is tradition, here is my log as a map:

I didnt spend a great deal of time in the contest, but it was certainly fun!

Friday, 15 August 2025

Can you still beat the Cube?

Well,

In a feable attempt to prove that I can still write some code, I've been writing software to program the ADF4351 from last time using the STM32CubeIDE and a Nucleo board. The Nucleo boards are really neat because they are from the manufacturer so there is no risk of counterfeit devices, and they are also really low cost for the component count - they even include an on-board STLink programmer (which containst an MCU itself). Amazing really.

The first part of the development is to define the additional GPIO pins needed, in this case we need a CS line (for chip select - only really needed if we have more than one device), and the LE pin which is toggled after each registers data is sent.


Once thats done, I've defined a few variable to help me on my way:


Then we have the main routines:


And finally the output of the SPI pins viewed through a logic analyser:


This is exactly as required.

STM32 provide the HAL (Hardware Abstraction Layer) library to give access to the MCU periferals and also the CMSIS library to access the internal CPU (which is an ARM Cortex from a 3rd party).

Using the Nucleo boards is very easy with STMCubeIDE, but can also now be programmed with the Arduino board manager addon for STM32.

I will now try and generate the same output using the Arduino IDE and see how I fare.

Interesting, don't you think?






Wednesday, 13 August 2025

It's Pill Time again

 You may recall that I used the SDM32 MCU range quite a lot and also the "Blue Pill" board for a lot of my projects.

Recently the board support package that I was using in Arduino has become depreciated and I wanted to document how I now use the boards with the Arduino IDE.

Firstly, in board manager I have added this to the "additional URL's" section:

https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json

This is the official board support file from the manufacturer.

Once that is complete, then you also need to install the STMCubeProgrammer, also from the manufacturer.

Once done, there are a number of options to upload from the IDE to the board, most require messing about with the boot jumpers, but there is a HID bootloader we can instal on the board for permanent conenctivity between the IDE and the board. Note the boot jumper settings below:


We then use the STMCubeProgrammer application to connect to the board using the FTDI COM port.


We can then download the appropriate binary from the selection here.

It's critical that you get the correct binary bootloader uploaded, I used the medium density PC13 for my board (PC13 is the pin the onboard LED connection).


Once loading is complete, move the boot jumper back BEFORE removing power, then bob is indeed your uncle.

Inside the IDE, I then used the following settings:


One of my boards didn't work using this method and I strongly suspect a counterfiet device - beware!



The Black ADF4351 Boards

 Well,

Some time ago, I did some expermimentation with black ADF4351 evaluation boards that are available at all good sites selling wares from the land where copyright means "lets copy it right".

I've bought some more recently and found that I couldn't get them to work.


Thanks to this post, I was able to deduce that the newer boards seem to be missing some bits - most importantly the CS line isn't tied high by a SMD resistor. Once I had pulled that pin high via 10K to the 3V3 line, the board worked as expected.

I've been using mine with a Pi Pico2:


You can see the additional 10K on the fritzing diagram above.

I have written some very simple code here to upload the register values to the device, and also have a spreadsheet here that will do the necessary maths from a target output frequency, channel spacing and clock frequency and generate the 6 register values needed to program the device.

Good stuff!





Tuesday, 15 July 2025

An EMI Spy?

 I've bought myself one of these kits from SDR Kits:


It's a german bit of kit marketed by Funk Amateur but sold in the UK by SDR Kits and is called the EMI Spy 2.0.

There's a load of bits and bobs in a neat box:



All of the SMD soldering is already completed, so in reality there are only a few components to solder to the board before assembly:


It went together really easily:


Once complete, there are 4 different antennas or probes you can use for EMI hunting.


This should prove a useful addition! I will report back once I've had time to try it out....