Re: Pulling Arduino data apart

Dr Fred Hambrecht

Anytime knowledge is imparted it cannot be viewed as “wasted bandwidth”. I for one enjoyed the conversation.

v/r

Fred W4JLE

From: BITX20@groups.io [mailto:BITX20@groups.io] On Behalf Of Jerry Gaffke via Groups.Io
Sent: Thursday, March 8, 2018 17:15
To: BITX20@groups.io
Subject: Re: [BITX20] Pulling Arduino data apart

Agreed, we've wasted too much time on something not at the top of our priorities here.
Anyone wishing to continue this discussion is welcome to send me a private message.

In parting, I believe that once the data is in the CPU, in this case stored as a 32 bit integer
in a register, endian-ness is not a factor.  This code looks correct to me:

Here's C code for machine A to send a 32 bit integer as a sequence of four bytes in little endian order::
sendbyte(data32);  sendbyte(data32>>8);  sendbyte(data32>>16);  sendbyte(data32>>24);
And code for machine B to receive that 32 bit integer (assumes getbyte() returnes an unsigned 8 bit integer):
data32=getbyte();  data32|=getbyte()<<8;  data32|=getbyte()<<16; data32|=getbyte<<24;
This C code doesn't care if the machine it is on is big endian or little endian.

An as I understand it, Jack disagrees, here's his argument:

the byte order, otherwise why are you interested only in the high byte. Your code:

sendbyte((data32>>24)&0xff);

to send a byte works great if the data is big endian:

01010101 00000000 00000000 00000000.         // Yellow is the byte of interest

However, if you don't know the byte order and it is:

00000000 00000000 00000000 01010101

Your code would throw the relevant data on the floor. Your code is only safe if you know
the order. A union is a simple way to determine that order.

Jerry, KE7ER

On Thu, Mar 8, 2018 at 12:53 pm, Jack Purdum wrote:

We've wasted enough bandwidth on this. I think unions are a great way to learn how data are organized for a given compiler and are well-worth knowing about. Anyone who doesn't think so can easily ignore them.

Re: uBITX Firmware CEC Version Added WSPR function, I am looking for a beta tester.

Carlos E. Wenzel <Ik2yra@...>

Hello Phillip,
How can you enter 14.094850 on Band 2 Box???
tks
Carlos

2018-03-09 15:56 GMT+01:00 Philip :

Hi Ian.

The frequency error is down to the way uBITX manager calculates the RF frequency. If I enter into the Band 2 box 14094850 Hz, then the audio comes out of my radio at 1.5 KHz, when it is tuned to 14.09560 MHz.
Now my WSPR is going all around the world.
I do find that I get a bit confused by all the calculations, when trying to work out all this stuff.
Anyway thanks for putting WSPR in to the uBITX, a great bonus.

Philip G7JUR

--
Carlos Wenzel
ik2yra@...
+39-3284684518
Skype: IK2YRA

Re: Fw: uBitx delivery

Rod Clifton <rclifton@...>

I ordered mine Dec 19 and had shipped India Post.  Arrived March 6 in VE3 Land.

Rod

Re: Fw: uBitx delivery

ON7HC

Hi,

Ordered µBitx on december 26 (\$ 109)
Shipped on february 26  (India Post).

It only took 10 days with India Post !

But ...  before I could even see the package, had to pay additional \$ 55  (€ 43,87), Belgian taxes and handling !
Robbery ...  :)

By the way,  U1 is WX.  I will replace it.

73
Herman

Re: uBITX Firmware CEC Version Added WSPR function, I am looking for a beta tester.

Carlos E. Wenzel <Ik2yra@...>

Ian

The problem has gone. It was a wrong/thin/broken cable. I changet it.
I also found a missing power output if you operate wspr function far away from the original ubitx frequency. I agree with Phillips abt this issue, BPF maybe remains locked on the original band.

"  the display shows 14.097100 MHz which is the frequency I selected in uBITX manager, but the RF being transmitted is in fact 14.099330 MHz..  "

cero beat on 14.099330 mHz when ubitx displays 14.097100 mHz (is not right?.... 2.2kHz)

Carlos

2018-03-09 15:33 GMT+01:00 Ian Lee :

Philip

Thank you very much
Your feedback is a great help to me because I am not in an environment where I can test now.
I will update the program within a day or two and upload it again and announce it through the group.
Note that the BPF selection uses some tricks as a constraint on program memory.
I will check that again.
Once again, I sincerely appreciate your test.

Ian KD8CEC

