586,103 active members*
3,421 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Servo Motors / Drives > How to combat noises when tracking an encoder output
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2017
    Posts
    32

    How to combat noises when tracking an encoder output

    Hi All

    I have the following problem. I have two rotary encoders, each rotated by a stepper motor. The two stepper motors receive impulses from the same source, therefore they must rotate the same number of steps in the same direction. The encoders should reflect that. They should send exactly the same number of impulses to the control circuit. However as the system works a difference develops. The difference is completely random, it's not like one encoder consistently counting more than the other. Sometimes one encoder produces less impulses than it should, while the other is exact. Sometimes both count less steps than they should. Sometimes one counts more steps than it should, sometimes both count more. I think this is due to external noises but I'm not sure. And I'm 100% sure that the stepper motors do make the exact number of steps. I.e. the problem is somewhere in the circuit that counts the impulses from the encoders.

    My control circuit is a simple one, including a microcontroller (ATmega644) to count the impulses and several analog comparators (LM393) to convert the differential signals sent by the encoders into non-differential. The comparators are in the same PCB close to the MCU. However I haven't included any noise cancelation elements around the comparators. They don't even have hysteresis. That's the first time I deal with such an issue and underestimated the complexity of the issue. I only realized that noises are something that I'll have to deal with, after I got the less than ideal results.

    If someone has an experience with encoder tracking and noise cancelation techniques I'd be glad if you shared your experience.

    Thanks in advance

  2. #2
    Join Date
    Dec 2003
    Posts
    24221

    Re: How to combat noises when tracking an encoder output

    Using encoders in the differential mode is one of the best forms of noise cancellation, together with adequate shielding, the best cable, in N.A. anyway, is Belden 9891.this has individual shields and OA shield.
    Also you should carry out what is known as equi-potential bonding of the machine grounds etc.
    This allows the method of grounding each end of the shielding for superior effect.
    What do you mean by "convert the differential signals"?
    If using single ended, only one of each A-B is used.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  3. #3
    Join Date
    Mar 2017
    Posts
    411

    Re: How to combat noises when tracking an encoder output

    You didn't say how many steps/revolution the encoders are or what the number of micro-steps the steppers are using.

    I could see a situation where an encoder could report multiple steps where the stepper was incremented by only one. I am not sure but I would expect that the stepper shaft would have some rotational bounce to it that a high resolution encoder might detect. Also, what is the step frequency you are looking at? Finally, are you using the timers on the MCU or are you just using the step signal as an interrupt?

    Lots of stuff to look at.

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
  •