Author Topic: Rotary Encoders  (Read 11448 times)

SBD

  • Approved Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Rotary Encoders
« on: October 24, 2017, 10:35:04 pm »
Hello, Ihave some problem with my encoders connected to the JC-LED.
When I rotate it, it gives 2 or 3 signals instead of one.
I think because simdash reads it too fast but I already set it to the max of 20 ms.
Is there any solution for this?

Thanks.

Cristiano

  • Administrator
  • Hero Member
  • *****
  • Posts: 1360
    • View Profile
    • SymProjects
    • Email
Re: Rotary Encoders
« Reply #1 on: October 27, 2017, 10:02:25 am »
Hello.
do you have a link or picture of your rotary encoders?

The multiple reads are due to "contacts bouncing": the contact of the rotary encoder bounce and the JC-LED reads multiple presses.

if increasing the read interval to 20mA is not enough, the solution is adding a couple of 100nF capacitors:

https://cdn3.volusion.com/btfzd.umflq/v/vspfiles/photos/117-2.jpg?1420503890

between the left pin and the center pins and between the right pin and center pins of the rotary encoder.

You can find these capacitors on ebay and they are very cheap.

Let me know if you need more info.

Regards
Cristano

SBD

  • Approved Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: Rotary Encoders
« Reply #2 on: October 28, 2017, 06:18:09 pm »
Thank you for your answer!

I'll put those capacitors in and see if thats the problem.
Anyway I have this encoder: https://www.hestore.hu/prod_10028123.html#

 

hit counter