Rotary Encoder on 20x4 LCD with pushbutton digit select and other features


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Rotary Encoder on 20x4 LCD with pushbutton digit select and other features

    On the http://www.best-microcontroller-proj...y-encoder.html site there was an article that uses a different type of encoder polling.

    It is in C but if I can read it then everyone can!

    I have not yet understood completely how it decodes the encoder data but seems very interesting and as the author says it decodes also the speed?

    No hardware set up to test it but if anyone has the time I'd like to know the results.

    Ioannis

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,718


    Did you find this post helpful? Yes | No

    Default Re: Rotary Encoder on 20x4 LCD with pushbutton digit select and other features

    I have not yet understood completely how it decodes the encoder
    it looks like a cruel hoax to me, maybe you need to sign up to get the working version.
    if the encoder is static [on detent] after 12 polls state=0xffff
    you then need 12 polls in a row where the clk pin is 0 to reach the
    0xf000 state , since the polling is asynchronous I cannot see how that can happen
    reliably ,so I tried it in my example

    ' enstate = (enstate<<1 )| enc_a | $e000
    ' if enstate == $f000 then
    ' enstate=0


    ' if enc_b then
    and it fails as I expected when polled @5mS
    the example polls @100uS , if you need that much horse power I can't see the point
    Warning I'm not a teacher

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Rotary Encoder on 20x4 LCD with pushbutton digit select and other features

    Thanks for testing it Richard. It was very strange to me.

    Anyway, no other version exists. I did sign in to the site but no other version exists.

    Ioannis

Similar Threads

  1. Using an incremental rotary encoder?
    By keithv in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2016, 23:23
  2. Instant Interrupts for rotary encoder
    By fnovau in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2014, 09:24
  3. New approach to Rotary Encoder
    By Ioannis in forum Code Examples
    Replies: 90
    Last Post: - 11th July 2013, 22:05
  4. Automotive quality rotary encoder
    By d1camero in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th October 2004, 16:46

Members who have read this thread : 2

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts