¿ªÔÆÌåÓý

Date

Re: CB to 10m Conversions

 

I agree,

archive.org has all the 73 magazines. if you really want to get down and dirty to collect alot of ham related magazines and such, check out this link:



after right clicking on each and every issue and downloading it, there are thousands of tech magazines and hobby magazines here for the taking , for FREE.

73
David
ac9xh

On Tuesday, February 27, 2024 at 04:26:04 PM EST, VE3MIC via groups.io <ve3mic@...> wrote:


I concur.. '73 magazine.? You can find just about all issues on archive.org

On Tuesday, February 27, 2024 at 04:22:57 p.m. EST, wishbone_aaa <dlmock999@...> wrote:


Don't have the info at hand.? 73 Magazine years ago had published a number of CB to 10 articles.? 73 is no longer published, but I do think the old issues can be found on line.


Re: Error in Sound Input #sBITX_v3

Paul
 

I don't think I have had the error since I upgraded the PI to an 8GB version and the OS to 64-bit, will need to test further because I think when I last had the error I was using it via VNC from the laptop. I used it for quite a while on Saturday on 40m and 20m without a problem using just the sbitx.
On reflection it could be a resource/process issue, the error is reporting that audio is not being processed fast enough and when I had the problem it always appeared to be when transmitting, hence my thoughts about rf feedback as a potential cause. I haven't spent any real time investigating as my focus has been on the SSB side of things
Regards
Paul G0KAO


On Tue, 27 Feb 2024 at 19:10, Evan Hand <elhandjr@...> wrote:
Gyula,

I am not the expert, but it looks to me like there is a performance issue.? The sbitx program seems to be cycling through the low to high CPU usage.? At the same time, JTDX uses a lot of CPU.? Does JTDX have the ability not to do a deep decode or some other process to limit processor needs?

73
Evan
AC9TU


Re: CB to 10m Conversions

 

I concur.. '73 magazine.? You can find just about all issues on archive.org

On Tuesday, February 27, 2024 at 04:22:57 p.m. EST, wishbone_aaa <dlmock999@...> wrote:


Don't have the info at hand.? 73 Magazine years ago had published a number of CB to 10 articles.? 73 is no longer published, but I do think the old issues can be found on line.


Re: CB to 10m Conversions

 

Don't have the info at hand.? 73 Magazine years ago had published a number of CB to 10 articles.? 73 is no longer published, but I do think the old issues can be found on line.


Re: Homebrew SBITX - first phone contact #homebrew #sBitx

 

¿ªÔÆÌåÓý

Hi Dean,
? Very very nice work! I have a Mikroe WM8732 board. The Mikroe schematic has the series R33 of 330 ohms and the coupling cap C23 as 1nF. ? But from the sbitx V2 schematics looks like sbitx does not use the WM8732¡¯s mic input but uses the RLINEIN pin as the mic input. The?WM8732¡¯s input and bias pins are not used.
Hope this helps.
Jerry KN6BJK

On Feb 26, 2024, at 8:47 PM, Dean Souleles <dsouleles@...> wrote:

Hi all....

Quick progress report. Happy to report my first phone contacts were made today. I only have a low pass filter for 40 m. so far so only one band.?

if you want to listen.

I built a mic today with one of the sensitive electret capsules that have been discussed in the other threads.? I put it in a 3D printed case using a micro switch for the PTT.? First contact reported distorted audio but then I realized I had the mic gain at 100... Back it off to 50 and then to 35 and started making contacts with good audio reports.

I still have a few kinks to work out. I'm not sure the codec board is functioning well. It seems to go into oscillation when using the built-in CW sender. And I get some crackling and noise in the side tone audio. I also still have an issue where the displayed frequency counter track with the tuned frequency.

Curious if anyone else is using the codec board from Mikroeelectronica?? I noticed that it has different values for the serious capacitor and termination resistors on the headphone audio-out channels then is used in the SBITX version.

Below is what the rig looks like as of today.

73,
Dean

<PXL_20240227_002544463.jpg>


Re: Error in Sound Input #sBITX_v3

 

Gyula,

I am not the expert, but it looks to me like there is a performance issue.? The sbitx program seems to be cycling through the low to high CPU usage.? At the same time, JTDX uses a lot of CPU.? Does JTDX have the ability not to do a deep decode or some other process to limit processor needs?

73
Evan
AC9TU


Re: Error in Sound Input #sBITX_v3

 

