¿ªÔÆÌåÓý

Encoder problem


 

My encoder won¡¯t change frequency except by 50hz. Pressing the encoder cycles from 40m on the bottom line to adding ¡°band select?¡± on the top and then ¡°press to confirm¡± and then back to the first screen. Rotating the encoder doesn¡¯t cause any changes. I have added denouncing resistors and caps with no improvement. Is there a way to test the encoder or should I simply replace it? ?Any ideas welcome.?
73


Jack Purdum
 

If you're comfortable with coding for the Nano, look in the examples for the encoder library, pick one, compile/upload it to the Nano and see if it works. You may have to reassign the pin numbers from the example. As I recall, Farhan uses A0 and A1 for the clock and data and A2 for the switch. Those would likely have to be changed in the examples.

Jack, W8TEE

On Thursday, June 21, 2018, 2:10:59 PM EDT, n7nsd@... <n7nsd@...> wrote:


My encoder won¡¯t change frequency except by 50hz. Pressing the encoder cycles from 40m on the bottom line to adding ¡°band select?¡± on the top and then ¡°press to confirm¡± and then back to the first screen. Rotating the encoder doesn¡¯t cause any changes. I have added denouncing resistors and caps with no improvement. Is there a way to test the encoder or should I simply replace it? ?Any ideas welcome.?
73


 

¿ªÔÆÌåÓý

TO clarify, it changes only by 50 Hz, or in 50 Hz steps only?
Rotating without pushing the button changes nothing?
Is this a first time build issue, or it was working and failed issue?


On 6/21/2018 2:10 PM, n7nsd@... wrote:

My encoder won¡¯t change frequency except by 50hz. Pressing the encoder cycles from 40m on the bottom line to adding ¡°band select?¡± on the top and then ¡°press to confirm¡± and then back to the first screen. Rotating the encoder doesn¡¯t cause any changes. I have added denouncing resistors and caps with no improvement. Is there a way to test the encoder or should I simply replace it? ?Any ideas welcome.?
73



 

It only varies 50hz. It has never worked. It was suggested that I install the denouncing components to solve the problem. I have done so but no change.?


 

And yes, rotating only causes the display to flicker the last two freq digit from zero to fifty. After pressing the encoder and getting the change band option, turning causes no change. Same with the next press and then back to 40m where it won¡¯t change freq.?


 

I had this problem when trying different software versions.?

I had success by uploading it again to the Arduino.?


Mike aka KC2WVB
 

I had the identical symptoms with my BitX after it was assembled. It was the encoder that was the issue. They are fragile so I ordered 5 and was very careful when I made the switch. It came to life immediately once the new one was installed.

I did not bother to read the other comments but I tested my original encoder with a DMM and set the meter on continuity test with one lead off the encoder going to ground which I think is the yellow wire and the other off, one at a time, the brown then black wire locations on the encoder. As you rotate the knob you should see: short, open, short, open..... On mine one pin out to ground worked as I indicated but the other was constant short.

Here is the replacement part that worked very well for me.


?
Order Details
?
Your salesorder number is 54975240.
?
DetailsAvailable QuantityBackorder QuantityUnit
Price
Extended
Price
?
?

PEC11R-4020F-S0012-ND
ENCODER ROTARY
?
Available
Quantity
Backorder
Quantity
Unit
Price
Extended
Price
?
13301.68000(USD) 8.

On Thu, Jun 21, 2018, 4:32 PM <n7nsd@...> wrote:
And yes, rotating only causes the display to flicker the last two freq digit from zero to fifty. After pressing the encoder and getting the change band option, turning causes no change. Same with the next press and then back to 40m where it won¡¯t change freq.?


Mike aka KC2WVB
 

I see I did not indicate where my encoder came from. It was Digi Key. So once again.

?
Order Details
?
Your salesorder number is 54975240.
?
DetailsAvailable QuantityBackorder QuantityUnit
Price
Extended
Price
?
?

PEC11R-4020F-S0012-ND
ENCODER ROTARY
?
Available
Quantity
Backorder
Quantity
Unit
Price
Extended
Price
?
13301.68000(USD) 8.

On Thu, Jun 21, 2018, 5:29 PM R. Michael Boyer <rb5363@...> wrote:
I had the identical symptoms with my BitX after it was assembled. It was the encoder that was the issue. They are fragile so I ordered 5 and was very careful when I made the switch. It came to life immediately once the new one was installed.

I did not bother to read the other comments but I tested my original encoder with a DMM and set the meter on continuity test with one lead off the encoder going to ground which I think is the yellow wire and the other off, one at a time, the brown then black wire locations on the encoder. As you rotate the knob you should see: short, open, short, open..... On mine one pin out to ground worked as I indicated but the other was constant short.

Here is the replacement part that worked very well for me.


?
Order Details
?
Your salesorder number is 54975240.
?
DetailsAvailable QuantityBackorder QuantityUnit
Price
Extended
Price
?
?

PEC11R-4020F-S0012-ND
ENCODER ROTARY
?
Available
Quantity
Backorder
Quantity
Unit
Price
Extended
Price
?
13301.68000(USD) 8.

