KitsAndParts.Com Forum

A place to exchange information about parts and kits supplied by http://kitsandparts.com

You are not logged in.

#1 2010-06-12 22:41:30

W8UUU
Member
Registered: 2010-03-08
Posts: 22

DDS Encoder question

I am running into a similar problem another user has mentioned with the encoder.  Not sure if it is the encoder or a contact timing issue.  I am getting skipping on digits when advancing the pushbutton on the encoder. I wonder if it is the encoder switch or perhaps the code may need tweaking.  I suppose trying a different switch would be the first thing to try.  Can anyone suggest a substitution?....

I tried to pulse the  PD3 data line with a momentary switch with the encoder contacts 4 and 5 disconnected and still the same result (still flaky).  Perhaps the port is not seeing a solid low?  Is R6 the correct value (620 ohms)?...I noticed the PD2 and PD4 lines have 10k resistors on them.

I have an order going out to Mouser today and am ordering Mouser P/N EN11-HSM1AF15 and P/N PEC11-4220F-S0012.  Out of those two will see what works best...if at all...

Bob, W8UUU

Last edited by W8UUU (2010-06-13 17:56:59)

Offline

 

#2 2010-06-14 06:24:05

W8DIZ
Administrator
Registered: 2008-08-12
Posts: 314

Re: DDS Encoder question

Hi Bob,
I'm not having a bounce problem on my two working DDS kits.
It may be a flakey encoder.
R6 is correct (620). Purpose to to protect the CPU in case it is programmed as an output
and we do not want to short outputs to ground.
Pleae give feedback on other encoders; and I can send you another one of the mechanical encoders in th kit.
73, Diz
PS: We may try a little debounce software here.

Offline

 

#3 2010-06-14 09:37:58

W8UUU
Member
Registered: 2010-03-08
Posts: 22

Re: DDS Encoder question

W8DIZ wrote:

Hi Bob,
I'm not having a bounce problem on my two working DDS kits.
It may be a flakey encoder.
R6 is correct (620). Purpose to to protect the CPU in case it is programmed as an output
and we do not want to short outputs to ground.
Pleae give feedback on other encoders; and I can send you another one of the mechanical encoders in th kit.
73, Diz
PS: We may try a little debounce software here.

Will report back on the switch issue.....I do have another question. Are you going to write code for the I.F. offset? If so then I suppose it will be necessary to burn new code for the offset? There are no user controls to do it on the DDS as designed.  I will be ordering another for a transciever design later. Once new code is written I suppose all I will need to do is plug in the values and re-compile.  Thanks...

Bob, W8UUU

Offline

 

#4 2010-06-14 15:34:33

W8DIZ
Administrator
Registered: 2008-08-12
Posts: 314

Re: DDS Encoder question

W8UUU wrote:

...Are you going to write code for the I.F. offset? Bob, W8UUU

Hi Bob,
Yes...but I'm tied up on another project (not ham radio related).
Once I write the code, I will post it on the FORUM.
The actual offset will need to be "manually " programmed into the chip.
-Diz

Offline

 

#5 2010-06-17 15:11:44

W8UUU
Member
Registered: 2010-03-08
Posts: 22

Re: DDS Encoder question

W8DIZ wrote:

W8UUU wrote:

...Are you going to write code for the I.F. offset? Bob, W8UUU

Hi Bob,
Yes...but I'm tied up on another project (not ham radio related).
Once I write the code, I will post it on the FORUM.
The actual offset will need to be "manually " programmed into the chip.
-Diz

Hi Diz,

OK on the offset issue.  I just tried two different encoders form Mouser and the skipping on digits is still there.  It is random when you push the switch.  It will skip a decimal place the continue to work during one cycle then random skip again.  I am now thinking it may be the code or a  contact bounce issue. The encoders were: Bournes P/N PEC11-4220F-S12 and a BI-Tech P/N EN-11-HSM1AF15. If it is a generic issue I am sure others will experience the same problem.  Perhaps the MCU is flakey but I do not have another to try.  Thanks for any more help you may provide. 

Bob, W8UUU

Offline

 

Board footer

Powered by FluxBB