Evan,
I am attaching the pictures. I made a lot more, but since the external hdmi and sdi are in one picture, each picture is 2MB in size, so I converted some of them.

These were made under jtdx
--
Gyula HA3HZ


Re: Error in Sound Input #sBITX_v3

 

Gyula,

Can you post a screenshot of htop after 10 or so minutes of run time?? Also, can you confirm that one of the processors peaks out to 100%???

It seems to be a buffer underrun.? Not sure of the root cause.

Hopefully, others in the group can offer suggestions.

73
Evan
AC9TU


Re: sBitx Official Support on 64bit #poll-notice

 

¿ªÔÆÌåÓý

This is just an observation:? I got my sBIT second hand when another ham had to give up the hobby and sold off his equipment.? It's V2 hardware, but will be running V3 software on an 8 GB Pi 4.? I haven't had a chance to use it yet.? I'm not the person to attempt to develop software for current hardware.? I'm too old (80+) for that any more.? Call me an "appliance operator" if you like - I've done my share of kit building, scratch building, and elmering others.? My days go back to WWII surplus TVI generators, 1625 PA tubes and other things some of the younger folks haven't seen or heard of.? It's up to the younger ones to bring us "old fogies" up to date.

Gerry Sherman

Sent by the Windows 11 Thunderbird

On 2024-02-27 09:58, Evan Hand wrote:

Rafael brings up one point that I overlooked.? The sbitx is internet-connected and needs to be updated with security patches.? This may be the driver that forces a change to a newer OS.

There is a way for those who do not want to change, do not keep their radio connected to the internet, and can live with the security risks.? Add a test in the update and build scripts for the current OS to select the correct files to include in the update.? Keeping an image of each OS in the repository would also allow for conversion to the new OS.

We have seen this type of divergence in most open-source projects.? Groups of developers diverge on requirements and create spinoff (forked) variants.? This happens with most open-source projects that become popular; Linux (the basis for most of the Raspberry Pi OS) is a prime example.? Each distribution has its own support and development group.? There are many flavors on the Raspberry Pi download site.

There is also the example of the uBitx.? There are now multiple flavors of code that run on the Nano that HFSignals does not support.? KD8CEC with the Nextion display is probably the most notable example.? Any of the hardware vendors (HFSignals is by far the largest) provides an adaptation of the original code.? All come back to this group for support.

I believe that the "official" version will need to change.? With the change, the depreciation of any currently unsupported code should also be changed.? A review of the included software libraries and code modules must also be done.

So the next step I see is for potential code branches to be promoted to the code shipped with the sbitx and a group of insiders to be led by Ashhar Farhan to keep it up to date.

Just a suggestion.
73
Evan
AC9TU


Re: sbitx encoder contact bounce

Jack, W8TEE
 

Me too...

Jack, W8TEE

On Tuesday, February 27, 2024 at 12:24:53 PM EST, barry halterman <kthreebo@...> wrote:


I can understand enough to get into trouble.

Barry

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Tuesday, February 27, 2024 12:01 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

Thanks for the purchase! I hope it helped...

?

Jack, W8TEE

?

On Tuesday, February 27, 2024 at 11:50:28 AM EST, barry halterman <kthreebo@...> wrote:

?

?

Ha, ha. Jack, I HAVE the book you are referring ?to. ?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Tuesday, February 27, 2024 10:04 AM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I know a book on C that might be useful...Emoji

?

Jack, W8TEE

?

On Tuesday, February 27, 2024 at 09:43:41 AM EST, barry halterman <kthreebo@...> wrote:

?

?

Gentlemen, I will not argue the fact that software might be the proper method, IF you know the syntax of the language and have a good understanding of programming structure and can make it work. ?I for one, have neither and getting a LED to blink is a major task.

My hat is off to you folks who can program. Yes, I am envious.

73

Barry

K3BO

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 9:46 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

Farhan:

?

I agree. If the only tool you have is a hammer, every problem looks like a nail. If you can, it's always nice to add a new tool to the belt.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 09:03:05 PM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Barry,

They are simpler fix for you. But if we roll in this interesting change, then, all the hundreds of radios can have better debouncing without touching their soldering irons.

We are homebrewing in C as well, now.

?

On Tue, Feb 27, 2024, 3:04 AM barry halterman <kthreebo@...> wrote:

Two 0.1 uf capacitors on the encoder board are WAY much simpler!

Barry

?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 1:44 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I understand now.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 10:37:26 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Jack,

