Using Rotary Encoder with Quad Clock Convertor

The place to ask for help or solve each others technical issues and discuss hardware

Postby GPSSim » Tue Apr 14, 2009 11:29 pm

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.
GPSSim
 

Postby husker » Wed Apr 15, 2009 9:29 am

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.
husker
Member
 
Joined: Fri Jan 30, 2009 4:36 pm
Posts: 128
Location: Wellington

Postby GPSSim » Wed Apr 15, 2009 9:47 am

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.
GPSSim
 

Postby Naki » Wed Apr 15, 2009 10:01 am

What the heck are you guys talking about?? blink.gif
User avatar
Naki
NZFF Pro
 
Joined: Sat Aug 05, 2006 10:03 pm
Posts: 7170
Location: Tauranga

Postby husker » Wed Apr 15, 2009 7:41 pm

All you need to know is that a 555 timer can solve most of life's problems...
husker
Member
 
Joined: Fri Jan 30, 2009 4:36 pm
Posts: 128
Location: Wellington

Postby GPSSim » Wed Apr 22, 2009 8:16 pm

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
GPSSim
 

Postby Njbb1995 » Wed Apr 22, 2009 8:25 pm

yes um er that one wacko.gif
User avatar
Njbb1995
Sim-holic
 
Joined: Fri Nov 23, 2007 5:02 pm
Posts: 860
Location: Blenheim

Postby GPSSim » Sun May 17, 2009 10:03 pm

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.
GPSSim
 

Postby Naki » Sun May 17, 2009 11:17 pm

Right of course.
User avatar
Naki
NZFF Pro
 
Joined: Sat Aug 05, 2006 10:03 pm
Posts: 7170
Location: Tauranga

Postby Ian Warren » Sun May 17, 2009 11:29 pm

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
Image
User avatar
Ian Warren
NZFF Pro
 
Joined: Fri May 05, 2006 5:23 pm
Posts: 41187
Location: AREA 51


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 7 guests