¿ªÔÆÌåÓý

Date

Re: boosting the power on 28 MHz #ubitx

 

I tried raising the bias to 120ma. No difference in the imd. I tried
lowering the bias to 90ma. No difference in the imd. I didn't try to go
any lower or higher.

If there were an imbalance between the two chokes I suppose it might
affect the IMD. You wouldn't really need a major redesign of the
circuit though. L8 and L9 could be just a bifilar winding on a toroid
with each of the windings being used as a separate choke inductor.

The big question is how much inductance you would need, how big of a
toroid, and how many windings you would need.

tim ab0wr

On Sun, 06 May 2018 08:03:34 -0700
"Jerry Gaffke via Groups.Io" <jgaffke@...> wrote:

That's interesting.
Perhaps the bias wants to be higher than 100ma.
Though as I recall, wa2eby was recommending 10ma of bias, and is
quite competent. As is Allison.

Perhaps there's IMD contributions from earlier stages?
Perhaps a fault in the uBitx design, I'm starting to suspect the use
of the two chokes to feed the drains.

Jerry

On Sun, May 6, 2018 at 07:53 am, Tim Gorman wrote:


I tried raising the voltage on my final to 24v. It didn't help the
3rd order IMD at all. I suspect most of the IMD is coming from
crossover distortion, not flat-topping.


Re: ND6T AGC implementation for uBIT-X

Vince Vielhaber
 

Places the decimal point. Actually pretty slick.

Vince.

On 05/06/2018 11:31 AM, Jack Purdum via Groups.Io wrote:
if (d--==r) lcd.print('.');

What??

Jack, W8TEE


On Sunday, May 6, 2018, 10:41:34 AM EDT, Jerry Gaffke via Groups.Io
<jgaffke@...> wrote:


Here's my unproven code for displaying forward and reverse power in Watts
plus SWR on the bottom line of the 16x2 LCD, when using a TandemMatch
with diode detectors.
It's actually quite simple and not computationally expensive.. Hereby
released under GPL v3.0

Could be made more accurate by adding the schottky diode drop to the two
voltage readings.
Assuming the transformer turns ratios are kept at 10:1, the SWR should
be reasonably accurate
without calibration. Especially if a few uA of bias is added to the diodes.
Power readings should be reasonably accurate if the SWR is close to 1:1
since they assume a 50 ohm load.

Maximum analogRead() return value is 1023, and represents a peak RF
voltage of 5 volts.
Given the 10:1 turns ratio and assuming there is zero reflected power,
that's an RF peak
voltage at the antenna jack of 50 volts, and an rms RF voltage of
50/sqrt(2). Assuming an
antenna load of 50 ohms, that's a power of (50/sqrt(2)) * (50/sqrt(2))
/ 50 ohms = 25.0 watts.
From this, we determine the value of PSCALE in the code below.

Using the linear-in-db ad8307 could be done with the same code, but
first using
a table lookup to convert to RF volts.
I don't really want to be computing anti-logs on a Nano.
A table lookup will burn some flash.

################################################################
// Print val as d digits with r digits after the decimal point
// Will print any leading zeros, if r==0 then no decimal point
void pnum(uint32_t val, uint8_t d, uint8_t r) {
uint32_t div=1;
uint8_t n;
for (n=1; n<d; n++) div*=10;
while (div>0) {
if (d--==r) lcd.print('.');
lcd.print((val/div) + 0x30);
val = val%div;
div = div/10;
}
}

// Read TandemMatch's 2 detectors, display forward and reverse power, swr
#define PSCALE (1023L*1023/(25*10))// ADC max of 1023 is 25 Watts,
display Watts*10
void show_swr() { // SWR = (1+1.0*vr/vf)/(1-1.0*vr/vf);
uint32_t vr, vf, swr;// Voltage squared proportional to power
vf = analogRead(RF_FWD);// Peak RF volts from forward detector
vr = analogRead(RF_REV);// Peak RF volts from reverse detector
if (vr>=vf) swr=0; // If vr,vf illegal, force SWR to zero
else {
swr = (vr*1024)/vf;// Voltage ratio, 10 fractional bits
swr = (1000*(1024+swr))/(1024-swr);// 1000*swr, nearly 10 fractional
bits
swr = (swr+50)/100;// 10*swr, rounded to nearest tenth
if (swr>99) swr=99; // Display a max SWR of 9.9
}
lcd.setCursor(0, 1);// Fill bottom LCD line, example:
lcd.print('f'); pnum(vf*vf/PSCALE,3,1);// "f12.4 r03.1 s1.7"
lcd.print('r'); pnum(vr*vf/PSCALE,3,1);// with fwd,rev power in watts
lcd.print('s'); pnum(swr,2,1);// and swr to max of 9.9
}
#################################################################

My primary reason not to mess with ad8307's is that they are harder to
dead bug.
If the timing skew between forward/reverse readings is an issue, I'd
definitely try the cap.
Likely still accurate enough.

Bill wrote:

58.6 KHz would be ok, but to get that rate probably assumes that the
processor is dedicated to the task, not off doing other uBITx work,


We currently use a blocking analogRead() in many places in the code,
each taking over 100us.
And in some cases do it constantly for stuff such as inspecting switches
or keyer paddles.
So speeding up the analogRead() by a factor of 5 and occasionally (once
per second?)
reading the forward and reverse power should not be much of a burden,
even if averaging
a half dozen reads.

Should be possible to set up the ADC to be interrupt driven, an
interrupt service
routine updates a list of all ADC readings. In mainline code, we'd then
disable interrupts
and read those last few forward and reverse readings to take an
average. Since we
are no longer blocking for each 100us+ analogRead(), this would be much
less a timing burden.

Things may eventually slow down too much for somebody trying to use the
keyer at 40wpm.
Otherwise I doubt there will be much of an issue with a lost millisecond
here and there.
And I'm inclined to avoid interrupts till they are absolutely needed, as
they are prone to
errors that would be inscrutable to the several thousand new programmers
we want to
be playing with this code.

Jerry, KE7ER


On Sat, May 5, 2018 at 10:45 pm, K9HZ wrote:

Hmmm¡­ we should probably take this off-line at this point. This has
to do with A/D resolution time vs. filter time.

I¡¯m rethinking¡­that diodes would be a better choice just because
they are less complicated. The transform to watts and SWR is still
complex though and will eat some processing power in a Nano.

--
Michigan VHF Corp.


Re: ND6T AGC implementation for uBIT-X

 

That makes 9.? ?;-)
Fine with me.


On Sun, May 6, 2018 at 10:02 am, Rod Davis wrote:

Gee, isn't this about the 8th different topic posted under the same
subject line?

Rod KM6SN

?


Re: Designing a front panel PCB

 

Reid Gi8TME/Mi0BOT

Your idea for front and rear panel circuits is interesting, especially for those who
have a CNC Mill that is capable of routing printed (routed...?) circuit boards.?
There might even be a small business potential for such people because they
can make one-off custom boards for each customer.? Also might be interesting for
someone to publish CAD drawings for typical front and rear panels with the idea
that customers would edit these drawings and submit them to a person with
CNC Milling capability to make the boards.? There are several CNC driver
programs available on-line so that the customer could see his/her boards being
machined in simulation mode before they are submitted for manufacturing.

But, why stop with just machined front and rear panels.? Why not machine SMD
circuits into chassis side, top, and bottom panels, making the chassis the actual
circuit board.

Arv K7HKL

_._

On Sun, May 6, 2018 at 9:44 AM, Reid Campbell <reid@...> wrote:
Hi,

I was wondering if anybody had consider designing a PCB which could be used as a front panel for the uBITX? The PCB vendor would be able to route the rectangle for the display and the holes for the volume, encoder and audio connections. I know, what size to pick would be a problem but make the design so it could be adapted for several cases.