On Thu, Jun 21, 2018, 4:32 PM <n7nsd@...> wrote:
And yes, rotating only causes the display to flicker the last two freq digit from zero to fifty. After pressing the encoder and getting the change band option, turning causes no change. Same with the next press and then back to 40m where it won¡¯t change freq.?


 

I've used these encoders for other things and yes they are fragile.

I got so annoyed with the one on the Raduino I pulled and ancient mechanical
mouse?out of junk, the kind with a DB9 serial connection and a rolling ball in
the bottom.? Pulled out the slotted wheel and the emitter/detector pair and
using the remains of a old Clarostat pot for the shaft and the bearing made
an optical encoder.? Its much more rugged, works well, and has better feel,
smoother.

Allison


 

¿ªÔÆÌåÓý

So there are several possibilities. I had the same problem initially, when I realized that I didn't wire it correctly. I fixed the wiring and it worked. It could be a bad encoder, incorrect wiring or a bad Raduino, or corrupted software. If you have a two channel scope you can look at the two outputs signals, they should create 2 pulse trains shifted be 90 degrees when you turn the knob. The phase shift reverses when you change direction. Most likely if both have pulses they are phased correctly, but if one or both don't, it wont work. If you see the pulses, it is not the encoder.

Howard

On 6/21/2018 4:32 PM, n7nsd@... wrote:

And yes, rotating only causes the display to flicker the last two freq digit from zero to fifty. After pressing the encoder and getting the change band option, turning causes no change. Same with the next press and then back to 40m where it won¡¯t change freq.?



Dennis Yancey
 

I had the same issue. It turned out to be the nano was not reading the encoder when running ubit files, either factory or the CEC software. It would allow menu selection but not frequency change. The same was true on 3 Nanos.. but they all came from the same place. I replaced the nano with a new one from another source and the problem cleared right up.?

Also, look for John, VK2ETA, or Jim Sheldon. They are both doing some neat stuff regarding a Raduino diagnostic tools.


 

It is possible to build a simple test jig for evaluating mechanical switch type rotary encoders.
Use 1K resistors in series with LEDs to show contact closure for phase A, phase-B, and
for the push-switch.? By turning the shaft very slowly you can see the phase change and
by pushing the push-switch you can see its contact closure.? This might be worthwhile
if you suspect problems with an encoder or if you are building kits and will be providing
rotary encoders in the parts bag.?

Arv
_._
?


On Thu, Jun 21, 2018 at 8:00 PM Howard Fidel <sonic1@...> wrote:
So there are several possibilities. I had the same problem initially, when I realized that I didn't wire it correctly. I fixed the wiring and it worked. It could be a bad encoder, incorrect wiring or a bad Raduino, or corrupted software. If you have a two channel scope you can look at the two outputs signals, they should create 2 pulse trains shifted be 90 degrees when you turn the knob. The phase shift reverses when you change direction. Most likely if both have pulses they are phased correctly, but if one or both don't, it wont work. If you see the pulses, it is not the encoder.

Howard

On 6/21/2018 4:32 PM, n7nsd@... wrote:
And yes, rotating only causes the display to flicker the last two freq digit from zero to fifty. After pressing the encoder and getting the change band option, turning causes no change. Same with the next press and then back to 40m where it won¡¯t change freq.?



 

We buy bourns from mouser. If there are better ones, or a more robust model, let us know.
Bad quality encoders were the main reason for my original hack of using a pot for tuning. The software was so buggy that I would have killed the developer had I not had a bout of unusual mercy upon the kids.?
- f
- f


On Fri, 22 Jun 2018, 19:47 Arv Evans, <arvid.evans@...> wrote:
It is possible to build a simple test jig for evaluating mechanical switch type rotary encoders.
Use 1K resistors in series with LEDs to show contact closure for phase A, phase-B, and
for the push-switch.? By turning the shaft very slowly you can see the phase change and
by pushing the push-switch you can see its contact closure.? This might be worthwhile
if you suspect problems with an encoder or if you are building kits and will be providing
rotary encoders in the parts bag.?

Arv
_._
?

On Thu, Jun 21, 2018 at 8:00 PM Howard Fidel <sonic1@...> wrote:
So there are several possibilities. I had the same problem initially, when I realized that I didn't wire it correctly. I fixed the wiring and it worked. It could be a bad encoder, incorrect wiring or a bad Raduino, or corrupted software. If you have a two channel scope you can look at the two outputs signals, they should create 2 pulse trains shifted be 90 degrees when you turn the knob. The phase shift reverses when you change direction. Most likely if both have pulses they are phased correctly, but if one or both don't, it wont work. If you see the pulses, it is not the encoder.

Howard

On 6/21/2018 4:32 PM, n7nsd@... wrote:
And yes, rotating only causes the display to flicker the last two freq digit from zero to fifty. After pressing the encoder and getting the change band option, turning causes no change. Same with the next press and then back to 40m where it won¡¯t change freq.?