In the sbitx, the encoders fire interrupts and measure the time through millis(), it is a wrapper around utime()

- f

?

On Mon, Feb 26, 2024, 8:48 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:

My experience is that debouncing in software can vary from encoder to encoder. I would suggest creating symbolic constants for each encoder (e.g., tune, volume, etc). Usually, the delay is between 40 and 100 milliseconds:

?

#define TUNE_ENCODER_DELAY??????????? ???? 50??????? // debounce delay in ms

#define VOLUME_ENCODER_DELAY??????????? 40

?

and then look where to place them in the code. Many programmers use the standard delay() function call:

?

delay(TUNE_ENCODER_DELAY); ?????????? ????

?

However, the delay() function is a "blocking" function, which means that it turns off interrupts for the delay period. Given that debounce functions have relatively short delays, this probably isn't a problem in this code body. However, perhaps some functions [e.g., MyHairsOnFire()] shouldn't be blocked. In that case, I would suggest:

?

/

? Purpose: to cause a delay in program execution

?

? Parameter list:

? ? unsigned long millisWait ? ?// the number of millseconds to wait

?

? Return value:

? ? void

/

void MyDelay(unsigned long millisWait)

{

? unsigned long now = millis();

?

? while (millis() - now < millisWait)

? ? ; ?????????????????????????????????// Twiddle thumbs until delay ends...

}

?

The millis() standard Arduino function is non-blocking, otherwise it acts the same as delay(). I try to use the style shown above. I use a starting capital letter for the function name and Polish notation because most standard and function library names in the Arduino IDE start with a lowercase letter. That way, I know in advance whether I wrote the code or it comes from a library I didn't write.?

?

Also, the details about the function always falls in the function header between the "/" and the "/" followed immediately by the function signature (e.g., void MyDelay(unsigned long millisWait) and a newline character). By rigidly following the function format, I wrote a program that looked for the "/" lead-in and then used the __FILE__ and __DATE__ standard macros to create a user document that detailed all of the function calls we wrote for the project. When I had my own software company, I gently convinced all of my programmers to follow this format. Anyone who used a different format had to buy beer and pizza for the programmers the following Friday. I don't remember anyone buying lunch more than once, which kept the project documentation for the code up-to-date.

?

Sorry for the long answer, but conventions can make projects with multiple coders easier to use.

?

Jack, W8TEE

?

?

On Monday, February 26, 2024 at 07:23:58 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

The debouncing of the encoders is done in software, not hardware. This is the first time I have heard of a bounce problem anyway.? Take a look at the encoder code you could tweak it to increase the debounce time.

?

On Mon, Feb 26, 2024, 6:14 AM barry halterman <kthreebo@...> wrote:

Hi, I put the capacitors on the underside of the encoder board. Each capacitor (.1uf) goes from? the phase A and B pin, to the encoder housing grounding trace.

Plenty of room to incorporate these.

Barry

?

Sent from for Windows

?

From: Scotty R
Sent: Sunday, February 25, 2024 6:45 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I am interested to know where you placed the capacitors. Can you show a drawing perhaps?

?

Scotty

?

On Sun, Feb 25, 2024, 3:18 PM barry halterman <kthreebo@...> wrote:

lately I have noticed some contact bouncing with the main encoder when tuning my sbitx. My display frequency would bounce back and forth. I noticed, on the schematic, that there are no capacitors to clean up the noise from the rotary encoder. I installed two .1uf caps on the encoder board and that took care of my issue. Have not noticed any problems with the multi function encoder though.
73
Barry?

?


--
Jack, W8TEE


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE


Re: Error in Sound Input #sBITX_v3

 

Evan,
i did several tests today but i can't determine the cause. I tried removing the grounding, the error message still appears. It comes later when using wsjt-x. With jtdx, twice as many stations are visible during decoding and the message appears after 40-50 minutes. When it appears and I click OK, the message appears again when switching from reception to transmission or from transmission to reception. The message appears, but there is no change in the sound. In the case of jtdx, when loading and decoding the program, the cpu usage reaches 250% (the percentages of the 4 core threads are added). With wsjtx you don't get such a high cpu %.
By definition, it decodes far fewer stations.
I don't see a solution for the time being.
--
Gyula HA3HZ


Re: A solution to the noisy hot 5V buck regulator

 

¿ªÔÆÌåÓý

The two black leads from the DROK are common, so you can either use one lead or tie them? together. You are correct with the pin orientation. Pin 1 is next to the large capacitor.

