¿ªÔÆÌåÓý

Tuning


 

All,

As a first cut toward reasonable tuning, I tried disabling the "momentum" stuff in
encoder.cpp. Not too bad. It tunes fairly slow, and is not at all "skittish". But I wouldn't want to scan to the other end of the band with it. And I'd like to be able to
tune a little finer - so when I tune across a carrier, it sounds like a smooth tune with no jumps.

Having a bit of a challenge finding out where tuning is actually done. It looks like there's a 200ms ( 5 times a second ) interrupt where the encoder is read, but the frequency is not actually set there.

Whups, the nitty gritty is in doTuning(). Cscope wasn't seeing it because it's in a .ino file, and cscope ( a VERY old C analysis tool ) doesn't know about .ino files.

I tried halving the constants in doTuning - much smoother. But you won't be spinning
from one end of the band to the other with it. Fast tune mode is still available however.

And actually, fast tune is just too fast for my taste also. I changed the increment from
500001 to 200001. Even at that, it pops from one end of 40M to the other in about a quarter turn. OK, I changed it to 100001... then 50001. Now it goes from one end of 40M to the other in about a turn and a quarter of the knob. I set the increment down to 20001.... Now it goes from one end of 40 to the other in a bit over 3 turns. This I can live with.

This is fun. This kind of stuff is why I bought the uBITX. Because it's hackable.

- Jerry KF6VB

On 2021-05-14 13:34, jerry@... wrote:
All,
So the reason I wanted to upload sketches is as follows:
I find the tuning of the uBITX troublesome. Say I'm at the top of 40M
and I want to get down to the CW segment: I spin the knob, and down
she goes. But before I get to where I'm going, it shifts into this
"hyper-tune" mode, and all the sudden I'm down at 6MHz.
I'd like it to act more like my old SB-34 transceiver. This has a
mechanical vernier mechanism. The "fine" vernier area is about 15 kHz
wide. You tune fairly fast to get more or less where you're going,
you pass it, and then when you reverse the knob, it starts tuning
really slow. As long as you're in the slow-tune area, it tunes fine &
slow.
When you get to the end of the 15kHz fine tune area, it starts
tuning fast again.
By "fast", I mean a convenient speed for scanning across the segment,
looking for signals. By "slow", I mean a speed that's good for
zero-beating an SSB signal, or zeroing in on a CW signal.
I have no use at all for the "hyper speed" tuning mode. If I wanted
to move a MHz or more, I'd just change bands or punch in the
frequency.
- Jerry KF6VB