Page 1 of 1

PostPosted: Tue Apr 14, 2009 11:29 pm
by GPSSim
I have read on another site where a rotary quadrature encoder (e.g. ALPS EC11B) has been used with a quadrature clock convertor (LS7183) and an analogue switch (MM74HC4316N) to simulate repeated pressing of a keyboard button when the encoder is rotated. See post 6 here; http://www.mp3car.com/vbulletin/hardware-d...re-decoder.html

I have the output of the analogue switch connected to the pins on the keyboard matrix.

If I connect LED's thru the analogue switch I can get LED's to flash (albeit very dimly) when I rotate the encoder, but I cannot get the analogue switch to simulate the key press. Other push buttons that I have connected to the matrix work OK. These buttons have a resistance of about 70 ohms, the analogue switch appears to have a closed circuit resistance of about 100 ohms.

I am using an MC14066B instead of the MM74HC316N. Is the resistance across the MC14066B too high compared to the MM74HC316N?

I think part of the problem is the very narrow output pulse width from the LS7183 (which from the datasheet can adjusted up to 140 microseconds long). I also wonder what the resistance is across the switch actually is considering the narrow output pulse from the 7183.

Has anyone used these items in this manner?

Can anyone provide some ideas to make this work?

Thanks.

PostPosted: Wed Apr 15, 2009 9:29 am
by husker
I think you are right - the 140 microsecond pulse is not going to be long enough to be picked up by the multiplexed keyboard scan sequence. You could feed the pulse into a 555 monostable circuit to extend the pulse length? Cheers, Wayne.

PostPosted: Wed Apr 15, 2009 9:47 am
by GPSSim
Using a 555 is certainly worth a try.

I got the impression that this had been done without using any other components other than the encoder, conveter and the analogue switch. I wondered if I was getting something wrong somewhere. I started off using a DIL relay. I could hear the relay trying to operate but it wasn't pulling up enough to close the contacts, that's when I went to the MC 14066B.

I do agree though that extending the pulse length is going to help the situation and should fix the problem. I've used 555's before but didn't think of them this time.

Thanks for the tip.

PostPosted: Wed Apr 15, 2009 10:01 am
by Naki
What the heck are you guys talking about?? blink.gif

PostPosted: Wed Apr 15, 2009 7:41 pm
by husker
All you need to know is that a 555 timer can solve most of life's problems...

PostPosted: Wed Apr 22, 2009 8:16 pm
by GPSSim
Hi Wayne,

Thanks for the tip on the 555. Got it to work nicely, needed to get a pulse of about 25mS to get things to work.

Now all I need to do is to get the complete circuit built up without using up to much board space.

Alan

PostPosted: Wed Apr 22, 2009 8:25 pm
by Njbb1995
yes um er that one wacko.gif

PostPosted: Sun May 17, 2009 10:03 pm
by GPSSim
Just to let you know the 555 did the job. The encoder works brilliantly now. All I need to finish the project off is some concentric knobs for the encoder.

Thanks for the help.

PostPosted: Sun May 17, 2009 11:17 pm
by Naki
Right of course.

PostPosted: Sun May 17, 2009 11:29 pm
by Ian Warren
Naki wrote:
QUOTE (Naki @ May 18 2009, 12:17 AM) <{POST_SNAPBACK}>
Right of course.

Paul ..... he forgot the Flux capacitor blink.gif .... Naki how are we going to get home ! ohmy.gif