Searching \ for '[EE]: Rotary Encoder' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/io/sensors.htm?key=encoder
Search entire site for: 'Rotary Encoder'.

Exact match. Not showing close matches.
PICList Thread
'[EE]: Rotary Encoder'
2001\01\04@085420 by Simon-Thijs=20de=20Feber?=

flavicon
face
Hello All,


i'd like to connect a rotary encoder to a 16F84.
I know i can use the RB4-7 inputs (interrupt on
change), but my bournce rotary encoder has different
behaviour than expected.

Between 2 dents (clicks) it goes through the following
bit pattern :

Output A 0 1 1 0 0
Output B 0 0 1 1 0

where in the A= 0 and B= 0 are the in rest positions.

Is my pic at 10MHZ hast enough to capture this
pattern, count and put some I2C on other pins ???

How do i capture the pattern anyway (without
disturbance/bounce and etc) ????


best regards,

Simon

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\04@093209 by Michael Rigby-Jones

flavicon
face
{Quote hidden}

This is know as a quadrature decoder.  There have been hundreds if not
thousands of posts on this topic on the piclist, so a search of the archives
would be good idea.  Then get yourself to
http://www.piclist.com/techref/microchip/qenc.htm

There are several ways you can decode this type of controller, either
through polling or via external interupts.  A 10MHz PIC will easily be able
to poll a quadrature decoder with plenty of time left over if this decoder
is being turned by hand.  If this is on the output of e.g. a motor (unlikely
if it has dentents) you obviously need to poll the switch more quickly in
order to avoid lost states.

Regards

Mike

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...