2018-03-09 22:36 GMT+09:00 Philip :
Hi Ian.
I would like to be a beta tester for the WSPR firmware. Just been playing with V1.05W, noticed a couple of problems.
For the uBITX to TX in WSPR mode the band your going to TX in needs to be selected first, maybe in WSPR mode the BPF selection is incorrect.
The other one is to do with the TX frequency. the display shows 14.097100 MHz which is the frequency I selected in uBITX manager, but the RF being transmitted is in fact 14.099330 MHz..
I have attached my BTX file from uBITX manager.
Best 73 Philip g7jur.

--
Best 73
KD8CEC / Ph.D ian lee
kd8cec@...
www.hamskey.com (my blog)

--
Carlos Wenzel
ik2yra@...
+39-3284684518
Skype: IK2YRA

Re: tx pop

PeteWK8S <pmeier@...>

I have implemented Greg W3NW's circuit using the same values BS170, 300K, 1N4148, 440nF and it does eliminate the pops.
However it's also almost completely quieted the sidetone even with R253 shorted. I can hear the sidetone at full volume but that's way, way too loud a setting for received signals.
Any suggestions?

Pete WK8S

Re: #uBitx - No TX

F8BXI

Hi All,

Just to let you know that thanks to your help, I confirmed my first QSO yesterday evening with FY5KE in CW (439/439). Cndx: uBitx around 10W, trap dipole in attic.

Bet 73,
Philippe

Le 6 mars 2018 à 22:32, Jerry Gaffke via Groups.Io <jgaffke@...> a écrit :

Ah, good.   I assume you now hear the sidetone when transmitting CW.

There have been many many discussions about that pop in this forum going back years.
Here's a recent solution from VA7AT, documented by ND6T, looks promising:
https://groups.io/g/BITX20/message/43322

Jerry, KE7ER

On Tue, Mar 6, 2018 at 01:16 pm, F8BXI wrote:

Please, forgive me, I just forgot to open the audio potentiometer ;-) But There is a big pop sound in the speaker. Will see how to correct this.

Re: Raduino oscilators. 33mhz and 57mhz " . Documentation says one thing, but this is what I measured.

Michael Shreeve

Yes, 2000 is pretty much unbelievable. I'll try a couple of things,
1 measure with a scope looking at the flutter for more accuracy

2 try to check my counter using wwv ft Collins or wherever it comes from now in the same way,(possibly this should be the first step, I've put it off long enough)

3 after I've determined a semi warm measurement where its been running continuously (I can actually measure the temp with my little orange non contact for fun, and measure the supply and 5v's just in case) , I'll turn off ONLY the uBITX and measure it in the AM . Also, I'll put a little video on for those who might want to see how I'm doing these things.

Remembering that this is a Raduino that is working quite well. This is an exercise so that I'll be VERY familiar,  for my work with an Raduino that doesn't sound so good when used..

On Fri, Mar 9, 2018 at 9:28 AM, Michael Shreeve wrote:
Yes, I'll need to hook a scope to hear the 3 or 4 hz flutter when your spot on. Thanks Jerry. Hopefully doing more today, as its raining here finally.

On Thu, Mar 8, 2018 at 8:32 PM, Jerry Gaffke via Groups.Io wrote:
That's an excellent method to measure the frequency of the 25mhz oscillator.
If the receiver has sufficient low frequency audio response, you could monitor the speaker wires with a scope
and get sub hz accuracy when zero-beating.

I'll check my uBitx (tomorrow?), see how much warmup drift I can detect.
The 2.3khz drift (at 25mhz) you reported seems too large by a couple orders of magnitude.

Jerry

On Thu, Mar 8, 2018 at 07:55 pm, Michael Shreeve wrote:
I don't know if I responded to this. I thought I explained but then maybe not. What I have always done when there is no buffered output is 1 use a receiver and an "antenna" if you will, one that is near the raduino but not touching anything. 2 turn on a somewhat stable generator and, in my case right now, measure the generator frequency directly with a counter. I can hear that generator in the same receiver.. Zero beat the generator , which is being measured, with the 25 MHz signal emanating from the raduino. Turns out it did change as I indicated, merely from heating up. No direct coupling at all for this measurement. At least to the raduino. If I had a communications monitor I wouldn't need to measure the freq of the generator. Or some other stable generator source. Also, I need to try to determine just how accurate my counter is.

--
Michael Shreeve N6GRG

--
Michael Shreeve N6GRG

Re: Fw: uBitx delivery

Gary Shriver

Great question..  what TDA 2820s are they shipping in the current batch?

73 - Gary

From: BITX20@groups.io <BITX20@groups.io> On Behalf Of Noel f6bgc
Sent: Friday, March 9, 2018 8:53 AM
To: BITX20@groups.io
Subject: Re: [BITX20] Fw: uBitx delivery