(I tied my two together just because. Otherwise, plug and play.)

GL

Barry

?

Sent from for Windows

?

From: Brian - N9NAZ
Sent: Tuesday, February 27, 2024 12:26 PM
To: [email protected]
Subject: Re: [BITX20] A solution to the noisy hot 5V buck regulator

?

Hi ya'll,

First let me thank those who noted the RF noise spikes that I too was getting on all bands and ordered the DROK 12v to 5 v buck converter from Amazon to hopefully correct it.

Just my 2cents to help in figuring out on how to wire it up after reading this message string from everyone.

Researching on how to install to replace the existing one as shown below by Evan's picture - AC9TU - and reading the post from?Joel - N6ALT - who has already done it;? it actually looks simple as the pin descriptions are printed on the bottom of the little regulator circuit board for ref.

Using the image below for reference, there is a 4 pin header socket that the original board is plugged into, and using the PIN #'s from the V3? Schematic? for J1 - From left to right they are...

pin 4 =>? V out

pin 3 => Ground

pin 2 => V in

pin 1 => NC - No Connection

?

As I haven't received the regulator yet, not certain if the ground leads from the in & the out are common & tied together, but i suspect that they are as the picture from Joel - N6ALT - doesn't show that the output side ground is hooked up.

Comments and additional details are welcome as we all can benefit from them.? I have already benefited from this group over the years working with my uBitx v6 with everyone's point of view and knowledge.

Brian - N9NAZ

On 2/25/2024 8:21 PM, Evan Hand wrote:

Dave,

Here is a picture of the regulator mounted to the board, circled in blue, and R203 and R204 are circled in red.



J1 is on the first page of the schematic.? There is not a U number for the device.? Joel may be able to identify the proper pins for the DROK converter.

I currently have issues with my back and can not get to my V3 in the basement for pictures with the regulator removed.

The best way to measure the power supplied to the V3 is to measure the voltage and current.? There are power meters available online if you want to purchase one.? I have this one I used for another project:


73
Evan
AC9TU

?


Re: A solution to the noisy hot 5V buck regulator

 

¿ªÔÆÌåÓý

Hi ya'll,

First let me thank those who noted the RF noise spikes that I too was getting on all bands and ordered the DROK 12v to 5 v buck converter from Amazon to hopefully correct it.

Just my 2cents to help in figuring out on how to wire it up after reading this message string from everyone.

Researching on how to install to replace the existing one as shown below by Evan's picture - AC9TU - and reading the post from?Joel - N6ALT - who has already done it;? it actually looks simple as the pin descriptions are printed on the bottom of the little regulator circuit board for ref.

Using the image below for reference, there is a 4 pin header socket that the original board is plugged into, and using the PIN #'s from the V3? Schematic? for J1 - From left to right they are...

pin 4 =>? V out

pin 3 => Ground

pin 2 => V in

pin 1 => NC - No Connection


As I haven't received the regulator yet, not certain if the ground leads from the in & the out are common & tied together, but i suspect that they are as the picture from Joel - N6ALT - doesn't show that the output side ground is hooked up.

Comments and additional details are welcome as we all can benefit from them.? I have already benefited from this group over the years working with my uBitx v6 with everyone's point of view and knowledge.

Brian - N9NAZ

On 2/25/2024 8:21 PM, Evan Hand wrote:

Dave,

Here is a picture of the regulator mounted to the board, circled in blue, and R203 and R204 are circled in red.



J1 is on the first page of the schematic.? There is not a U number for the device.? Joel may be able to identify the proper pins for the DROK converter.

I currently have issues with my back and can not get to my V3 in the basement for pictures with the regulator removed.

The best way to measure the power supplied to the V3 is to measure the voltage and current.? There are power meters available online if you want to purchase one.? I have this one I used for another project:


73
Evan
AC9TU


Re: sbitx encoder contact bounce

 

¿ªÔÆÌåÓý

I can understand enough to get into trouble.

Barry

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Tuesday, February 27, 2024 12:01 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

Thanks for the purchase! I hope it helped...

?

Jack, W8TEE

?

On Tuesday, February 27, 2024 at 11:50:28 AM EST, barry halterman <kthreebo@...> wrote:

?

?

Ha, ha. Jack, I HAVE the book you are referring ?to. ?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Tuesday, February 27, 2024 10:04 AM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I know a book on C that might be useful...Emoji

?

Jack, W8TEE

?

On Tuesday, February 27, 2024 at 09:43:41 AM EST, barry halterman <kthreebo@...> wrote:

?

?

Gentlemen, I will not argue the fact that software might be the proper method, IF you know the syntax of the language and have a good understanding of programming structure and can make it work. ?I for one, have neither and getting a LED to blink is a major task.

My hat is off to you folks who can program. Yes, I am envious.

73

Barry

K3BO

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 9:46 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

Farhan:

?

I agree. If the only tool you have is a hammer, every problem looks like a nail. If you can, it's always nice to add a new tool to the belt.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 09:03:05 PM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Barry,

They are simpler fix for you. But if we roll in this interesting change, then, all the hundreds of radios can have better debouncing without touching their soldering irons.

We are homebrewing in C as well, now.

?

On Tue, Feb 27, 2024, 3:04 AM barry halterman <kthreebo@...> wrote:

Two 0.1 uf capacitors on the encoder board are WAY much simpler!

Barry

?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 1:44 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I understand now.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 10:37:26 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Jack,

In the sbitx, the encoders fire interrupts and measure the time through millis(), it is a wrapper around utime()

- f

?

On Mon, Feb 26, 2024, 8:48 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:

My experience is that debouncing in software can vary from encoder to encoder. I would suggest creating symbolic constants for each encoder (e.g., tune, volume, etc). Usually, the delay is between 40 and 100 milliseconds:

?

#define TUNE_ENCODER_DELAY??????????? ???? 50??????? // debounce delay in ms

#define VOLUME_ENCODER_DELAY??????????? 40

?

and then look where to place them in the code. Many programmers use the standard delay() function call:

?

delay(TUNE_ENCODER_DELAY); ?????????? ????

?

However, the delay() function is a "blocking" function, which means that it turns off interrupts for the delay period. Given that debounce functions have relatively short delays, this probably isn't a problem in this code body. However, perhaps some functions [e.g., MyHairsOnFire()] shouldn't be blocked. In that case, I would suggest:

?

/

? Purpose: to cause a delay in program execution

?

? Parameter list:

? ? unsigned long millisWait ? ?// the number of millseconds to wait

?

? Return value:

? ? void

/

void MyDelay(unsigned long millisWait)

{

? unsigned long now = millis();

?

? while (millis() - now < millisWait)

? ? ; ?????????????????????????????????// Twiddle thumbs until delay ends...

}

?

The millis() standard Arduino function is non-blocking, otherwise it acts the same as delay(). I try to use the style shown above. I use a starting capital letter for the function name and Polish notation because most standard and function library names in the Arduino IDE start with a lowercase letter. That way, I know in advance whether I wrote the code or it comes from a library I didn't write.?

?

Also, the details about the function always falls in the function header between the "/" and the "/" followed immediately by the function signature (e.g., void MyDelay(unsigned long millisWait) and a newline character). By rigidly following the function format, I wrote a program that looked for the "/" lead-in and then used the __FILE__ and __DATE__ standard macros to create a user document that detailed all of the function calls we wrote for the project. When I had my own software company, I gently convinced all of my programmers to follow this format. Anyone who used a different format had to buy beer and pizza for the programmers the following Friday. I don't remember anyone buying lunch more than once, which kept the project documentation for the code up-to-date.

?

Sorry for the long answer, but conventions can make projects with multiple coders easier to use.

?

Jack, W8TEE

?

?

On Monday, February 26, 2024 at 07:23:58 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

The debouncing of the encoders is done in software, not hardware. This is the first time I have heard of a bounce problem anyway.? Take a look at the encoder code you could tweak it to increase the debounce time.

?

On Mon, Feb 26, 2024, 6:14 AM barry halterman <kthreebo@...> wrote:

Hi, I put the capacitors on the underside of the encoder board. Each capacitor (.1uf) goes from? the phase A and B pin, to the encoder housing grounding trace.

Plenty of room to incorporate these.

Barry

?

Sent from for Windows

?

From: Scotty R
Sent: Sunday, February 25, 2024 6:45 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I am interested to know where you placed the capacitors. Can you show a drawing perhaps?

?

Scotty

?

On Sun, Feb 25, 2024, 3:18 PM barry halterman <kthreebo@...> wrote:

lately I have noticed some contact bouncing with the main encoder when tuning my sbitx. My display frequency would bounce back and forth. I noticed, on the schematic, that there are no capacitors to clean up the noise from the rotary encoder. I installed two .1uf caps on the encoder board and that took care of my issue. Have not noticed any problems with the multi function encoder though.
73
Barry?

