⬆️ ⬇️

USB Microwave Generator

It happens that one microwave generator in the workplace is not enough, or someone uses it, and check for example the mixer (amplifier, ADC ...) is very necessary. And still the stationary microwave generators are quite large and heavy, for me personally, it is often too lazy to carry them and make room on the desktop. For these reasons, two years ago I made my little generator, the first version.



The first version of the USB generator





A little bit about the element base



The generator is built on an HMC833 (or HMC830) microcircuit, a PLL with an integrated VCO and an HMC625 microcircuit, and a variable gain amplifier. GK155-P or CB3LV generators with a frequency of 25 ... 100 MHz can be used as a reference generator. In the first version of the generator to control the HMC833 and HMC625, I decided to use the FT232RL chip in bit bang mode, inspired by articles about this mode on the Internet.

')

Specifications



- The frequency range is 25 ... 6000 MHz if the HMC833 microcircuit is used;

- The frequency range is 25 ... 3000 MHz, if the HMC830 chip is used;

- Power signal adjustment, 31.5 dB, in 0.5 dB increments;

- Accuracy of frequency setting, ~ 3 Hz;

- The maximum measured signal power at a frequency of 1 GHz - 17 dBm;

- The maximum measured signal power at a frequency of 2 GHz - 16 dBm;

- The maximum measured signal power at 3 GHz - 12 dBm;

- Power and control from microUSB.



All other specifications can be found in the documentation on the chips used by me.



A little about the shortcomings of the first version



The scheme of the first version was not without flaws:

- first, as I said, to control the synthesizer and the SPI amplifier, the FT232RL chip was used in the bit bang mode. Because of this, management was slow. I first used the FT232RL chip and did not know about this feature.

- secondly, I used the components that I had in stock. Because of this, the generator turned out to be expensive, and some elements are difficult to get.

But in general, the generator justified itself, often helping me in my work.



Error correction



Two years later, I decided to get rid of these shortcomings and made the second version of the generator.

I replaced the FT232RL microcircuit with the STM32F103C8T6 microcontroller, instead of the expensive GK155-P-100 MHz generator, you can install the CB3LV-3I-25M0000 (or another), and of course. Now all the elements for the generator can be bought from the Chinese for aliexpress, which is good news.















I designed the PCB in Altium Designer, the program for the STM32 was written in IAR Embedded Workbench, the computer control program was written using QT, Visual Studio and the HID API library. Since the USB HID class is used, no driver installation is required.



You can assemble this USB generator yourself, for this I attach all the necessary files. Without errors, the assembled generator in the adjustment and configuration does not need, only in the firmware.







Conclusion



At the moment, the software is still far from the final and has only basic settings, such as setting the frequency and gain. In the near future, I plan to add GKCH modes and possibly (if possible) a pulse generator.



Now some pictures from the R & S FSL3 spectrum analyzer and at the very end of the link to the source files. Unfortunately, the spectrum analyzer in my work is only up to 3 GHz:



R & S FSL3


























The source files are here:

github.com/denruss/usb_gen_v2

github.com/denruss/usb_gen_v2_qt

github.com/denruss/usb_gen_v2_stm32

github.com/denruss/stm32_MyDfu



You can order PCB by reference:

www.pcbway.com/project/shareproject/USB_Microwave_Generator_25___6000_MHz.html



Instructions for the firmware of the microcontroller



St-link v2 programmer needed



0) It is advisable to erase the microcontroller with the STM32 ST-LINK Utility utility (just in case)



1) It is necessary to download the loader, the file stm32_MyDfu.rar from here

unpack HEX, flash with STM32 ST-LINK Utility

After that, the device stm32 dfu should appear in the device manager (I do not remember exactly)



2) Download the file usb_gen_v2_stm32_v19.dfu from here

And flash it with the DfuSe USB device firmware upgrade utility .

Source: https://habr.com/ru/post/372385/



All Articles