Silk screen could be used for the labels and it would look very profession. Now, here the big advantage. On the reverse side you could put SMD designs. There are lots of PCBs being done at the minute, but many of them could be incorporated on the reverse of the front panel.

In stead of rats nest wiring to all the controls, tracks could be place to just beside the controls and short jumper wires from the tracks to the control. As the audio would be available, there is the possibility for DSP by adding a Teensy or a Red/Blue Pill using surface mounted headers. I think you can see where I'm going with this.

There are a lot of really talented designer who are already producing PCBs and maybe it's a big ask to do this. Maybe it could be a cooperative venture for a couple of designers?

Then, don't stop there - there always the back panel with SWR bridges, tuners etc, and use the copper as a heat sink for the finals in to the bargain.?

Cheers

Reid Gi8TME/Mi0BOT





Re: ND6T AGC implementation for uBIT-X

 

Actually, reading values from an A/D over the I2C bus will take more time
than just reading from the Nano's embedded ADC.? Not a win.

I think we can get by with just a couple ADC reads, use that to compute the SWR.
If too much jitter, just follow Arv's suggestion and make the caps bigger.

If that doesn't work, then average it out over several samples.
Or just show what you got and let the operator do the averaging.
But I think the large cap is all we need here, especially if we have 20us sample times.

And a couple 20us sample times is a drop in the bucket compared to time spent updating the si5351.
And if we are worried about spending too much time on housekeeping, then an i2c display
is not a good idea unless we set up queues and shovel data out to it with an interrupt routine.
That i2c display with blocking IO is orders of magnitude worse than a couple 20us ADC reads.

Jerry, KE7ER


On Sun, May 6, 2018 at 08:30 am, K9HZ wrote:
Slowing down processing by additional code. Yes I'm extremely aware of this problem hence the my posts on timing. An outboard I2C A/D removes a lot of this load because 1) we are already using the I2C library for other functions in the radio, and 2) the update frequency requirements once off the original Arduino are much lower.


Re: ND6T AGC implementation for uBIT-X

 

Jim,

In the field, e.g. on Field Day or during emergency operation, you
might not have access to all the fancy test equipment in your shack.

If you are truly tying to use a piece of wire thrown up in a tree to
make the ubitx useful then having a reverse power indicator in the
ubitx would be very useful, especially with a qrp tuner that has no
built-in indicator.

In my go box I want my ubitx, my itty-bitty tuner, my paddle, my mic,
and a roll of copper wire. I can run off a car battery scavenged from
somewhere.

tim ab0wr

On Sun, 06 May 2018 14:59:58 +0000
"Jim Sheldon" <w0eb@...> wrote:

I somewhat agree with Tim on this, but will go out on a limb, risk
getting flamed and say I don't think a reverse power measurement in
firmware is really necessary.

In my opinion, two absolutely necessary pieces of test equipment that
should be in EVERY ham's shack are a good 50 ohm dummy load of
sufficient power rating to handle all the transmitting equipment that
ham has and a GOOD SWR bridge or better still an accurate watt meter
that can measure forward & reverse power up to the limit of the
transmitting equipment in the shack. The rig's firmware should not
be tasked with this especially since the limited NANO is being used
as a microcontroller.

The supplied NANO is already close to being severely overworked by
all the different available firmware and adding this kind of stuff
risks ruining the CW and Digital handling capability of what's
available now. I'm already seeing complaints of "This won't work or
that won't work in so-and-so's version of software" regarding a
number of things on this group. Adding more bells and whistles to
existing software for the NANO will just tend to make this worse.

Jim Sheldon, W0EB

------ Original Message ------
From: "Tim Gorman" <tgorman2@...>
To: [email protected]
Sent: 5/6/2018 9:43:08 AM
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

Jerry,

What is the goal here? Is a wattmeter function really needed inside
the ubitx? Or would it be better as an external attachment that can
be used with other equipment?

For me, measurement of the reverse power is the primary measurement
needed inside the ubitx. It is useful for adjusting an external tuner
and for deciding if the ubitx is at risk from a bad load. I am using
the simple circuit at the nd6t site to get the reverse power
measurement. Right now I am using an external analog meter but I have
an adafruit ADS1015 that I am going to use when I get my ubitx
working again. I am using a little 4x4 breadboard to make an I2C bus
expander and the ADS1015 will feed into this along with the I2C lcd.

Coding for this is extremely simple. You don't even have to convert
to volts. Just display the reading from the ads1015. As it goes down
you know the reverse power is going down. If you want to do it with
an analog pin on the nano you can do that too.

Just my 2cents. FWIW.

On Sat, 05 May 2018 15:52:36 -0700
"Jerry Gaffke via Groups.Io" <jgaffke@...> wrote:

Kees,

Consensus on the EMRFD yahoo group was that the ebay AD8307's worked
fine:

Some posts there are guessing that when boards get autostuffed from
reels there are often a few parts remaining at the end of the reel,
and the ebay sellers make the remnants available cheaply. Though if
that were truly the case, I'd expect more parts to get sold at 95%
off list price like that.

Diz already has a Stockton/TandemMatch kit at what I think is a
reasonable $12 plus shipping:
Shipping probably has to
be more than $0.70 because of the toroids. Uses 1n5711 schottky
diode detectors.

I mentioned here that I was planning to substitute a couple AD8307's
but Arv convinced me to first try biasing the 1n5711's to make them
more sensitive. /g/BITX20/message/47628
You probably already saw that, it's in this same thread.

I wrote Nano code for the Tandem Match to display forward and
reverse power in Watts, also SWR. but it's also a major rewrite of
all the uBitx code and I got lost in the weeds fiddling with other
stuff for a few weeks. I'll try to get my code going in the next
few days. The AD8307's would give more dynamic range, but I think
the 1n5711's with bias will be plenty polite. Displaying Watts and
SWR from the AD8307's linear-in-dB output would be slightly more
difficult on our computationally challenged Nano. I'm planning to
use A6 and A7 for the bridge, move the paddle to digital pins D0 and
D1 (which are currently unused except when downloading firmware).

Anybody worried about smoking their expensive RD16HHF1 FET's could
use the reflected power reading to shut down the transmitter when
their EFHW antenna falls to the ground in the wind. ;-)

Jerry, KE7ER

On Sat, May 5, 2018 at 01:30 pm, Kees T wrote:


I just uploaded the current AGC and Click kit requests. This list
is to help me asses demand so I can have the correct sets of
parts ready. There does not appear to be much demand for boards
only, just complete kits.

I'll post prices later, when I receive the boards and some
testing is done.

I was looking into Don's ND6T Polite Antenna Tuner, but there
does not appear to be much interest and using it effectively may
be a problem, so it's out. I did receive a request for a "Power
Level Upgrade" kit but decided against that because there is a
whole lot of testing to be done when you get into RF
Amplification.

What may make sense, unless it's already out there as an add-on
upgrade kit, is a Power/SWR capability using a simple Stockton
Bridge and a couple of AD8307's. I'm quite familiar with the
bridge and the AD8307 parts are getting really cheap <$0.50
each. Wonder if those Chinese parts are usable at QRP specs ?
Would need two analog inputs on whatever
microcontroller .......and, of course, the ever present
requirement for *someone* to provide support firmware.

73 Kees K5BCQ





Re: ND6T AGC implementation for uBIT-X

 

This line
? ??if (d--==r)? ?lcd.print('.');
is legal C.
We could make it more verbose if that was too confusing:

if (d==r)? {
? lcd.print('.');
}
d = d -1;

That function pnum()? prints a number as either floating point with a specified decimal point position
or as an integer without a decimal point if we specify a decimal point position of 0.

The value r is kept constant within the function, says how many digits after the decimal point to be printed.
The value d keeps track of how many digits we have yet to print.

It's my substitute for the itoa() routine used in the default code.