?


--
Jack, W8TEE


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE

?


Re: sbitx encoder contact bounce

Jack, W8TEE
 

Thanks for the purchase! I hope it helped...

Jack, W8TEE

On Tuesday, February 27, 2024 at 11:50:28 AM EST, barry halterman <kthreebo@...> wrote:


Ha, ha. Jack, I HAVE the book you are referring ?to. ?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Tuesday, February 27, 2024 10:04 AM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I know a book on C that might be useful...Emoji

?

Jack, W8TEE

?

On Tuesday, February 27, 2024 at 09:43:41 AM EST, barry halterman <kthreebo@...> wrote:

?

?

Gentlemen, I will not argue the fact that software might be the proper method, IF you know the syntax of the language and have a good understanding of programming structure and can make it work. ?I for one, have neither and getting a LED to blink is a major task.

My hat is off to you folks who can program. Yes, I am envious.

73

Barry

K3BO

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 9:46 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

Farhan:

?

I agree. If the only tool you have is a hammer, every problem looks like a nail. If you can, it's always nice to add a new tool to the belt.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 09:03:05 PM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Barry,

They are simpler fix for you. But if we roll in this interesting change, then, all the hundreds of radios can have better debouncing without touching their soldering irons.

We are homebrewing in C as well, now.

?

On Tue, Feb 27, 2024, 3:04 AM barry halterman <kthreebo@...> wrote:

Two 0.1 uf capacitors on the encoder board are WAY much simpler!

Barry

?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 1:44 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I understand now.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 10:37:26 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Jack,

In the sbitx, the encoders fire interrupts and measure the time through millis(), it is a wrapper around utime()

- f

?

On Mon, Feb 26, 2024, 8:48 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:

My experience is that debouncing in software can vary from encoder to encoder. I would suggest creating symbolic constants for each encoder (e.g., tune, volume, etc). Usually, the delay is between 40 and 100 milliseconds:

?

#define TUNE_ENCODER_DELAY??????????? ???? 50??????? // debounce delay in ms

#define VOLUME_ENCODER_DELAY??????????? 40

?

and then look where to place them in the code. Many programmers use the standard delay() function call:

?

delay(TUNE_ENCODER_DELAY); ?????????? ????

?

However, the delay() function is a "blocking" function, which means that it turns off interrupts for the delay period. Given that debounce functions have relatively short delays, this probably isn't a problem in this code body. However, perhaps some functions [e.g., MyHairsOnFire()] shouldn't be blocked. In that case, I would suggest:

?

/

? Purpose: to cause a delay in program execution

?

? Parameter list:

? ? unsigned long millisWait ? ?// the number of millseconds to wait

?

? Return value:

? ? void

/

void MyDelay(unsigned long millisWait)

{

? unsigned long now = millis();

?

? while (millis() - now < millisWait)

? ? ; ?????????????????????????????????// Twiddle thumbs until delay ends...

}

?

The millis() standard Arduino function is non-blocking, otherwise it acts the same as delay(). I try to use the style shown above. I use a starting capital letter for the function name and Polish notation because most standard and function library names in the Arduino IDE start with a lowercase letter. That way, I know in advance whether I wrote the code or it comes from a library I didn't write.?

?

Also, the details about the function always falls in the function header between the "/" and the "/" followed immediately by the function signature (e.g., void MyDelay(unsigned long millisWait) and a newline character). By rigidly following the function format, I wrote a program that looked for the "/" lead-in and then used the __FILE__ and __DATE__ standard macros to create a user document that detailed all of the function calls we wrote for the project. When I had my own software company, I gently convinced all of my programmers to follow this format. Anyone who used a different format had to buy beer and pizza for the programmers the following Friday. I don't remember anyone buying lunch more than once, which kept the project documentation for the code up-to-date.

?

Sorry for the long answer, but conventions can make projects with multiple coders easier to use.

?

Jack, W8TEE

?

?

On Monday, February 26, 2024 at 07:23:58 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

The debouncing of the encoders is done in software, not hardware. This is the first time I have heard of a bounce problem anyway.? Take a look at the encoder code you could tweak it to increase the debounce time.

?

On Mon, Feb 26, 2024, 6:14 AM barry halterman <kthreebo@...> wrote:

Hi, I put the capacitors on the underside of the encoder board. Each capacitor (.1uf) goes from? the phase A and B pin, to the encoder housing grounding trace.

Plenty of room to incorporate these.

Barry

?

