Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
VFO Encoder Tuning Stops
Finally got the DDS VFO software sketch to work (changed sketch line LiquidCrystal_I2C to reflect LCD serial address 0x3F). VFO is now outputting a strong, clean 7 MHz sine to scope.
Problem: I now notice that the KY-040 encoder initially tunes up/down for a few changes and then locks up and fails to tune. The encoder tuning increment switch works OK. I have bypassed both encoder CLK & DT pins to ground with 0.1 uf monos. Re-powering unit or rebooting nano gives the same scenario. I changed out the KY-040...same result. Encoder contact bounce related??? I also notice the encoder tunes backwards...CW down and CCW up frequency. Anyone have any ideas? Don / N5DM |
On Thu, Jun 30, 2016 at 4:27 PM, donmay2@... [SoftwareControlledHamRadio] <SoftwareControlledHamRadio@...> wrote: ?
Swap the leads? 73 de Lee --
Lee Hiers, AA4GA Submit your QRP DXCC totals to !
|
On the inexpensive KY-040 encoder, the power and ground leads are clearly marked and the center lead is to the switch. The two remaining pins are the clock and data leads. Just reverse those.? BTW, I have an article titled?¡°Rotary
Encoders Revisited¡± in the April, 2016, issue of?QRP
Quarterly?that talks about rotary encoders. This article centers on a "variable speed increment". You know how the increment is changed on the Forty-9er by pushing on the encoder shaft and then rotating to the desired increment. This allows you to make large frequency changes more quickly. This article has the code that senses how fast you are turning the encoder shaft. If you are turning it quickly, the code changes the increment to 10K per detent. If you return to slowly turning it, it returns to your default increment (e.g., 100Hz). (You can set the "fast" increment value in the source code to whatever you want.) The advantage is that you don't have to mess around with pushes.selection when making large frequency jumps. 73, Jack, W8TEE From: "ktschwab@... [SoftwareControlledHamRadio]" To: SoftwareControlledHamRadio@... Sent: Thursday, August 11, 2016 10:17 AM Subject: [SoftwareControlledHamRadio] Re: VFO Encoder Tuning Stops
?
Hello Dave; In reading your post on reversing the leads of the encoder to reverse tuning; which leads would I reverse to accomplish this?seeing that there are 5 of them?? Thanks, Karl, KO8S
|
Karl Schwab
Thanks Jack!? Boy, this is a lot of "kool" stuff you are doing!? I sent a letter via email,?just now,?to ARRL,?praising your 49-er/VFO article and this forum!? Let's see if it makes the pages of QST! 73, de Karl, KO8S (I smoked my D882, I'm waiting for a batch now from China!) On Thursday, August 11, 2016 10:53 AM, "Jack Purdum jjpurdum@... [SoftwareControlledHamRadio]" wrote:
?
On the inexpensive KY-040 encoder, the power and ground leads are clearly marked and the center lead is to the switch. The two remaining pins are the clock and data leads. Just reverse those.? BTW, I have an article titled?¡°Rotary
Encoders Revisited¡± in the April, 2016, issue of?QRP
Quarterly?that talks about rotary encoders. This article centers on a "variable speed increment". You know how the increment is changed on the Forty-9er by pushing on the encoder shaft and then rotating to the desired increment. This allows you to make large frequency changes more quickly. This article has the code that senses how fast you are turning the encoder shaft. If you are turning it quickly, the code changes the increment to 10K per detent. If you return to slowly turning it, it returns to your default increment (e.g., 100Hz). (You can set the "fast" increment value in the source code to whatever you want.) The advantage is that you don't have to mess around with pushes.selection when making large frequency jumps. 73, Jack, W8TEE From: "ktschwab@... [SoftwareControlledHamRadio]" To: SoftwareControlledHamRadio@... Sent: Thursday, August 11, 2016 10:17 AM Subject: [SoftwareControlledHamRadio] Re: VFO Encoder Tuning Stops
?
Hello Dave; In reading your post on reversing the leads of the encoder to reverse tuning; which leads would I reverse to accomplish this?seeing that there are 5 of them?? Thanks, Karl, KO8S
|
Thanks for the email...it's sincerely appreciated. I should also thank a bunch of other readers, as the QST article won the Cover Plaque Award for the best article in that issue. It's a nice repro of the cover on a walnut back. (See pix.) I'm hopeful that they will take the (pending) Arduino Antenna Analyzer article, too. (Some pix already on the User Group site.)? 73, Jack, W8TEE From: "Karl Schwab ktschwab@... [SoftwareControlledHamRadio]" To: "SoftwareControlledHamRadio@..." Sent: Thursday, August 11, 2016 11:11 AM Subject: Re: [SoftwareControlledHamRadio] Re: VFO Encoder Tuning Stops
?
Thanks Jack!? Boy, this is a lot of "kool" stuff you are doing!? I sent a letter via email,?just now,?to ARRL,?praising your 49-er/VFO article and this forum!? Let's see if it makes the pages of QST! 73, de Karl, KO8S (I smoked my D882, I'm waiting for a batch now from China!) |
to navigate to use esc to dismiss