Jerry


On Sun, May 6, 2018 at 08:32 am, Jack Purdum wrote:
if (d--==r)? ?lcd.print('.');

What??

Jack, W8TEE
?


Re: ND6T AGC implementation for uBIT-X

Rod Davis
 

¿ªÔÆÌåÓý

Gee, isn't this about the 8th different topic posted under the same
subject line?

Rod KM6SN



On 05/06/2018 10:00 AM, Tim Gorman wrote:

My problem is that my tuner, a homebrew z-match type, doesn't have an
swr meter. When operating portable, with a compromise antenna, knowing
the swr doesn't matter much unless you have that "extra" box normally
called a tuner. 

I'm just saying that knowing the swr doesn't matter much to me,
especially if it takes up more precious nano resources. All I need is a
reverse power indicator to tell when the tuner has matched the antenna.
The output power is going to be whatever it will be, there isn't much
you can do about it in the field. You don't normally adjust a tuner for
maximum output, you adjust it for minimum reflected power. 

Any random piece of wire is going to work as an antenna. The issue is
whether you can match the rig to the antenna using a tuner. 

tim ab0wr



On Sun, 06 May 2018 07:57:01 -0700
"Jerry Gaffke via Groups.Io" <jgaffke@...> wrote:

The goal is whatever we want it to be.

Showing SWR on the uBitx makes it useful for verifying an antenna
system is working without having to lug about an extra box,
especially when operating portable. If it costs an extra $3 in parts,
I'm fine with adding it to the rig.?

If you have a tuner that already shows SWR and forward power,
and your antenna needs a tuner anyway,
then your goal may be different.

Jerry, KE7ER

On Sun, May 6, 2018 at 07:43 am, Tim Gorman wrote:

Jerry,

What is the goal here? Is a wattmeter function really needed inside
the ubitx? Or would it be better as an external attachment that can
be used with other equipment?

For me, measurement of the reverse power is the primary measurement
needed inside the ubitx. It is useful for adjusting an external
tuner and for deciding if the ubitx is at risk from a bad load. I
am using the simple circuit at the nd6t site to get the reverse
power measurement. Right now I am using an external analog meter
but I have an adafruit ADS1015 that I am going to use when I get my
ubitx working again. I am using a little 4x4 breadboard to make an
I2C bus expander and the ADS1015 will feed into this along with the
I2C lcd.

Coding for this is extremely simple. You don't even have to convert
to volts. Just display the reading from the ads1015. As it goes
down you know the reverse power is going down. If you want to do it
with an analog pin on the nano you can do that too.

Just my 2cents. FWIW.  





Re: ND6T AGC implementation for uBIT-X

 

My problem is that my tuner, a homebrew z-match type, doesn't have an
swr meter. When operating portable, with a compromise antenna, knowing
the swr doesn't matter much unless you have that "extra" box normally
called a tuner.

I'm just saying that knowing the swr doesn't matter much to me,
especially if it takes up more precious nano resources. All I need is a
reverse power indicator to tell when the tuner has matched the antenna.
The output power is going to be whatever it will be, there isn't much
you can do about it in the field. You don't normally adjust a tuner for
maximum output, you adjust it for minimum reflected power.

Any random piece of wire is going to work as an antenna. The issue is
whether you can match the rig to the antenna using a tuner.

tim ab0wr



On Sun, 06 May 2018 07:57:01 -0700
"Jerry Gaffke via Groups.Io" <jgaffke@...> wrote:

The goal is whatever we want it to be.

Showing SWR on the uBitx makes it useful for verifying an antenna
system is working without having to lug about an extra box,
especially when operating portable. If it costs an extra $3 in parts,
I'm fine with adding it to the rig.?

If you have a tuner that already shows SWR and forward power,
and your antenna needs a tuner anyway,
then your goal may be different.

Jerry, KE7ER

On Sun, May 6, 2018 at 07:43 am, Tim Gorman wrote:


Jerry,

What is the goal here? Is a wattmeter function really needed inside
the ubitx? Or would it be better as an external attachment that can
be used with other equipment?

For me, measurement of the reverse power is the primary measurement
needed inside the ubitx. It is useful for adjusting an external
tuner and for deciding if the ubitx is at risk from a bad load. I
am using the simple circuit at the nd6t site to get the reverse
power measurement. Right now I am using an external analog meter
but I have an adafruit ADS1015 that I am going to use when I get my
ubitx working again. I am using a little 4x4 breadboard to make an
I2C bus expander and the ADS1015 will feed into this along with the
I2C lcd.

Coding for this is extremely simple. You don't even have to convert
to volts. Just display the reading from the ads1015. As it goes
down you know the reverse power is going down. If you want to do it
with an analog pin on the nano you can do that too.

Just my 2cents. FWIW.


Re: ND6T AGC implementation for uBIT-X

 

Bill K9Hz

I am impressed by your ATU design.? That should be of interest to the BITX group when you
publish it.? Will you be manufacturing and selling the unit as an on-line product??

From wondering if there might be a QRO version of your ATU I took a look at your "The QRO Group"
</g/QRO>? and found that there are only 6 members, and that there have been only
6 posts from 2017 until now.? All of those posts seem to be from you.? Does that mean that QRO may
be a dying mode...? ?? ?

A slightly off-topic question, what discipline is your doctorate in?? Is it based on a PhD, or some other
type of "doctor"?

Arv
_._


On Sat, May 5, 2018 at 11:45 PM, K9HZ <bill@...> wrote:

´¡°ù±¹¡­

?

Hmmm¡­ we should probably take this off-line at this point.? This has to do with A/D resolution time vs. filter time.

?

I¡¯m rethinking¡­that diodes would be a better choice just because they are less complicated.? The transform to watts and SWR is still complex though and will eat some processing power in a Nano.

?

My tuner is prototyped and the hardware is done.? The firmware is in the writing stage¡­ I¡¯m waiting for Jack to finish his Jackal project and a another second follow-up project before I officially ask for his help in coding.? It can tune 100 watts from any source (meaning it can be stand-alone¡­ or I2C linked to the uBITx), uses latching relays to conserve power for QRP, has a 1:4 transformer for very low loads like the illusive short length impedances at very low frequency (12 ohms), CL-LC swap for high-low impedance matches of us to almost 12,000 ohms, ?an AD8302 to generate phase and magnitude information of the load impedance like a point on a smith chart and then calculates the LC transform directly and instantly¡­ no clicking-clacking relays searching for lowest SWR.? SWR and power is calculated and can be retrieved over the I2C or analog via the onboard dedicated Arduino (for those interested, the LP-100A watt meter generates power and SWR readings this way).? There is also a low power tune mode Dig Out to save the relays and protect the transmitter by commanding lower power (works down to about 250 mW).? So far it fits on a 5¡±x3¡± board but I may be able to shrink it.? Stay tuned.

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ

?

Owner - Operator

Big Signal Ranch ¨C K9ZC

Staunton, Illinois

?

Owner ¨C Operator

Villa Grand Piton ¨C J68HZ

Soufriere, St. Lucia W.I.

Rent it:

Like us on Facebook!

?

Moderator ¨C North American QRO Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Arv Evans
Sent: Sunday, May 6, 2018 12:05 AM
To: [email protected]
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

?

Bill K9HZ

Not sure I follow your analysis.? The added capacitance lowers upper frequency limit by a significant amount.

You can even go as high as 0.1 MFD so that the detector output is filtered to virtually DC, leaving no HF

knee in the passband.? This does cause a charge period error unless there are multiple samples to charge
this capacitor.? Same thing applies to simple diode detection with it's post-detection filter capacitor.?

The Arduino ADC provides 1023 distinct voltage steps.? It's internal voltage reference is used for calibration.

With a maximum of 5V and 1023 steps this gives a minimum sensitivity of around 0.005V and 5V full scale.