Sent from for Windows

?

From: Scotty R
Sent: Sunday, February 25, 2024 6:45 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I am interested to know where you placed the capacitors. Can you show a drawing perhaps?

?

Scotty

?

On Sun, Feb 25, 2024, 3:18 PM barry halterman <kthreebo@...> wrote:

lately I have noticed some contact bouncing with the main encoder when tuning my sbitx. My display frequency would bounce back and forth. I noticed, on the schematic, that there are no capacitors to clean up the noise from the rotary encoder. I installed two .1uf caps on the encoder board and that took care of my issue. Have not noticed any problems with the multi function encoder though.
73
Barry?

?


--
Jack, W8TEE


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE


Re: sbitx encoder contact bounce

 

¿ªÔÆÌåÓý

Ha, ha. Jack, I HAVE the book you are referring ?to. ?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Tuesday, February 27, 2024 10:04 AM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I know a book on C that might be useful...Emoji

?

Jack, W8TEE

?

On Tuesday, February 27, 2024 at 09:43:41 AM EST, barry halterman <kthreebo@...> wrote:

?

?

Gentlemen, I will not argue the fact that software might be the proper method, IF you know the syntax of the language and have a good understanding of programming structure and can make it work. ?I for one, have neither and getting a LED to blink is a major task.

My hat is off to you folks who can program. Yes, I am envious.

73

Barry

K3BO

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 9:46 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

Farhan:

?

I agree. If the only tool you have is a hammer, every problem looks like a nail. If you can, it's always nice to add a new tool to the belt.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 09:03:05 PM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Barry,

They are simpler fix for you. But if we roll in this interesting change, then, all the hundreds of radios can have better debouncing without touching their soldering irons.

We are homebrewing in C as well, now.

?

On Tue, Feb 27, 2024, 3:04 AM barry halterman <kthreebo@...> wrote:

Two 0.1 uf capacitors on the encoder board are WAY much simpler!

Barry

?

?

Sent from for Windows

?

From: Jack, W8TEE via groups.io
Sent: Monday, February 26, 2024 1:44 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I understand now.

?

Jack, W8TEE

?

On Monday, February 26, 2024 at 10:37:26 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

Jack,

In the sbitx, the encoders fire interrupts and measure the time through millis(), it is a wrapper around utime()

- f

?

On Mon, Feb 26, 2024, 8:48 PM Jack, W8TEE via <jjpurdum=[email protected]> wrote:

My experience is that debouncing in software can vary from encoder to encoder. I would suggest creating symbolic constants for each encoder (e.g., tune, volume, etc). Usually, the delay is between 40 and 100 milliseconds:

?

#define TUNE_ENCODER_DELAY??????????? ???? 50??????? // debounce delay in ms

#define VOLUME_ENCODER_DELAY??????????? 40

?

and then look where to place them in the code. Many programmers use the standard delay() function call:

?

delay(TUNE_ENCODER_DELAY); ?????????? ????

?

However, the delay() function is a "blocking" function, which means that it turns off interrupts for the delay period. Given that debounce functions have relatively short delays, this probably isn't a problem in this code body. However, perhaps some functions [e.g., MyHairsOnFire()] shouldn't be blocked. In that case, I would suggest:

?

/

? Purpose: to cause a delay in program execution

?

? Parameter list:

? ? unsigned long millisWait ? ?// the number of millseconds to wait

?

? Return value:

? ? void

/

void MyDelay(unsigned long millisWait)

{

? unsigned long now = millis();

?

? while (millis() - now < millisWait)

? ? ; ?????????????????????????????????// Twiddle thumbs until delay ends...

}

?

The millis() standard Arduino function is non-blocking, otherwise it acts the same as delay(). I try to use the style shown above. I use a starting capital letter for the function name and Polish notation because most standard and function library names in the Arduino IDE start with a lowercase letter. That way, I know in advance whether I wrote the code or it comes from a library I didn't write.?

?

Also, the details about the function always falls in the function header between the "/" and the "/" followed immediately by the function signature (e.g., void MyDelay(unsigned long millisWait) and a newline character). By rigidly following the function format, I wrote a program that looked for the "/" lead-in and then used the __FILE__ and __DATE__ standard macros to create a user document that detailed all of the function calls we wrote for the project. When I had my own software company, I gently convinced all of my programmers to follow this format. Anyone who used a different format had to buy beer and pizza for the programmers the following Friday. I don't remember anyone buying lunch more than once, which kept the project documentation for the code up-to-date.

