UART configurable frequency generator by piotr_go
TL;DR
- A compact UART-configurable signal generator module uses a Si5351A chip and an HK32F030MJ4M6 microcontroller.
- Custom C firmware handles three outputs, frequency selection, calibration, and saving presets to the MCU’s built-in EEPROM.
- It spans 4kHz...112.5MHz and communicates at 115200 baud over the UART menu.
- Settings persist in EEPROM, so the generator remembers configured frequencies after power cycling.
- On newer HK32F030MJ4M6 versions, SDA and SCL pins must be swapped, and SDA uses the MCU’s internal pull-up.
Hello
Sometimes a man needs some unusual generator or quartz. You have to wait 2 days or 2 months for an order, and I am too stingy to buy a proprietary generator, so what? You have to do something yourself.
For a long time I had an idea ... Something small, I set the frequencies and I forget.
So I present the generator module project based on the Si5351A chip and the HK32F030MJ4M6 microcontroller.
The generator has 3 outputs with a frequency range of 4kHz ... 112.5MHz and is configurable via the UART interface and the settings are stored in the built-in EEPROM in HK32F030MJ4M6.
Own Soft, written in C.
Power supply 3.3V.
Menu:
'F1', 'F2', 'F3' - frequency configuration
'c' - calibration
'w' - save settings
Baudrate: 115200
Diagram:
When using the newer version HK32F030MJ4M6, the SDA / SCL pins must be switched.
As there was little space on the board, I used a pull-up built into the microcontroller for the SDA ("kids, don't do it at home"
SCL is push / pull controlled.
Comments
Why did you cut the bandwidth so much? According to the manufacturer, it works from 2.5kHz to 200MHz, I managed to chase it to about 180MHz in Bascom, I didn't need more. [Read more]
Somewhere I read that the minimum divisor is 8 for some versions of Si5351. I don't think I would even have anything to check if it works at higher frequencies; besides - I don't need any more,... [Read more]
Si5351 is used in NanoVNA and reaches even 300MHz there, although with some copies there are problems above 290, but up to 290 is probably every piece. [Read more]
200MHz works, but at higher frequencies like 112.5MHz you can only use 2 channels. I will leave Soft as is for now. https://obrazki.elektroda.pl/1473496000_1628716132_thumb.jpg The screen shows... [Read more]
You see. This method of control will facilitate the work on SDR construction based on, for example, YU1LM. A suitable driver has been developed for the Si570 generator that enables CAT control from a PC.... [Read more]
As for me, it is not enough to say what the quality of this generator is. The equipment for verifying such equipment is not cheap, but such a frequency meter is ... well, definitely too low for you, Piotr. ... [Read more]
Heh, they couldn't call it worse. Take it here find it by typing "cat" in google. :D I found something: I do not have access to the appropriate equipment. If I don't buy something myself,... [Read more]
I just checked on my generator; @ 14MHz ~ 3Vpp for @ 100MHz ~ 450mV. Unfortunately, the soft for Arduino Nano from RS-HFIQ blocks the generator's output for frequencies outside the amateur bands. The... [Read more]
@arturavs SDR requires much better hardware. The mismatched path and lack of termination lead to the oscilloscope measurements to be incorrect (in the sense what you see on the oscilloscope is not the... [Read more]
Maybe in v2, if it does. It would be better to change the slinger to one that is more accessible. Today I found an old damaged kit for a 1.2Ghz meter from the lumber. It must have been lying for 20 years.... [Read more]
No offense to your knowledge, but it doesn't necessarily have to be better equipment (organoleptically tested). After all, Si5351 does not participate directly in the signal processing for SDR but... [Read more]
It depends on what modulation (FM, AM, QPSK, QAM?) And I don't mean directly about Si5351 but about PCB design. Because a good scalak is also followed by the need to know how to design a PCB for such... [Read more]
You're right here. Piotr made the board as he did, ignoring all the rules for RF, and at least it would fit to output the signals from Si to the SMA sockets through appropriately designed signal paths.... [Read more]
There is (photo from the menu) Exactly. This 112.5MHz is mainly a curiosity so that you can check on the radio if it works. [Read more]
In fact, it somehow escaped my attention :D [Read more]
It should only be noted that the generator output is low Z (50 ohms) and with impedance mismatch we have cases where RLC or RC filters are formed, so you have to assume that if something does not work,... [Read more]
I didn't connect it to the radio. I have attached a piece of wire and you can easily pick it up within a dozen or so meters. [Read more]
What do you receive? also a piece of wire? [Read more]
The yellow one in the film. Possibly an antenna that the radio has. A simple test. Everyone probably has an FM radio at home, phone or car. [Read more]