HEDS5540 optical encoder


Results 1 to 24 of 24

Threaded View

  1. #17


    Did you find this post helpful? Yes | No

    Default Re: HEDS5540 optical encoder

    I finally assembled my distance meter based on rotary optical encoder and precision wheel. But still I have problem with math and precision.
    For example, wheel circumference is 157mm, and when I take a 30 revs the result must be 4710mm, but the MCU calculates only 4708,1mm which is 1,9mm difference. Is there a way to improve the precision?
    I use Richard's math:
    157/1440 = .109 mm per encoder tick
    .109 * 256 * 10 = 279
    distance * 10 = (counts * 279)/256
    Code:
    counter = enc_counter */ 279 
    lcdout  Dec counter/10 ,".", dec counter//10     ; display counter value on LCD
    The precision 0,1mm is enough for me, the max. measurable distance want be 6000mm. I try some change, if I improve the precision to 0.01mm then the max. measurable distance shortened to 600mm and this not enough.
    Last edited by louislouis; - 9th October 2016 at 23:35.

Similar Threads

  1. 2 Beam Optical Pulse Generator
    By WOZZY-2010 in forum Schematics
    Replies: 8
    Last Post: - 6th April 2010, 04:03
  2. USB Optical mouse as motor encoder
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th August 2008, 15:09
  3. optical voice link
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th May 2008, 21:11
  4. Using a optical coder
    By debutpic in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 16th October 2007, 04:57
  5. Using the optical sensor from a ball mouse
    By lsteele in forum General
    Replies: 5
    Last Post: - 5th September 2007, 16:45

Members who have read this thread : 0

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

Posting Permissions

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