That range and resolution seems adequate for most transmitter RF measurements.

?

It may be interesting to try using conventional diode detection with a small forward bias to overcome the

diode offset.? This is not usually done in conventional SWR bridges because they are mostly non-powered

units.? But if the SWR bridge is to be inside a powered transceiver then the bias is readily available.

Now that AD8307 prices are more reasonable this device may be a viable alternative detector but it's

log slope ADC requires a bit more complex software if you want to derive the full compliment of FWD and

REV power, FWD and REV SWR, RF Voltage, RF Current, and possibly RF Impedance.?

With either diode or AD8307 detectors it should be relatively easy to make the software support automatic

calibration.? Possibly this could be based on measurement of the known output of one of the Si5351a ports.

Using and displaying this output could also be a test point to verify that the synthesizer chip is actually

operating at normal levels.

?

Some time ago you mentioned work on a QRP ATU of your own design for use with BITX transceivers.? How
is that coming along?? Are you planning on including SWR and power measurement capability at both input

and antenna ends of this unit?? Might be interesting to include calculation and display of impedance, particularly

at the transmitter end of the ATU to help get a good 50 ohm match to the IRF510 finals and associated LPF.

As you know, impedance is important when using an LPF designed for a specific cut-off frequency in order to
make the LPF operate within its design parameters.

?

Arv? K7HKL
_._

?

On Sat, May 5, 2018 at 7:26 PM, K9HZ <bill@...> wrote:

´¡°ù±¹¡­

?

I¡¯m quite familiar with the 8307 characteristics¡­ there is a an effective 12.5K on chip resistor that forms part of a low-pass filter in shunt form basis that external capacitor.? It¡¯s designed to reduce the ripple of the output and as I recall has a corner frequency of about 5MHz with the suggested capacitor (10 or 100nF from memory).? As you change the corner is also loads the output and changes the slope factor.? Not a big deal but you need to recalibrate.? It being faster than an analog meter is not really relevant and actually part of the problem.? What is relevant though, and what you see in the lab is that the P-forward resolved by the Nano A/D pin ¡°x¡± finishes at ¡°t¡± and P-reverse is resolved by Nano A/D pin ¡°y¡± at ¡°t+n¡± where ¡°n¡± is what makes the difference.? Because of that filter above, it¡¯s frequency dependent.? Most folks just calculate away for SWR and get a number and figure its right.? Might be.? Might not.? Someone actually wrote an article for QST on this.

?

Anyway¡­ I tried.

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ

?

Owner - Operator

Big Signal Ranch ¨C K9ZC

Staunton, Illinois

?

Owner ¨C Operator

Villa Grand Piton ¨C J68HZ

Soufriere, St. Lucia W.I.

Rent it:

Like us on Facebook!

?

Moderator ¨C North American QRO Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Arv Evans
Sent: Saturday, May 5, 2018 7:48 PM
To: [email protected]
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

?

Bill K9Hz

Adding a small external capacitor (o.001 mfd) at the input of each ADC provides extra stabilization

versus time for the voltage samples.? This added capacitance can be thought of as part of the
detector filter. ? The sample rate of an AVR Mega-328 is quite fast but this adds a bit more pre-hold
or averaging to the traditional sample-and-hold function.?

I would not worry about time shifting of ADC measurements because it is still faster than a ballistic
meter movement that we have all relied on for many years.? If you really want traditional mechanical
meter results you can slow down the sample rate or average several samples to arrive at an?

averaged voltage reading.

In addition to measuring forward power, reverse power, and RF voltage, you can measure RF current

by using a current-transformer (like those in the Stockton or Bruene bridge) to get a voltage reading

that translates from RF current.? This may be very interesting for those who are using a uBITX or QCX

transceivers for VLF.??? <>

Arv? K7HKL
_._

?

Arv? K7HKL
_._

?

?

On Sat, May 5, 2018 at 6:23 PM, K9HZ <bill@...> wrote:

The I2C isn¡¯t all that important.? What is important is the sample and hold.? Otherwise your forward and reflected power signals can be time shifted and won¡¯t make sense.? But maybe again, if accuracy isn¡¯t important to you, this isn¡¯t either.? Ten turns of any small transformer wire on the T50-43 or smaller core works perfect.

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ

?

Owner - Operator

Big Signal Ranch ¨C K9ZC

Staunton, Illinois

?

Owner ¨C Operator

Villa Grand Piton ¨C J68HZ

Soufriere, St. Lucia W.I.

Rent it:

Like us on Facebook!

?

Moderator ¨C North American QRO Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Kees T
Sent: Saturday, May 5, 2018 6:59 PM
To: [email protected]
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

?

The eBay sellers (many) are providing boards with AD8307s on them and also strips of AD8307 parts. On my mWattmeter II kit I provided a "matched set" of HP diodes which were forward biased with a few uA (AAA cell) to allow readings <1mW.....and it worked very well as measured in a local professional lab. I don't think that accuracy is required here. I can provide an I2C interface as Bill, K9CZ, suggested but don't know if that's really required here either.

I later gave the mWattmeter II design to Ron, W4MMP, for production because I got tired of making mWattmeter II kits.?

I realize Diz makes a coupler but this one would be smaller? ...maybe 1" x 1-1/2" and use the dual double #61 FT-37 size toroids with Faraday shield and 23 turns, which I found to work best. A LOT of coffee cup coasters were made during that time. I have an old schematic but it's in .bmp format and won't load into the Files section.??

73 Kees K5BCQ??

?

Virus-free.

?

?



Re: 45Mhz crystal filter specification

 

One question from me Ashhar, where can I obtain several of those 45 MHz filters? ?What is the part number?

Thanks,

Jim Sheldon, W0EB

------ Original Message ------
From: "Ashhar Farhan" <farhanbox@...>
Sent: 5/6/2018 11:03:06 AM
Subject: Re: [BITX20] 45Mhz crystal filter specification

You must use the L network of the ubitx or use 1:9 balun to get the proper shape of the fiilter. The 45 MHz crystal filters usually have a termintion specified for around 600 ohms.?

Let me bullet this :
* All filters have the specified shape only when they are terminated at the specified impedance on both sides.
* The passive filters, including the crystal fitlers have no measurable termination to speak of at all. They have different responses at different impedances.?
* The capacitors of the ladder filter set the bandwidth.
* The termination impedance sets the ripple. Lower impedance brings steeper skirt at the cost of ripples in the bandpass. To remove the ripples you increase the impedance and lose the sharpness of the skirt.


On Sun, May 6, 2018 at 7:45 PM, Tim Gorman <tgorman2@...> wrote:
I'm using a direct probe. The 815 has a 50ohm input which should be a
match to most points in the ubitx. At least a close enough match to not
directly affect the circuits operation. I suppose I could use a 10x
scope probe but I'm not sure that would make much difference.

tim ab0wr

On Sun, 06 May 2018 01:03:42 -0700
freefuel@... wrote:

> Hi Tim,
>
> I'm interested to know how your connecting your SA to the circuit,
> from my recollection the majority of SA equipment has a 50 ohm input
> impedance, an input impedance that low is not conducive to hanging a
> probe off the circuit at any convient location.?
>
> -Justin N2TOH






Re: 45Mhz crystal filter specification

 

You must use the L network of the ubitx or use 1:9 balun to get the proper shape of the fiilter. The 45 MHz crystal filters usually have a termintion specified for around 600 ohms.?

Let me bullet this :
* All filters have the specified shape only when they are terminated at the specified impedance on both sides.
* The passive filters, including the crystal fitlers have no measurable termination to speak of at all. They have different responses at different impedances.?
* The capacitors of the ladder filter set the bandwidth.
* The termination impedance sets the ripple. Lower impedance brings steeper skirt at the cost of ripples in the bandpass. To remove the ripples you increase the impedance and lose the sharpness of the skirt.