?

Sorry for the long answer, but conventions can make projects with multiple coders easier to use.

?

Jack, W8TEE

?

?

On Monday, February 26, 2024 at 07:23:58 AM EST, Ashhar Farhan <farhanbox@...> wrote:

?

?

The debouncing of the encoders is done in software, not hardware. This is the first time I have heard of a bounce problem anyway.? Take a look at the encoder code you could tweak it to increase the debounce time.

?

On Mon, Feb 26, 2024, 6:14 AM barry halterman <kthreebo@...> wrote:

Hi, I put the capacitors on the underside of the encoder board. Each capacitor (.1uf) goes from? the phase A and B pin, to the encoder housing grounding trace.

Plenty of room to incorporate these.

Barry

?

Sent from for Windows

?

From: Scotty R
Sent: Sunday, February 25, 2024 6:45 PM
To: [email protected]
Subject: Re: [BITX20] sbitx encoder contact bounce

?

I am interested to know where you placed the capacitors. Can you show a drawing perhaps?

?

Scotty

?

On Sun, Feb 25, 2024, 3:18 PM barry halterman <kthreebo@...> wrote:

lately I have noticed some contact bouncing with the main encoder when tuning my sbitx. My display frequency would bounce back and forth. I noticed, on the schematic, that there are no capacitors to clean up the noise from the rotary encoder. I installed two .1uf caps on the encoder board and that took care of my issue. Have not noticed any problems with the multi function encoder though.
73
Barry?

?


--
Jack, W8TEE


--
Jack, W8TEE

?


--
Jack, W8TEE

?


--
Jack, W8TEE

?


Re: CB to 10m Conversions

 

CB to 10M conversion has always interested me.? Sort of an inexpensive aspect of amateur radio combined with repurposing. Is there a site where this information is shared or a group.? I would appreciate any information.
Thanks !
Jim WB4ILP?


Re: sBitx Official Support on 64bit #poll-notice

 

Rafael brings up one point that I overlooked.? The sbitx is internet-connected and needs to be updated with security patches.? This may be the driver that forces a change to a newer OS.

There is a way for those who do not want to change, do not keep their radio connected to the internet, and can live with the security risks.? Add a test in the update and build scripts for the current OS to select the correct files to include in the update.? Keeping an image of each OS in the repository would also allow for conversion to the new OS.

We have seen this type of divergence in most open-source projects.? Groups of developers diverge on requirements and create spinoff (forked) variants.? This happens with most open-source projects that become popular; Linux (the basis for most of the Raspberry Pi OS) is a prime example.? Each distribution has its own support and development group.? There are many flavors on the Raspberry Pi download site.

There is also the example of the uBitx.? There are now multiple flavors of code that run on the Nano that HFSignals does not support.? KD8CEC with the Nextion display is probably the most notable example.? Any of the hardware vendors (HFSignals is by far the largest) provides an adaptation of the original code.? All come back to this group for support.

I believe that the "official" version will need to change.? With the change, the depreciation of any currently unsupported code should also be changed.? A review of the included software libraries and code modules must also be done.

So the next step I see is for potential code branches to be promoted to the code shipped with the sbitx and a group of insiders to be led by Ashhar Farhan to keep it up to date.

Just a suggestion.
73
Evan
AC9TU


Re: sBitx Official Support on 64bit #poll-notice

 

On Tue, Feb 27, 2024 at 08:57 AM, Ashhar Farhan wrote:
We already have nearly a thousand sbitx with 32 bit software in the field.?
Is there a way to keep them updated with the same script?
I think it would be best to create a new repo on GitHub with the 64bit file structure like you have now on your main repo. You could offer a link to download the img file and install it on a flash drive (customer provided) using Balena Etcher, then create a script to run SD Card Copier and copy the new image to the internal SD card. it is possible to do an upgrade from 32Bit to 64Bit with a method similar to this.


-JJ


?


Re: sBitx Official Support on 64bit #poll-notice

 

Just pointing out here, that fftw (at very least) in 64-bit definitely has advantages and run faster. There is lots of advantages of running in 64 bits, including SIMD intructions only available in 64 bit mode. There are no storage I/O during the DSP processing, so the MicroSD has no influence in performace for DSP / SDR.

- Rafael

On 2/27/24 12:03, Bruce W4BRU wrote:
I don't see the advantage to 64-bit in that application, eg, SDR processing. We tend to be limited by the MicroSD "harddrive" anyway.