Hi uBITX group,

who knows if March 9th delivery batch has good or tested  TDA 2822 ?

73 - noel f6bgc

2018-03-09 17:47 GMT+01:00 Nelson <ngtdlt@...>:

Hoowdy All,

I ordered my uBITX on January 11th, 2018 and was notified by PayPal that my order shipped today (March 9th, 2018).  I had it shipped by India Post so expect another month for it to arrive...

Nelson

On Thu, Mar 8, 2018 at 1:38 PM, John KG9DK <jab3739@...> wrote:

Nick,
I ordered mine on Jan. 8th,got a heads up from PayPal yesterday that it has been shipped.  Based on that I would say about 2 months from the day you order to ship date.

john kg9dk

--

I always thought the Universe was a wonderfully strange place until I studied Particle Physics - I now know the Universe is, in fact, profoundly odd in nature

Re: Raduino oscilators. 33mhz and 57mhz " . Documentation says one thing, but this is what I measured.

Michael Shreeve

Yes, I'll need to hook a scope to hear the 3 or 4 hz flutter when your spot on. Thanks Jerry. Hopefully doing more today, as its raining here finally.

On Thu, Mar 8, 2018 at 8:32 PM, Jerry Gaffke via Groups.Io wrote:
That's an excellent method to measure the frequency of the 25mhz oscillator.
If the receiver has sufficient low frequency audio response, you could monitor the speaker wires with a scope
and get sub hz accuracy when zero-beating.

I'll check my uBitx (tomorrow?), see how much warmup drift I can detect.
The 2.3khz drift (at 25mhz) you reported seems too large by a couple orders of magnitude.

Jerry

On Thu, Mar 8, 2018 at 07:55 pm, Michael Shreeve wrote:
I don't know if I responded to this. I thought I explained but then maybe not. What I have always done when there is no buffered output is 1 use a receiver and an "antenna" if you will, one that is near the raduino but not touching anything. 2 turn on a somewhat stable generator and, in my case right now, measure the generator frequency directly with a counter. I can hear that generator in the same receiver.. Zero beat the generator , which is being measured, with the 25 MHz signal emanating from the raduino. Turns out it did change as I indicated, merely from heating up. No direct coupling at all for this measurement. At least to the raduino. If I had a communications monitor I wouldn't need to measure the freq of the generator. Or some other stable generator source. Also, I need to try to determine just how accurate my counter is.

--
Michael Shreeve N6GRG

Re: Fw: uBitx delivery

Noel f6bgc

Hi uBITX group,

who knows if March 9th delivery batch has good or tested  TDA 2822 ?

73 - noel f6bgc

2018-03-09 17:47 GMT+01:00 Nelson :

Hoowdy All,

I ordered my uBITX on January 11th, 2018 and was notified by PayPal that my order shipped today (March 9th, 2018).  I had it shipped by India Post so expect another month for it to arrive...

Nelson

On Thu, Mar 8, 2018 at 1:38 PM, John KG9DK wrote:
Nick,
I ordered mine on Jan. 8th,got a heads up from PayPal yesterday that it has been shipped.  Based on that I would say about 2 months from the day you order to ship date.

john kg9dk

--
I always thought the Universe was a wonderfully strange place until I studied Particle Physics - I now know the Universe is, in fact, profoundly odd in nature

Re: Fw: uBitx delivery

Nelson

Hoowdy All,

I ordered my uBITX on January 11th, 2018 and was notified by PayPal that my order shipped today (March 9th, 2018).  I had it shipped by India Post so expect another month for it to arrive...

Nelson

On Thu, Mar 8, 2018 at 1:38 PM, John KG9DK wrote:
Nick,
I ordered mine on Jan. 8th,got a heads up from PayPal yesterday that it has been shipped.  Based on that I would say about 2 months from the day you order to ship date.

john kg9dk

--
I always thought the Universe was a wonderfully strange place until I studied Particle Physics - I now know the Universe is, in fact, profoundly odd in nature

Re: Shipping Update

Gary Shriver

Ordered on January 13th.  Received shipping notice via PayPal today.  Estimated delivery is Tuesday 3/13 via DHL.
WoooooHooooo!

On Mar 9, 2018, at 7:28 AM, Xcott Craver <xcottcraver@...> wrote:

I know people are tracking the shipping dates, so I offer this as a data point.   Hooray!

Thanks, Xcott K2CAJ

Re: uBITX Mic Wireup

Jerry Gaffke