On Sun, May 6, 2018 at 7:45 PM, Tim Gorman <tgorman2@...> wrote:
I'm using a direct probe. The 815 has a 50ohm input which should be a
match to most points in the ubitx. At least a close enough match to not
directly affect the circuits operation. I suppose I could use a 10x
scope probe but I'm not sure that would make much difference.

tim ab0wr

On Sun, 06 May 2018 01:03:42 -0700
freefuel@... wrote:

> Hi Tim,
>
> I'm interested to know how your connecting your SA to the circuit,
> from my recollection the majority of SA equipment has a 50 ohm input
> impedance, an input impedance that low is not conducive to hanging a
> probe off the circuit at any convient location.?
>
> -Justin N2TOH






Re: boosting the power on 28 MHz #ubitx

 

Several things....? The problem may be in the drivers for the IMD.

I found that below 50ma was not as good as I'd like and 10mA was bad.
I currently run the EBY amp at 100mA.? Also my Slopbucket20 wants to
be at?60ma (single ended 20M only) from testing.

The right current is what the circuit behaves at not some proscription.
For example the 4x4 IRF510 for 6M (250W at 30V!) idles at about 1.2A
ot about 150ma per device.? It has a very large heatsink 5x8x1.75" with
1.5" f the height being fins!

Also increasing the voltage alone does not improve the IMD of other
factors are not in line.? The driver must be able to provide clean drive
and bias must be right (too low leads to cross over distortion).? If the
output match is wrong compression and flat topping at the extreme
may result.

A breadboard of the uBITX amp funs well for me at 100mA device but
far larger heatsink and has mods like different output transformer,?
2n2369 for predriver (FT600mhz) and the 2n3904 replaced with a?
device with characteristics like 2n2222A but a higher FT of 500mhz.
I included similar tricks like adding peaking for frequencies over 14mhz.
However for LF stability I kept the feedback on the IRF510s but added
in series a 2.2UH choke in series with the resistors to make the gain curve
increase with frequency (reduces the feedback with increasing frequency)
for stability.

The primary issue is the gates of the IRF510 being capacitive and exhibit
lower impedance with increasing frequency.? That means the driver match is?
not as good at 28 as it would be at 7mhz.? Add leakage inductance of the
output transformer and matters get worse.? The IRF510 has about the
same gain at 30mhz as down lower.? The problem is by time you at 30mhz
the input Z is about 12-13ohms where at 3mhz its closer to 140 ohms!
This means the driver has to put as much power out into 22ohms (push pull)
as it can into 280 at a lower frequency.? ??A partial fix for that is the 47ohm bias
feed resistors can be lowered to about 33 ohms with a 370nh inductor in series
with the resistors as then the effect of resistive loading?is balanced for the driver
looking more like 66ohms at 3mhz but increasing as frequency goes up.? That
lowers the power absorbed in the resistors with increasing frequency and
helps maintain the drive to the IRF510s.

I tried paralleling 2 and 5 plus 3 and 4 windings of t2 for better power and that helps
at the higher end but not enough.? This suggests many things to investigate about
coupling and wire used.

For the output transformer I have some Fb43-302 two hole ferrite.? I use two?
end to end and the primary is PTFE wire and the secondary is 5 strands of
#30 kynar wire wrap wire in parallel.? The ferrite gives tighter coupling and
shorter leads with overall lower leakage reactance also its wound 2:3 for
better impedance match though I plan to try other windings.? L9/L8 changed
to a fb43-302 bifilar wound with 6 turns.?

Why do all that.? The output capacitance of most power fets is high and?
to extract power efficiently the circuit impedance needs to be low.? For 10W
you would thing 20-30 ohms is low but we need to be near 12-15.? IF we
are inefficient in extracting power the FETs heat or give apparent poor gain.

It does much better to 28mhz with the combined changes.?

Changing to RD16HHF does not alone make it good as it has its own set of changes to
match its input? and feedback capacitance.? It also requires a higher Bias current as the
output capacitance is higher requiring the circuit impedances to be lower.? ?ITs not a drop
in.? When I use that device I take advantage of the flange being the source and ground it
while using a larger heatsink.

Allison


Re: FT8 on uBITX experiences

 

Yesterday was one month of my uBITx in operation and it's been
100% FT8.? I posted my FT8 initial first week comments in:

???? /g/BITX20/message/46494

After one month, I've had 252 FT8 contacts.? This has been with
a modest random length end-fed 59 ft antenna with one end up in
a tree.? I've worked 80m, 60m, 40m, 30m, 20m, 17m, & 15 meters.
Almost all contacts have been 4 watts or less.? The results have
been great.? It includes 45 of 50 US states confirmed toward WAS
(I'm still trying to nail down those last 5 states).?? It also
includes New Zealand, Australia, Russia AS, Samoa, Cuba, Japan,
and Canada.

So, I've been very happy with FT8.? I'll be even happier when
the subspot cycle turns up.....:)

Tom
AB7WT


Designing a front panel PCB

 

¿ªÔÆÌåÓý

Hi,

I was wondering if anybody had consider designing a PCB which could be used as a front panel for the uBITX? The PCB vendor would be able to route the rectangle for the display and the holes for the volume, encoder and audio connections. I know, what size to pick would be a problem but make the design so it could be adapted for several cases.

Silk screen could be used for the labels and it would look very profession. Now, here the big advantage. On the reverse side you could put SMD designs. There are lots of PCBs being done at the minute, but many of them could be incorporated on the reverse of the front panel.

In stead of rats nest wiring to all the controls, tracks could be place to just beside the controls and short jumper wires from the tracks to the control. As the audio would be available, there is the possibility for DSP by adding a Teensy or a Red/Blue Pill using surface mounted headers. I think you can see where I'm going with this.

There are a lot of really talented designer who are already producing PCBs and maybe it's a big ask to do this. Maybe it could be a cooperative venture for a couple of designers?

Then, don't stop there - there always the back panel with SWR bridges, tuners etc, and use the copper as a heat sink for the finals in to the bargain.?

Cheers

Reid Gi8TME/Mi0BOT




Re: boosting the power on 28 MHz #ubitx

 

There is an old trick from Orr's Radio Handbook 1967 of testing the linearity of any stage using two tones and two diode detectors applied at the input and output of any module or stage of the transmitter? to an X-Y oscilloscope display. It should show a straight line if the tested stage is really linear. Any deviations from straight line may show if it is crossover or clipping. Of course, it is no substitute for a spectrum analyzer, but it is a nice poor man's trick. Beware, too high RF level may burn the diodes, too low may show inexistent distortions, due to diode threshold voltage.

73,

Jos¨¦, CO2JA

?Sent from BlueMail ?

On May 6, 2018, 15:53, at 15:53, Tim Gorman <tgorman2@...> wrote:
Jerry,

I tried raising the voltage on my final to 24v. It didn't help the 3rd
order IMD at all. I suspect most of the IMD is coming from crossover
distortion, not flat-topping.

tim ab0wr

On Sat, 05 May 2018 21:44:28 -0700
"Jerry Gaffke via Groups.Io" <jgaffke@...> wrote:

Very cool, thanks for digging into this.
I tried various schemes in LT-Spice, but improving the final is more
difficult than it seems going in.?
I could seldom correctly predict the results I got.
Need to re-read a few chapters of EMRFD.?
And of course, real hardware is likely quite different than the
simulation.

So is this still the previously reported? 4W at 30m, 13W on 80m?

Would raising the PA-PWR voltage to 24v improve that IMDR?
Perhaps if keeping power down to something reasonable with RV1,
we could get by without up-sizing the heatsinks.

Jerry

On Sat, May 5, 2018 at 09:28 pm, Ashhar Farhan wrote:


So, here are the final mods,?
Replace C81 from 0.1uf to 470pf
Replace R83 from 10 ohms to 2.2 ohm
(you can short R83 as well)?
Replace 97, R98 from 47 ohms to 220 ohms
Remove C261, C262.?
?
So, what happens is that removing the C261 and C262 increases the
gain of the finals. They are run open. Hence greater gain at 28
mhz. However, the gain is very high at lower frequencies. So, in
order to reduce the gain at the lower frequencies, the 0.1 uf cap
is replaced by the 470 pf. As the frequency of the signal drops,
less and less RF flows through the 470 pf, decreasing the gain of
the predriver. 470 pf is not a magical value, 220 pf works almost
as well. Here are the pictures at 14 mhz. The two tone test reveals
20 db IMDR, which is alright. If you want to see better, buy
yourself two RD16HHF1s.
- f


Re: ND6T AGC implementation for uBIT-X

Jack Purdum
 

Jim:

Probably not a solution for portable work, unless you're close to a Rent-a-Lackey store.

Jack, W8TEE


On Sunday, May 6, 2018, 11:27:09 AM EDT, Jack Purdum via Groups.Io <jjpurdum@...> wrote:


Jim:

Funny how things work out. Al (AC8GY) and my builders' group put together a dummy load with builtin watt meter that withstood 250W for 5 minutes, although we rate it at 150W. True, you could cook French fries in the oil, but it worked. It uses a Nano and the cost was under $20. It looks like:

Inline image

An article based on it has been accepted by QST and will be forthcoming sometime (?) this year. Once calibrated, it should meet both your requirements.

Jack, W8TEE


On Sunday, May 6, 2018, 11:00:09 AM EDT, Jim Sheldon <w0eb@...> wrote:


I somewhat agree with Tim on this, but will go out on a limb, risk
getting flamed and say I don't think a reverse power measurement in
firmware is really necessary.

In my opinion, two absolutely necessary pieces of test equipment that
should be in EVERY ham's shack are a good 50 ohm dummy load of
sufficient power rating to handle all the transmitting equipment that
ham has and a GOOD SWR bridge or better still an accurate watt meter
that can measure forward & reverse power up to the limit of the
transmitting equipment in the shack.? The rig's firmware should not be
tasked with this especially since the limited NANO is being used as a
microcontroller.

The supplied NANO is already close to being severely overworked by all
the different available firmware and adding this kind of stuff risks
ruining the CW and Digital handling capability of what's available now.
I'm already seeing complaints of "This won't work or that won't work in
so-and-so's version of software" regarding a number of things on this
group.? Adding more bells and whistles to existing software for the NANO
will just tend to make this worse.

Jim Sheldon, W0EB

------ Original Message ------
From: "Tim Gorman" <tgorman2@...>
Sent: 5/6/2018 9:43:08 AM
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

>Jerry,
>
>What is the goal here? Is a wattmeter function really needed inside the
>ubitx? Or would it be better as an external attachment that can be used
>with other equipment?
>
>For me, measurement of the reverse power is the primary measurement
>needed inside the ubitx. It is useful for adjusting an external tuner
>and for deciding if the ubitx is at risk from a bad load. I am using
>the simple circuit at the nd6t site to get the reverse power
>measurement. Right now I am using an external analog meter but I have
>an adafruit ADS1015 that I am going to use when I get my ubitx working
>again. I am using a little 4x4 breadboard to make an I2C bus expander
>and the ADS1015 will feed into this along with the I2C lcd.
>
>Coding for this is extremely simple. You don't even have to convert to
>volts. Just display the reading from the ads1015. As it goes down you
>know the reverse power is going down. If you want to do it with an
>analog pin on the nano you can do that too.
>
>Just my 2cents. FWIW.
>
>On Sat, 05 May 2018 15:52:36 -0700
>"Jerry Gaffke via Groups.Io" <jgaffke=[email protected]> wrote:
>
>>Kees,
>>
>>Consensus on the EMRFD yahoo group was that the ebay AD8307's worked
>>fine:
>>
>>Some posts there are guessing that when boards get autostuffed from
>>reels there are often a few parts remaining at the end of the reel,
>>and the ebay sellers make the remnants available cheaply. Though if
>>that were truly the case, I'd expect more parts to get sold at 95%
>>off list price like that.
>>
>>Diz already has a Stockton/TandemMatch kit at what I think is a
>>reasonable $12 plus shipping:
>>Shipping probably has to be
>>more than $0.70 because of the toroids. Uses 1n5711 schottky diode
>>detectors.
>>
>>I mentioned here that I was planning to substitute a couple AD8307's
>>but Arv convinced me to first try biasing the 1n5711's to make them
>>more sensitive. /g/BITX20/message/47628
>>You probably already saw that, it's in this same thread.
>>
>>I wrote Nano code for the Tandem Match? to display forward and
>>reverse power in Watts, also SWR. but it's also a major rewrite of
>>all the uBitx code and I got lost in the weeds fiddling with other
>>stuff for a few weeks.? I'll try to get my code going in the next few
>>days. The AD8307's would give more dynamic range, but I think the
>>1n5711's with bias will be plenty polite. Displaying Watts and SWR
>>from the AD8307's linear-in-dB output would be slightly more
>>difficult on our computationally challenged Nano.? I'm planning to
>>use A6 and A7 for the bridge, move the paddle to digital pins D0 and
>>D1 (which are currently unused except when downloading firmware).
>>
>>Anybody worried about smoking their expensive RD16HHF1 FET's could
>>use the reflected power reading to shut down the transmitter when
>>their EFHW antenna falls to the ground in the wind.? ? ;-)
>>
>>Jerry, KE7ER
>>
>>On Sat, May 5, 2018 at 01:30 pm, Kees T wrote:
>>
>> >
>> > I just uploaded the current AGC and Click kit requests. This list
>> > is to help me asses demand so I can have the correct sets of parts
>> > ready. There does not appear to be much demand for boards only,
>> > just complete kits.
>> >
>> > I'll post prices later, when I receive the boards and some testing
>> > is done.
>> >
>> > I was looking into Don's ND6T Polite Antenna Tuner, but there does
>> > not appear to be much interest and using it effectively may be a
>> > problem, so it's out. I did receive a request for a "Power Level
>> > Upgrade" kit but decided against that because there is a whole lot
>> > of testing to be done when you get into RF Amplification.
>> >
>> > What may make sense, unless it's already out there as an add-on
>> > upgrade kit, is a Power/SWR capability using? a simple Stockton
>> > Bridge and a couple of AD8307's. I'm quite familiar with the bridge
>> > and the AD8307 parts are getting really cheap <$0.50 each. Wonder
>> > if those Chinese parts are usable at QRP specs ? Would need two
>> > analog inputs on whatever microcontroller .......and, of course,
>> > the ever present requirement for *someone* to provide support
>> > firmware.
>> >
>> > 73 Kees K5BCQ
>
>
>
>




Re: ND6T AGC implementation for uBIT-X

Jack Purdum
 

if (d--==r)? ?lcd.print('.');

What??

Jack, W8TEE


On Sunday, May 6, 2018, 10:41:34 AM EDT, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:


Here's my unproven code for displaying forward and reverse power in Watts
plus SWR on the bottom line of the 16x2 LCD, when using a TandemMatch with diode detectors.
It's actually quite simple and not computationally expensive..? Hereby released under GPL v3.0

Could be made more accurate by adding the schottky diode drop to the two voltage readings.
Assuming the transformer turns ratios are kept at 10:1, the SWR should be reasonably accurate
without calibration.? Especially if a few uA of bias is added to the diodes.
Power readings should be reasonably accurate if the SWR is close to 1:1
since they assume a 50 ohm load.

Maximum analogRead() return value is 1023, and represents a peak RF voltage of 5 volts.
Given the 10:1 turns ratio and assuming there is zero reflected power, that's an RF peak
voltage at the antenna jack of 50 volts, and an rms RF voltage of? 50/sqrt(2).? Assuming an
antenna load of 50 ohms, that's a power of? ?(50/sqrt(2)) * (50/sqrt(2)) / 50 ohms = 25.0 watts.
From this, we determine the value of PSCALE in the code below.

Using the linear-in-db ad8307 could be done with the same code, but first using
a table lookup to convert to RF volts.
I don't really want to be computing anti-logs on a Nano.
A table lookup will burn some flash.

################################################################
// Print val as d digits with r digits after the decimal point
// Will print any leading zeros, if r==0 then no decimal point
void pnum(uint32_t val, uint8_t d, uint8_t r) {
? uint32_t? div=1;
? uint8_t? ?n;?
? for (n=1; n<d; n++)? div*=10;
? while (div>0) {
? ? if (d--==r)? ?lcd.print('.');
? ? ? ? lcd.print((val/div) + 0x30);
? ? val = val%div;
? ? div = div/10;
? }
}
?
// Read TandemMatch's 2 detectors, display forward and reverse power, swr
#define PSCALE? (1023L*1023/(25*10)) // ADC max of 1023 is 25 Watts, display Watts*10
void? show_swr() {? // SWR = (1+1.0*vr/vf)/(1-1.0*vr/vf);
? uint32_t vr, vf, swr; // Voltage squared proportional to power
? vf = analogRead(RF_FWD); // Peak RF volts from forward detector
? vr = analogRead(RF_REV); // Peak RF volts from reverse detector
? if (vr>=vf) swr=0; // If vr,vf illegal, force SWR to zero
? else {
? ? swr = (vr*1024)/vf; // Voltage ratio, 10 fractional bits
? ? swr = (1000*(1024+swr))/(1024-swr); // 1000*swr, nearly 10 fractional bits
? ? swr = (swr+50)/100; // 10*swr, rounded to nearest tenth
? ? if (swr>99) swr=99;? // Display a max SWR of 9.9
? }
? lcd.setCursor(0, 1); // Fill bottom LCD line, example:
? lcd.print('f'); pnum(vf*vf/PSCALE,3,1); // "f12.4 r03.1 s1.7"
? lcd.print('r'); pnum(vr*vf/PSCALE,3,1); // with fwd,rev power in watts
? lcd.print('s'); pnum(swr,2,1); // and swr to max of 9.9
}
#################################################################

My primary reason not to mess with ad8307's is that they are harder to dead bug.
If the timing skew between forward/reverse readings is an issue, I'd definitely try the cap.
Likely still accurate enough.?

Bill wrote:

>?58.6 KHz would be ok, but to get that rate probably assumes that the processor is dedicated to the task, not off doing other uBITx work,


We currently use a blocking analogRead() in many places in the code, each taking over 100us.
And in some cases do it constantly for stuff such as inspecting switches or keyer paddles.
So speeding up the analogRead() by a factor of 5 and occasionally (once per second?)?
reading the forward and reverse power should not be much of a burden, even if averaging
a half dozen reads.?

Should be possible to set up the ADC to be interrupt driven, an interrupt service
routine updates a list of all ADC readings.? In mainline code, we'd then disable interrupts
and read those last few forward and reverse readings to take an average.? Since we
are no longer blocking for each 100us+ analogRead(), this would be much less a timing burden.

Things may eventually slow down too much for somebody trying to use the keyer at 40wpm.
Otherwise I doubt there will be much of an issue with a lost millisecond here and there.
And I'm inclined to avoid interrupts till they are absolutely needed, as they are prone to?
errors that would be inscrutable to the several thousand new programmers we want to
be playing with this code.

Jerry, KE7ER?


On Sat, May 5, 2018 at 10:45 pm, K9HZ wrote:

Hmmm¡­ we should probably take this off-line at this point.? This has to do with A/D resolution time vs. filter time.

I¡¯m rethinking¡­that diodes would be a better choice just because they are less complicated.? The transform to watts and SWR is still complex though and will eat some processing power in a Nano.


Re: ND6T AGC implementation for uBIT-X

 

Well two things...

You assume the uBITx will be used in the shack in your response. Probably true for most operating, but if carrying the radio into the field for QRP operations, the last thing you want to drag along is a separate dummy load and/ or SWR meter... but that is where you most need it... for temporary "on the spot" antennas. Any sort of semi accurate SWR calculator is better than nothing.

Slowing down processing by additional code. Yes I'm extremely aware of this problem hence the my posts on timing. An outboard I2C A/D removes a lot of this load because 1) we are already using the I2C library for other functions in the radio, and 2) the update frequency requirements once off the original Arduino are much lower.


Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ

Owner - Operator
Big Signal Ranch ¨C K9ZC
Staunton, Illinois

Owner ¨C Operator
Villa Grand Piton ¨C J68HZ
Soufriere, St. Lucia W.I.
Rent it: www.VillaGrandPiton.com
Like us on Facebook!

Moderator ¨C North American QRO Group at Groups.IO.

email: bill@...

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jim Sheldon
Sent: Sunday, May 6, 2018 10:00 AM
To: [email protected]
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

I somewhat agree with Tim on this, but will go out on a limb, risk getting flamed and say I don't think a reverse power measurement in firmware is really necessary.

In my opinion, two absolutely necessary pieces of test equipment that should be in EVERY ham's shack are a good 50 ohm dummy load of sufficient power rating to handle all the transmitting equipment that ham has and a GOOD SWR bridge or better still an accurate watt meter that can measure forward & reverse power up to the limit of the transmitting equipment in the shack. The rig's firmware should not be tasked with this especially since the limited NANO is being used as a microcontroller.

The supplied NANO is already close to being severely overworked by all the different available firmware and adding this kind of stuff risks ruining the CW and Digital handling capability of what's available now.
I'm already seeing complaints of "This won't work or that won't work in so-and-so's version of software" regarding a number of things on this group. Adding more bells and whistles to existing software for the NANO will just tend to make this worse.

Jim Sheldon, W0EB

------ Original Message ------
From: "Tim Gorman" <tgorman2@...>
To: [email protected]
Sent: 5/6/2018 9:43:08 AM
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

Jerry,

What is the goal here? Is a wattmeter function really needed inside the
ubitx? Or would it be better as an external attachment that can be used
with other equipment?

For me, measurement of the reverse power is the primary measurement
needed inside the ubitx. It is useful for adjusting an external tuner
and for deciding if the ubitx is at risk from a bad load. I am using
the simple circuit at the nd6t site to get the reverse power
measurement. Right now I am using an external analog meter but I have
an adafruit ADS1015 that I am going to use when I get my ubitx working
again. I am using a little 4x4 breadboard to make an I2C bus expander
and the ADS1015 will feed into this along with the I2C lcd.

Coding for this is extremely simple. You don't even have to convert to
volts. Just display the reading from the ads1015. As it goes down you
know the reverse power is going down. If you want to do it with an
analog pin on the nano you can do that too.

Just my 2cents. FWIW.

On Sat, 05 May 2018 15:52:36 -0700
"Jerry Gaffke via Groups.Io" <jgaffke@...> wrote:

Kees,

Consensus on the EMRFD yahoo group was that the ebay AD8307's worked
fine:

Some posts there are guessing that when boards get autostuffed from
reels there are often a few parts remaining at the end of the reel,
and the ebay sellers make the remnants available cheaply. Though if
that were truly the case, I'd expect more parts to get sold at 95% off
list price like that.

Diz already has a Stockton/TandemMatch kit at what I think is a
reasonable $12 plus shipping:
Shipping probably has to be
more than $0.70 because of the toroids. Uses 1n5711 schottky diode
detectors.

I mentioned here that I was planning to substitute a couple AD8307's
but Arv convinced me to first try biasing the 1n5711's to make them
more sensitive. /g/BITX20/message/47628
You probably already saw that, it's in this same thread.