On Fri, Mar 9, 2018 at 07:23 am, Tim Gorman wrote:
The mic is only actually connected when the PTT switch is pushed. ....   This is why I recommend using a communications mike instead of a standalone mic with a separate PTT switch.

Re: cheap logic analyzer, clear picture

Rod Davis

Hi  All,

Attached is a clear photo of PULSEVIEW looking at a UART serial link.

Rod KM6SN

Shipping notice today, ordered Jan 12

Xcott Craver

I know people are tracking the shipping dates, so I offer this as a data point.   Hooray!

Thanks, Xcott K2CAJ

Re: uBITX Mic Wireup

Tim Gorman

Shaun,

I am using an old CB microphone. Inside of it is a multi-pole switch.
Most communication mics have the same. I have wired mine so the
positive side of the mic goes through one switch pole to the microphone
connector. The mic is only actually connected when the PTT switch is
pushed. The negative side of the mic goes to the shield of the mic
cord. The PTT lead from the mic connecotor goes through another switch
pole and is connected to the shield via the switch when the PTT is
pushed.

This is why I recommend using a communications mike instead of a
standalone mic with a separate PTT switch. You can get old CB mics off
of ebay pretty cheap. You can probably find one for almost nothing at
garage sales this summer.

tim ab0wr

On Thu, 8 Mar 2018 21:54:42 -0600
"Shaun" <slong682000@...> wrote:

Does anybody have a diagram or description of the mic wire up for the
uBITX? I am looking for the mic itself, not the mic jack on the
transceiver. Most of the mic's I have dealt with have the MIC+ going
to one side of the electret and MIC- or ground routing through the
PTT switch when it is closed, completing the circuit. Looking at the
uBITX schematic and a mic wireup for an older version of BITX from
several years ago on the forum, what I think I am seeing is that the
sleeve is providing a constant ground to both the MIC- side of the
electret and one side of the PTT switch. The tip connects a constant
output to the other side of the PTT switch and the ring is providing
a constant output to the MIC+ side of the electret. It almost looks
like the electret is an "always on" state but the output is not
utilized until the separate PTT circuit is completed. Any help would
be appreciated.

Shaun
KEØNLN

Re: Dynamic mic on ubitx

Walter

On Wed, Mar 7, 2018 at 01:07 am, Walter wrote:
I solved my Dynamic mic problem by installing the 5 Band Mic Processor by UR8QW.  I mounted the potentiometers on the front panel so that I now have a mic processor with compression, mic level and output level.  Works beautifully with my dynamic mic.

My solution might cost a little more then many are willing to spend but it gives me the ability to fully adjust my mic and audio.

I am very pleased with my solution, so far.  I have just installed it so operation over a number of coming days will be revealing.

A couple of more mods ought to have my UBITX completed.

--
73, W9KJO
Walter
Update.  It appeared to put out about the rating of the ubitx.  But I have to talk very loud and it does not sound right.  When I get the new mic cord from China I will install the mic that came with the unit.  Since I cannot alter this mic as it does not belong to me.  I have given up on the dynamic mic idea.  LOL.

I am giving this update to keep folk from thinking this mod worked for dynamic mics.  It does not work well.

--
73, W9KJO
Walter

Re: uBITX Firmware CEC Version Added WSPR function, I am looking for a beta tester.

Philip

Hi Ian.

The frequency error is down to the way uBITX manager calculates the RF frequency. If I enter into the Band 2 box 14094850 Hz, then the audio comes out of my radio at 1.5 KHz, when it is tuned to 14.09560 MHz.
Now my WSPR is going all around the world.
I do find that I get a bit confused by all the calculations, when trying to work out all this stuff.
Anyway thanks for putting WSPR in to the uBITX, a great bonus.

Philip G7JUR

Re: cheap logic analyzer

Ian Lee

Rod

I happened to talk about that logic analyzer some time ago.
Of the cheap instruments I bought, the logic analyzer was my favorite instrument.
That is very simple, small and easy use.
I abandoned the big logic analyzer that I used.

However, it is only a logic analyzer. Only the logic analyzer was the most useful instrument among the cheapest instruments.
To connect Wsjt-X for Linux to Nano, I recommend keeping Reset Pin high.

Ian KD8CEC

2018-03-09 20:33 GMT+09:00 Rod Self :

In the previous email, I am not sure why the PULSEVIEW screen looks fuzzy- however, on the actual PC screen, it is quite sharp and clear,
and the pic I posted was sharp and clear.

Something got fuzzy in the posting process.

Rod KM6SN

--
Best 73
KD8CEC / Ph.D ian lee
kd8cec@...
www.hamskey.com (my blog)