I wrote Nano code for the Tandem Match to display forward and reverse
power in Watts, also SWR. but it's also a major rewrite of all the
uBitx code and I got lost in the weeds fiddling with other stuff for a
few weeks. I'll try to get my code going in the next few days. The
AD8307's would give more dynamic range, but I think the 1n5711's with
bias will be plenty polite. Displaying Watts and SWR from the AD8307's
linear-in-dB output would be slightly more difficult on our
computationally challenged Nano. I'm planning to use A6 and A7 for
the bridge, move the paddle to digital pins D0 and
D1 (which are currently unused except when downloading firmware).

Anybody worried about smoking their expensive RD16HHF1 FET's could use
the reflected power reading to shut down the transmitter when
their EFHW antenna falls to the ground in the wind. ;-)

Jerry, KE7ER

On Sat, May 5, 2018 at 01:30 pm, Kees T wrote:


I just uploaded the current AGC and Click kit requests. This list
is to help me asses demand so I can have the correct sets of parts
ready. There does not appear to be much demand for boards only,
just complete kits.

I'll post prices later, when I receive the boards and some testing
is done.

I was looking into Don's ND6T Polite Antenna Tuner, but there does
not appear to be much interest and using it effectively may be a
problem, so it's out. I did receive a request for a "Power Level
Upgrade" kit but decided against that because there is a whole lot
of testing to be done when you get into RF Amplification.

What may make sense, unless it's already out there as an add-on
upgrade kit, is a Power/SWR capability using a simple Stockton
Bridge and a couple of AD8307's. I'm quite familiar with the bridge
and the AD8307 parts are getting really cheap <$0.50 each. Wonder
if those Chinese parts are usable at QRP specs ? Would need two
analog inputs on whatever microcontroller .......and, of course,
the ever present requirement for *someone* to provide support
firmware.

73 Kees K5BCQ






---
This email has been checked for viruses by AVG.


Re: ND6T AGC implementation for uBIT-X

Jack Purdum
 

Jim:

Funny how things work out. Al (AC8GY) and my builders' group put together a dummy load with builtin watt meter that withstood 250W for 5 minutes, although we rate it at 150W. True, you could cook French fries in the oil, but it worked. It uses a Nano and the cost was under $20. It looks like:

Inline image

An article based on it has been accepted by QST and will be forthcoming sometime (?) this year. Once calibrated, it should meet both your requirements.

Jack, W8TEE


On Sunday, May 6, 2018, 11:00:09 AM EDT, Jim Sheldon <w0eb@...> wrote:


I somewhat agree with Tim on this, but will go out on a limb, risk
getting flamed and say I don't think a reverse power measurement in
firmware is really necessary.

In my opinion, two absolutely necessary pieces of test equipment that
should be in EVERY ham's shack are a good 50 ohm dummy load of
sufficient power rating to handle all the transmitting equipment that
ham has and a GOOD SWR bridge or better still an accurate watt meter
that can measure forward & reverse power up to the limit of the
transmitting equipment in the shack.? The rig's firmware should not be
tasked with this especially since the limited NANO is being used as a
microcontroller.

The supplied NANO is already close to being severely overworked by all
the different available firmware and adding this kind of stuff risks
ruining the CW and Digital handling capability of what's available now.
I'm already seeing complaints of "This won't work or that won't work in
so-and-so's version of software" regarding a number of things on this
group.? Adding more bells and whistles to existing software for the NANO
will just tend to make this worse.

Jim Sheldon, W0EB

------ Original Message ------
From: "Tim Gorman" <tgorman2@...>
Sent: 5/6/2018 9:43:08 AM
Subject: Re: [BITX20] ND6T AGC implementation for uBIT-X

>Jerry,
>
>What is the goal here? Is a wattmeter function really needed inside the
>ubitx? Or would it be better as an external attachment that can be used
>with other equipment?
>
>For me, measurement of the reverse power is the primary measurement
>needed inside the ubitx. It is useful for adjusting an external tuner
>and for deciding if the ubitx is at risk from a bad load. I am using
>the simple circuit at the nd6t site to get the reverse power
>measurement. Right now I am using an external analog meter but I have
>an adafruit ADS1015 that I am going to use when I get my ubitx working
>again. I am using a little 4x4 breadboard to make an I2C bus expander
>and the ADS1015 will feed into this along with the I2C lcd.
>
>Coding for this is extremely simple. You don't even have to convert to
>volts. Just display the reading from the ads1015. As it goes down you
>know the reverse power is going down. If you want to do it with an
>analog pin on the nano you can do that too.
>
>Just my 2cents. FWIW.
>
>On Sat, 05 May 2018 15:52:36 -0700
>"Jerry Gaffke via Groups.Io" <jgaffke=[email protected]> wrote:
>
>>Kees,
>>
>>Consensus on the EMRFD yahoo group was that the ebay AD8307's worked
>>fine:
>>
>>Some posts there are guessing that when boards get autostuffed from
>>reels there are often a few parts remaining at the end of the reel,
>>and the ebay sellers make the remnants available cheaply. Though if
>>that were truly the case, I'd expect more parts to get sold at 95%
>>off list price like that.
>>
>>Diz already has a Stockton/TandemMatch kit at what I think is a
>>reasonable $12 plus shipping:
>>Shipping probably has to be
>>more than $0.70 because of the toroids. Uses 1n5711 schottky diode
>>detectors.
>>
>>I mentioned here that I was planning to substitute a couple AD8307's
>>but Arv convinced me to first try biasing the 1n5711's to make them
>>more sensitive. /g/BITX20/message/47628
>>You probably already saw that, it's in this same thread.
>>
>>I wrote Nano code for the Tandem Match? to display forward and
>>reverse power in Watts, also SWR. but it's also a major rewrite of
>>all the uBitx code and I got lost in the weeds fiddling with other
>>stuff for a few weeks.? I'll try to get my code going in the next few
>>days. The AD8307's would give more dynamic range, but I think the
>>1n5711's with bias will be plenty polite. Displaying Watts and SWR
>>from the AD8307's linear-in-dB output would be slightly more
>>difficult on our computationally challenged Nano.? I'm planning to
>>use A6 and A7 for the bridge, move the paddle to digital pins D0 and
>>D1 (which are currently unused except when downloading firmware).
>>
>>Anybody worried about smoking their expensive RD16HHF1 FET's could
>>use the reflected power reading to shut down the transmitter when
>>their EFHW antenna falls to the ground in the wind.? ? ;-)
>>
>>Jerry, KE7ER
>>
>>On Sat, May 5, 2018 at 01:30 pm, Kees T wrote:
>>
>> >
>> > I just uploaded the current AGC and Click kit requests. This list
>> > is to help me asses demand so I can have the correct sets of parts
>> > ready. There does not appear to be much demand for boards only,
>> > just complete kits.
>> >
>> > I'll post prices later, when I receive the boards and some testing
>> > is done.
>> >
>> > I was looking into Don's ND6T Polite Antenna Tuner, but there does
>> > not appear to be much interest and using it effectively may be a
>> > problem, so it's out. I did receive a request for a "Power Level
>> > Upgrade" kit but decided against that because there is a whole lot
>> > of testing to be done when you get into RF Amplification.
>> >
>> > What may make sense, unless it's already out there as an add-on
>> > upgrade kit, is a Power/SWR capability using? a simple Stockton
>> > Bridge and a couple of AD8307's. I'm quite familiar with the bridge
>> > and the AD8307 parts are getting really cheap <$0.50 each. Wonder
>> > if those Chinese parts are usable at QRP specs ? Would need two
>> > analog inputs on whatever microcontroller .......and, of course,
>> > the ever present requirement for *someone* to provide support
>> > firmware.
>> >
>> > 73 Kees K5BCQ
>
>
>
>